0% found this document useful (0 votes)
157 views

New Text Document

This document contains 37 multiple choice questions about XML, its components, and related technologies. The questions cover topics such as what XML stands for, the differences between DOM and SAX parsers, the purpose of XPath and XSLT, XML schemas versus DTDs, and more. For each question, the possible multiple choice answers are listed along with the designated correct answer. The questions help test understanding of fundamental XML concepts.

Uploaded by

Abhinav Daksha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
157 views

New Text Document

This document contains 37 multiple choice questions about XML, its components, and related technologies. The questions cover topics such as what XML stands for, the differences between DOM and SAX parsers, the purpose of XPath and XSLT, XML schemas versus DTDs, and more. For each question, the possible multiple choice answers are listed along with the designated correct answer. The questions help test understanding of fundamental XML concepts.

Uploaded by

Abhinav Daksha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 11

XML /

1 What XML stands for?


a. Extra Marked Language
b. Extensible Markup Language
c. Extensible Marked Literal
d. Extra Markup Language
View Answer Report Discuss Too Difficult! Search Google
Answer: (b).Extensible Markup Language

2 Which component of JDOM Parser represents DOM tree?


a. Document
b. Element
c. Attribute
d. Text
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).Document

3 Which of the following XPath expression selects attributes?


a. .
b. ..
c. @
d. //
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).@

4 When to use a SAX Parser?


a. You can process the XML document in a linear fashion from the top down.
b. You are processing a very large XML document whose DOM tree would consume too
much memory.
c. The problem to be solved involves only part of the XML document
d. All of the above.
View Answer Report Discuss Too Difficult! Search Google
Answer: (d).All of the above.

5 What DOM stands for?


a. Direct Object Model
b. Document Object Modeling
c. Document Object Model
d. Document Output Model
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).Document Object Model

6 Which of the following is true about XML?


a. XML is technology independent. It can be used by any technology for data
storage and transmission purpose.
b. XML uses simple text format. It is human readable and understandable.
c. Using XSD, DTD and XML structure can be validated easily.
d. All of the above.
View Answer Report Discuss Too Difficult! Search Google
Answer: (d).All of the above.

7 Which of the following is true about XPath?


a. XPath is an official recommendation of the World Wide Web Consortium (W3C).
b. It defines a language to find information in an XML file.
c. Both of the above.
d. None of the above.
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).Both of the above.
8 Which of the following XPath expression selects the parent of the current
node?
a. .
b. ..
c. ./
d. //
View Answer Report Discuss Too Difficult! Search Google
Answer: (b)...

9 When to use a DOM Parser?


a. You need to know a lot about the structure of a document.
b. You need to move parts of the document around.
c. You need to use the information in the document more than once.
d. All of the above.
View Answer Report Discuss Too Difficult! Search Google
Answer: (d).All of the above.

10 Which of the following statements is not true about XML Schemas:


a. They are used to define the content and structure of data.
b. They define a set of symbols and the relationships of those symbols.
c. They are themselves XML documents.
d. They have their own syntax.
View Answer Report Discuss Too Difficult! Search Google
Answer: (d).They have their own syntax.

11 The most popular way to materialize XML documents is to use:


a. DTD
b. XSLT
c. HTML
d. SOAP
View Answer Report Discuss Too Difficult! Search Google
Answer: (b).XSLT

12 With XML:
a. views are not limited to one multi-valued path only.
b. documents can automatically be generated from database data only.
c. database data can automatically be extracted from XML documents only.
d. all of the above are true.
View Answer Report Discuss Too Difficult! Search Google
Answer: (d).all of the above are true.

13 To eliminate definition duplication, XML Schemas define:


a. an intersection table.
b. global elements.
c. a normalized definition table.
d. None of the above is correct.
View Answer Report Discuss Too Difficult! Search Google
Answer: (b).global elements.

14 What is not true about SOAP?


