Questions and CORRECT Answers
Which of these characters can be included within the text in an XML document in literal form?
a. >
b. ;
c. :
d. - - CORRECT ANSWER - bcd
XML parser checks for validity and well formed ness? - CORRECT ANSWER -t
Which of the following is/are optional in the creation of an XML file?
a. The <?xml version " 1.0"?> statement
b. The root element
c. The opening tag in an element
d. Entities - CORRECT ANSWER -d
Which of the following XML attribute names is invalid?
a. _notvalid
b. I am not valid
c. not-valid.1
d. not1valid2 - CORRECT ANSWER -b
A descendant having a new namespace cannot override the namespace defined by the
parent element? - CORRECT ANSWER -f
Parameter entities use ampersand (&) and semicolon (;) as delimiters? - CORRECT
ANSWER -f
,XML developer has to ensure the uniqueness of the element names and attributes in a
document? - CORRECT ANSWER -t
XML is transformed only via XSLT? - CORRECT ANSWER -f
Browser has the ability distinguish duplicate element names in an XML document? - CORRECT
ANSWER -f
Which of these is a valid comment in XML?
a. <!--This is a sample XML document>
b. <?This is a sample XML document?>
c. <!--This data should be hidden
<FIRSTNAME>Joe</FlRSTNAME>
<LASTNAME>J0hnson<lLASTNAME>
-->
d. <?--This is a sample XML document--> - CORRECT ANSWER -c
What does the keyword SYSTEM indicate in the following code?
<?xml version "1.0"?>
<!DOCTYPE Book SYSTEM "book.dtd">
a. It is a system generated DTD
b. Book.dtd is an internal DTD
c. Book.dtd is an external DTD
d. Book is a system variable - CORRECT ANSWER -c
Which of the following statements is not true?
a. The <!DOCTYPE . > declaration follows the XML declaration
,b. Entities that appear anywhere in an XML document are referred to as Parameter entities
c. Attributes are added to an element to provide information about the element
d. Entities must be declared within the document DOCTYPE declaration - CORRECT
ANSWER -b
Which of the following is not a keyword used for default settings in an! ATTLlST element?
a. #IMPLIED
b. #DEFINE
c. #REQUIRED
d. #FIXED - CORRECT ANSWER -b
External DTDs use the keyword URL to specify the location of the DTD? - CORRECT
ANSWER -f
The question mark (?) operator indicates
a. either zero or one occurrence.
b. any number of occurrences.
c. one or more occurrences.
d. more than one occurrence. - CORRECT ANSWER -a
For each element type associated with a sequence element, there must be an element in the
XML instance in the same order? - CORRECT ANSWER -t
Specifies that the attribute cannot be used?
a. prohibited
b. required
c. optional
d. use - CORRECT ANSWER -a
, An XML Schema defines whether an element is empty or can include text. - CORRECT
ANSWER -t
In schema, the ALL element requires that
a. each element in the group must occur at most once
b. there must be an element in the XML instance in the same order
c. the maxOccurs attribute can be 0 or 1 - CORRECT ANSWER -a
The default value for the minOccurs attribute in Schema is 0 - CORRECT ANSWER -f
See the snip set below and choose one answer:
<xsl : value-of select "floor(-2.3)"/>
a. -2
b. -2.5
c. -3 - CORRECT ANSWER -c
Which top level XSLT elements is used to define a variable in a style-sheet or template and
to assign it a value
a. xsl:include
b. xsl:output
c. xsl:variable
d. xsl:text - CORRECT ANSWER -c
Xpath can be thought of as a query language like SQL - CORRECT ANSWER -t
Which of these is the correct syntax to link an XSL file to an XML document?
a. <?xmls type "text/xsl"href "candidate.xsl"?>