XML Attributes MCQ

This section focuses on "Attributes" in XML. These Multiple Choice Questions (MCQ) should be practiced to improve the XML skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.

1. _______ are part of XML elements.

A. Document
B. Attributes
C. Tags
D. None of the above

View Answer


2. An XML attribute is always a ________ pair.

A. name-value
B. name-attribute
C. name-tag
D. document-value

View Answer


3. The name value should be in?

A. double (" ") quotes.
B. single () quotes.
C. double (" ") or single () quotes.
D. None of the above

View Answer


4. Attributes are used to add a unique ________ to an element

A. tags
B. edges
C. label
D. flag

View Answer


5. How many types of enumerated attribute?

A. 2
B. 3
C. 4
D. 5

View Answer


6. NMTOKEN attribute used for?

A. It is used to specify the element as unique.
B. It indicates that the attribute will represent an external entity in the document.
C. It is similar to CDATA with restrictions on what data can be part of the attribute.
D. It is similar to CDATA with restrictions on what data can be part of the attribute.

View Answer


7. IDREFS attribute used for?

A. It is used to reference all IDs of an element.
B. It is used to reference an ID that has been named for another element.
C. It is used to specify the element as unique.
D. It indicates that the attribute will represent external entities in the document.

View Answer


8. CDATA attribute is?

A. StringType
B. Character data
C. Both A and B
D. None of the above

View Answer


9. Which of the following are the predefined attributes?

A. xml:lang
B. xml:space
C. Both A and B
D. None of the above

View Answer


10. Attribute of the document interface in DOM is/are?

A. doctype
B. implementation
C. documentElement
D. All of the above

View Answer





Discussion


* You must be logged in to add comment.