a. SOAP originally meant Simple Object Access Protocol.
b. SOAP was defined as an XML-based standard for providing remote procedure
calls over the Internet.
c. SOAP now is just a name, not an acronym
d. SOAP was an early form of XML.
View Answer Report Discuss Too Difficult! Search Google
Answer: (d).SOAP was an early form of XML.
15 XML Schemas consist of:
a. properties and methods.
b. elements and attributes.
c. structure and data.
d. tables and relationships.
View Answer Report Discuss Too Difficult! Search Google
Answer: (b).elements and attributes.

16 The DTD begins with the word:


a. #PCDATA
b. XML
c. DOCTYPE
d. HTTPS
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).DOCTYPE

17 What is not true about XSLT?


a. XSLT is a declarative transformation language.
b. XSLT uses a set of rules that govern how a document is to be materialized is
created.
c. XSLT uses a set of procedures that specify how a document is to be
programmed.
d. XSLT is used to transform the input document into another document.
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).XSLT uses a set of procedures that specify how a document is to be
programmed.

18 Which of the following is not a XML storage option ?


a. Native storage as XML data type
b. Mapping between XML and relational storage
c. Small object storage
d. None of the Mentioned
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).Small object storage

19 White spaces in XML includes


a. Things like space characters, new lines and tabs
b. Only spaces
c. Space between two double quotes
d. None of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).Space between two double quotes

20 XPATH used to
a. Address your documents by specifying a location path
b. Address the server
c. Store the IP address of the server
d. None of these

21 The tags elements in XML are


a. case-insensitive
b. case-sensitive
c. browser dependent
d. none of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (b).case-sensitive

22 Node in XML is
a. any part of the document whether it is elements, attribute or otherwise
b. referred only to the attributes
c. referred to the top element in the document
d. none of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).any part of the document whether it is elements, attribute or otherwise

23 XML stands for ______________.


a. Extensible Markup Language
b. Extended Mashup Language
c. Extensible Mashup Language
d. None of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).Extensible Markup Language

24 XML is much more similar like __________.


a. HTML
b. CSS
c. C Programming
d. JavaScript
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).HTML

25 Which of the following is not a function of XML ?


a. Structure Information
b. Style Information
c. Transport Information
d. Store Information
View Answer Report Discuss Too Difficult! Search Google
Answer: (b).Style Information

26 XML deals with storage and ____________ transport of data.


a. Minify
b. Transport
c. Design
d. Filter
View Answer Report Discuss Too Difficult! Search Google
Answer: (b).Transport

27 XML with correct syntax is "_________" XML.


a. Well Parametarized
b. Well Formed
c. Mature
d. None of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (b).Well Formed

28 XML validated against a __________ is considered as Valid XML.


a. JQUERY
b. PARSER
c. CFG
d. DTD
View Answer Report Discuss Too Difficult! Search Google
Answer: (d).DTD

29 DTD Stands for _________.


a. Document Transport Direction
b. Document Transcript Definition
c. Document Type Definition
d. None of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).Document Type Definition

30 W3C supports an XML-based alternative to DTD, called _______.


a. XML Schema
b. HTML DOM
c. XML Parser
d. None of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).XML Schema

31 __________ is used to check XML for syntax errors.


a. XML Validator
b. XML Parser
c. XML Browser
d. None of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).XML Validator

32 Below line of code is used for ?


<?xml version="1.0" encoding="ISO-8859-1"?>
a. DTD Declaration
b. XML Starting Line
c. XML Declaration
d. None of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).XML Declaration

33 Guess which version of XML is used ?


<?xml version="1.0" encoding="ISO-8859-1"?>
a. 1st
b. 3rd
c. 4th
d. 2nd
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).1st

34 Which of the Node is considered as root node ?


<?xml version="1.0" encoding="ISO-8859-1"?>
<book>
<bname>XML Tutorials</bname>
<pages>100</pages>
<price>$300.00</price>
</book>
a. <pages>
b. <price>
c. <book>
d. <bname>
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).<book>

35 Which of the following statement is false if we consider above XML document ?


<?xml version="1.0" encoding="ISO-8859-1"?>
<book>
<bname>XML Tutorials</bname>
<pages>100</pages>
<price>$300.00</price>
</book>
a. Document Syntax is Self Explanatory
b. XML document forms a tree structure
c. XML document can have more than one book
d. It is a document that refers a single book
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).XML document can have more than one book

