You are on page 1of 7

1) What does XML stand for?

Language

a) eXtensible Markup Language - correct answer c) Example Markup Language d) eXtra Modern Link a) 1-2-4_6

b) X-Markup

2) Which of the following is (are) a valid XML name(s)?

b) :3:-3:5:-7 - correct

answer

c) ;123456

d) 3:4;-7

3) DOM 2 doesn't provide mechanism for interrogating and modifying the namespace for a document. a) True b) False - correct answer 4) The DOM specification describes how strings are to be manipulated by the DOM by defining the datatype _______. It is encoded using _______ encoding scheme. a) DOMString, UTF-8 b)

DOMString, Unicode - correct answer

c) UNICODEString, Unicode

d) String, Unicode

5) An MNC receives at its headquarter from its subsidiaries, XML documents containing various reports of that subsidiary. These reports need to be displayed to the person responsible at the headquarter for that subsidiary in a user-friendly manner (allowing searches through the document) and the person is allowed to make any changes/comments that he/she desires. Once the user is done with all the changes/comments the information needs to be fed into the central database. Which of the following is MOST appropriate for processing these XML documents? a)

DOM - correct answer

b) SAX

c) CSS

d) XSL

6) Which of the following is an XML-based service IDL that defines the service interface and its implementation characteristics. a) UDDI b) WSDL - correct answer c) SOAP d) Path 7) Which statement about XML is true?

Quoting attributes is optional

a) Elements may nest but not overlap - correct answer c) Elements may have multiple attributes with the same name a) <?xml c) <xml version="1.0" /> b) <name /> c) <name/>

b)

8) What is the correct declaration syntax for the version of XML document?

version="1.0" />

b) <?xml version="1.0"?> - correct answer

9) How is an empty element field defined?

a) <name></name

d)

All of the above - correct answer


10) XML document must be valid?

a) True - correct answer

b) False b) False b) False - correct

11) Every XML document must be well formed

a) True - correct answer

12) Every XML document must have an associated DTD or schema

a) True

answer
13) XML preserves white spaces

a) True - correct answer

b) False

14) For the XML parser to ignore a certain section of your XML document, which syntax is correct? a) <![CDATA[ Text to be ignored ]]> - correct answer b) <xml:CDATA[ Text to be ignored

]>

c) <PCDATA> Text to be ignored </PCDATA>

d) <CDATA> Text to be ignored </CDATA> a) <stylesheet c) <?xml-stylesheet

15) What is a correct way of referring to a stylesheet called "style.xsl"?

type="text/xsl" href="style.xsl" /> b) <link type="text/xsl" href="style.xsl" /> type="text/xsl" href="style.xsl" ?> - correct answer
16) Which is not a correct name for an XML element?

a) <first name> - correct answer

b)

<age>

c) <NAME> a) Document Type Definition - correct answer c) Direct Type Definition b) Dynamic Type

17) What does DTD stand for?

Definition

18) What makes XML more powerful than HTML?

to adapt to new uses - correct answer

a) Not as much coding is needed b) Its ability c) The fact that its supported by all of the major software vendors a) c) Put your tags in any order,

19) Unlike most other markup languages, including HTML, XML allows you to do what?

Create new tags - correct answer with closing tags optional

b) Exchange information over the Web

20) In what year did the World Wide Web Consortium release its draft of XML?

a) 1994

b)

1995

c) 1996 - correct answer

d) 1997

21) What organization presented the first version of Starndardized Generalized Markup Language (SGML) in 1980? a) Internet Engineering Task Force (IETF) b) IEEE c) American National

Standards Institute (ANSI) - correct answer

d) OASIS

22) You can use XSL Transformation (XSLT) to convert database files described by XML to Structured Query Language (SQL) statements, which creates the tables, indexes and views that the XML data describes. a) True - correct answer b) False

1. What is XML ? Extensible MarkUp Language X-Markup Language Extra Modern Link Example markup Language

2. Which Statement about xml is true? Elements may have multiple atrribute with the same name Quoting attribute is optional. Elements may nest but not overlap All of the above. 3. What is the correct declation syntax for the version of an XML document? </xml version="1.0"/> the above <?xml version="1.0"/?> <xml version="1.0"> none of

