CS311 Quiz 2 Solution and Discussion

Which of the following is the correct syntax to define the XML version? CS311

Syntax Rules for XML declaration
 The XML declaration is case sensitive and must begin with “<?xml>” where “xml” is written
in lower-case.
 If document contains XML declaration, then it strictly needs to be the first statement of the
XML document.
 The XML declaration strictly needs be the first statement in the XML document.
 An HTTP protocol can override the value of encoding that you put in the XML declaration.

da450076-54c4-48bd-a525-23cbf1e7690f-image.png

XML files can be stored on an Internet server exactly the same way as ________ files. CS311

XML files can be stored on an Internet server exactly the same way as HTML

f0b7afa3-ed92-496f-9d83-19783bb47f6c-image.png

XML often contains new line, or _______ space characters, between nodes.

XML often contains new line, or white space characters, between nodes.

7548919d-069b-4033-8eed-c9298306ce95-image.png

For all XML documents, which of the following is true? CS311

All XML elements must have a closing tag.
All XML documents must have a DTD or an XML schema.
All XML elements must be lowercase.
All of the statements are true.

5abcd5ba-ffdd-48a7-a326-d72f0c95bd19-image.png

Which of the following is true about JDOM Parser?

  • Java JDOM Parser - Overview. JDOM is an open source, Java-based library to parse XML documents. It is typically a Java developer friendly API. It is Java optimized and it uses Java collections like List and Arrays.

e82644fc-0c6b-47a1-a99f-0761781fb7d3-image.png

A servlet life cycle can be defined as the entire process from its creation till the ___________.

  • destruction

15df0dd1-fc49-4d1d-880c-0d9928b29946-image.png

A servlet life cycle can be defined as the entire process from its creation till the ___________.

077d5af4-d7bd-4338-8d9d-07dd2de6996b-image.png

In XML, some characters have a special meaning those are called ______.

7cd5ce80-0c56-4700-bc5c-43cf97d9cada-image.png