36 How many nodes and attributes are there in the document ?


<book category="Web">
<bname>XML Tutorials</bname>
<pages>100</pages>
<price>$300.00</price>
</book>
a. 4 Nodes and 1 Attribute
b. 3 Nodes and 1 Attribute
c. 2 Nodes and 2 Attributes
d. 4 Nodes and 2 Attributes
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).4 Nodes and 1 Attribute

37 Point out the error in the following xml -


<book category="Web">
<bname>XML Tutorials</bname>
<pages>100</pages>
<price>$300.00</Price>
</book>
a. No Case Sensitive
b. Not having Closing Tag
c. No Nesting of Elements
d. None of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).No Case Sensitive

38 Point out the error in following XML document -


<messages>
<message>Sample Message 1</messge>
<message>Sample Message 1</messge>
<message>Sample Message 1</messge>
<message>Sample Message 1</messge>
<message>Sample Message 1</messge>
<message>Sample Message 1</messge>
<messages>
a. No Corresponding Closing Tag
b. No Case Sensitive Tags
c. No Attribute present
d. None of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).No Corresponding Closing Tag

39 Point out the error in the following xml document -


<?xml version="1.0" encoding="ISO-8859-1"?>
<messages>Sample Message<messages>
<messages>Sample Message<messages>
<messages>Sample Message<messages>
a. Does not have Attribute
b. Must have DTD
c. Must have One Root Node
d. None of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).Must have One Root Node

40 Point out the errors in the following xml document -


<notes>
<note date=12/11/2007>
<to>Tove</to>
<from>Jani</from>
</note>
<note date=12/11/2007>
<to>Tove</to>
<from>Jani</from>
</note>
<note date=12/11/2007>
<to>Tove</to>
<from>Jani</from>
</note>
</notes>
a. XML Elements Must be Properly Nested
b. XML Documents Must Have a Root Element
c. XML Attributes must be quoted
d. None of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).XML Attributes must be quoted

XML /
41 Which of the following is the communication protocol that sets the standard
used by every computer that access web-based information?
a. HTTP
b. XML
c. HTTP
d. DML
View Answer Report Discuss Too Difficult! Search Google
Answer: (b).XML

42 DTD's are
a. Part of Name spaces
b. Document type declaration in XML
c. Ways to create templates for out does type
d. None of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).Ways to create templates for out does type

43 The words Document Node, Nodelist, Element Node, Named Node Map etc. are
a. Objects
b. Interfaces
c. Elements
d. Attributes
View Answer Report Discuss Too Difficult! Search Google
Answer: (b).Interfaces

44 Which of the following creates push button?


a. RESET
b. RADIO
c. INPUT
d. CHECK BOX
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).RESET
45 Scheme is
a. a global name space
b. read only for all practical purposes
c. template written in XML and can be modified�at runtime
d. None of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).template written in XML and can be modified�at runtime

46 XML
a. can't be used as a database
b. XML is not a database, it is language
c. can be used as a database
d. none of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (b).XML is not a database, it is language

47 Web links are stored within the page itself and when you wish to "jump" to
the page that is linked, we select the hotspot or anchor. This technique is called
a. hypertext
b. hypermedia
c. both (a) and (b)
d. anchoring
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).both (a) and (b)

48 Well formed XML


a. is full of chart's
b. is full of formula's
c. meets certain grammatical rules outlined in the XML 1.0 specification
d. doesn't contain DTD's
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).meets certain grammatical rules outlined in the XML 1.0 specification

49 XSL is
a. an XML based language to create style sheets
b. extensible solution language
c. a language which is not used in XML
d. extended stylesheet language
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).an XML based language to create style sheets

50 How DOM differs from SAX?


a. SAX is event driven and requires less space
b. DOM and SAX are packages
c. DOM is not event driven and builds up the whole memory
d. None ofthese
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).SAX is event driven and requires less space
51 XML is a/an
a. declarative language
b. imperative language
c. standard
d. none of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).declarative language

52 Namespace
a. is a querying language
b. provides the spaces in the names
c. distinguishes one XML vocabulary from another
d. none of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).distinguishes one XML vocabulary from another