4. How is an empty XML element defined? <sample></sample> <sample/> All of the above. None of the above.

5. Which syntax is used to insert comments into an XML document? <comment>This is a comment</comment> comment-> All of the above. 6. What does DTD stand for? Dynamic Type Definition. Type Definition. 7. Which statement is true? Document Type Definition. Do The Dance. Direct <?-This is a comment-> <!-This is a

All XML documents must have a DTD. All XML elements must be lower case. All XML elements must be properly closed. All of the above. 8. Which statement is true? XML tags are case sensitive. elements must be properly closed. XML documents must have a root tag. All of the above. XML

9. Which is not a correct name for an XML documents? <Note> <h1> <1dollar> All 3 names are incorrect.

10. Which is not a correct name for an XML element? <age> <NAME> <first name> All three names are incorrect.

11. What does XSL stand for? eXtra Style Language eXpandable Style Language eXtensible Stylesheet Language eXtensible Style Listing

12. What is a correct way of referring to a stylesheet called "mystyle.xsl" ? <link type="text/xsl" href="mystyle.xsl" /> <?xml-stylesheet type="text/xsl" href="mystyle.xsl"?> <stylesheet type="text/xsl" href="mystyle.xsl" /> All of the above 13. For the XML parser to ignore a certain section of your XML document, which syntax is correct? <CDATA> Text to be ignored </CDATA> <![CDATA[ Text to be ignored ]]> <PCDATA> Text to be ignored </PCDATA> <xml:CDATA[ Text to be ignored ]> 14. XML is a _______ Recommendation Microsoft 15. XML is Free and Extensible Not Extensible. A stylsheet None of these Sun W3C None of these

16. XML is a Complement to XHTML. HTML Xquery Xpath

17. XML Schema is designed to

be self-descriptive 18. XML uses

disply only useful data

carrying request

giving response.

an XML Schema to describe the data an XHTML Schema to describe the data XPath to describe the data an XQuerya to describe the data 19. XML Can be Used to Replace old language. 20. XML is the mother of HTML. WAP and WML All of the above None of these. Create new language. All of the above

an

None of these.

1. What does XML stand for? eXtensible Markup Language X-Markup Language eXtra Modern Link Example Markup Language 2. There is a way of describing XML data, how? XML uses a DTD to describe the data XML uses XSL to describe data XML uses a description node to describe data 3. XML's goal is to replace HTML True False 4. What is the correct syntax of the declaration which defines the XML version? <xml version="1.0" /> <?xml version="1.0" /> <?xml version="1.0"?> 5. What does DTD stand for? Dynamic Type Definition Document Type Definition

Do The Dance Direct Type Definition 6. Is this a "well formed" XML document? <?xml version="1.0"?> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> No Yes 7. Is this a "well formed" XML document? <?xml version="1.0"?> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> Yes No 8. Which statement is true? All the statements are true All XML elements must be properly closed All XML elements must be lower case All XML documents must have a DTD 9. Which statement is true? XML documents must have a root tag XML elements must be properly nested All the statements are true XML tags are case sensitive 10. XML preserves white spaces False

True 11. Is this a "well formed" XML document? <?xml version="1.0"?> <note> <to age="29">Tove</to> <from>Jani</from> </note> No Yes 12. Is this a "well formed" XML document? <?xml version="1.0"?> <note> <to age=29>Tove</to> <from>Jani</from> </note> No
Yes

13. XML elements cannot be empty False True 14. Which is not a correct name for an XML element? <Note> All 3 names are incorrect <1dollar> <h1> 15. Which is not a correct name for an XML element? All 3 names are incorrect <age> <NAME>
<first name>

16. Which is not a correct name for an XML element? <xmldocument>


<phone number>

All 3 names are incorrect <7eleven> 17. XML attribute values must always be enclosed in quotes True False 18. What does XSL stand for? eXtra Style Language eXtensible Style Listing eXpandable Style Language eXtensible Stylesheet Language

You might also like