53 Document type declaration and document type definition are


a. different terms
b. uncertain
c. same
d. can't say
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).different terms

54 XSLT is
a. used for session tracking in XML
b. an extensible stylesheet language and is used for formatting
c. an extended stylesheet language is used for formatting
d. none of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (b).an extensible stylesheet language and is used for formatting

55 MSXML is
a. a Microsoft language
b. XML parser that ships with IE 5.0
c. used for interacting with XML
d. Both (b) & (c)
View Answer Report Discuss Too Difficult! Search Google
Answer: (d).Both (b) & (c)

56 What is XML?
a. Like SGML, Extended Markup Language
b. Subset of SGML, Extensible Markup Language
c. Superset of SGML, Extendable Markup Language
d. None of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (b).Subset of SGML, Extensible Markup Language

57 Attributes in XML are


a. a way of attaching characteristics or properties to elements of a document
b. child nodes
c. elements in XML
d. none of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).a way of attaching characteristics or properties to elements of a
document

58 Document Object Model (DOM) is a


a. coding style
b. specification
c. a parser
d. none of these
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).a parser

59 The XSLT processor copies the elements of the stylesheet until it finds a
command in the format:
a. SELECT ... FROM ... WHERE.
b. {item, action}.
c. {for-each select}.
d. <HTML>...<\HTML>.
View Answer Report Discuss Too Difficult! Search Google
Answer: (b).{item, action}.

60 What standard, protocol or language was generalized to become a standard


protocol for sending messages of any type, using any protocol?
a. SOAP
b. SGML
c. SQL
d. ADO
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).SOAP
61 The expression FOR XML RAW tells SQL Server to:
a. place the values of the columns as attributes in the resulting XML document.
b. place the values of the columns into elements rather than attributes.
c. place some columns into elements and others into attributes.
d. None of the above is correct.
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).place the values of the columns as attributes in the resulting XML
document.

62 ADO.NET provides the ability to create and process in-memory databases


called:
a. views.
b. relations.
c. tables.
d. datasets.
View Answer Report Discuss Too Difficult! Search Google
Answer: (d).datasets.

63 An XML component that defines the structure of a document is known as a(n):


a. DOCTYPE.
b. DTD.
c. #PCDATA.
d. HTML Stylesheet.
View Answer Report Discuss Too Difficult! Search Google
Answer: (b).DTD.

64 HTML is an application of a more robust document markup language called:


a. XHTML.
b. XML.
c. SGML.
d. None of the above is correct.
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).SGML.

65 XSLT processors evaluate each statement in the context of the match that has
been made. That is, XSLT processors are:
a. context oriented.
b. procedural oriented.
c. object oriented.
d. relational oriented.
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).context oriented.

66 What is not true about XML?


a. Web page display is the most important application of XML.
b. With XML, there is a clear separation between document structure, content and
materialization.
c. XML is more powerful than HTML.
d. XML documents have two sections.
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).Web page display is the most important application of XML.

67 If the XML data instance conforms to the DTD, the document is said to be:
a. type-invalid.
b. type-valid.
c. not-type-valid.
d. an HTML document.
View Answer Report Discuss Too Difficult! Search Google
Answer: (b).type-valid.

68 XML is:
a. a subset of SGML only.
b. a hybrid of document processing and database processing only.
c. a standardized yet customizable way to describe the content of documents
only.
d. XML is all of the above.
View Answer Report Discuss Too Difficult! Search Google
Answer: (d).XML is all of the above.

69 The document that is used by XSLT to indicate how to transform the elements
of the XML document to another format is a(n):
a. HTML page.
b. DOCTYPE procedure.
c. stylesheet.
d. stored procedure.
View Answer Report Discuss Too Difficult! Search Google
Answer: (c).stylesheet.

70 If an XML document does not have a DTD, then by definition it is:


a. not-type-valid.
b. type-valid.
c. an HTML document.
d. None of the above is correct.
View Answer Report Discuss Too Difficult! Search Google
Answer: (a).not-type-valid.

View Answer Report Discuss Too Difficult! Search Google


Answer: (a).Address your documents by specifying a location path

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy