MCQ Bank
In context of XML DOM, each node is a(n) ________
- A) object
- B) class
- C) array
- D) tree
An XML Schema describes the ________ of an XML document.
- A) structure
- B) attributes
- C) properties
- D) building blocks
________ can read plain text and convert it into an XML DOM object.
- A) XML parser
- B) DOM Object
- C) XML Object
- D) DOM Parser
Which of the following is not the XML DOM Property?
- A) x.nodeValue
- B) x.nodeTag
- C) x.attributes
- D) x.nodeName
DOM uses _________ method for processing XML documents.
- A) Event based
- B) DocumentHandler
- C) Tree based
- D) Document
Use _________ keyword if you don't have an option for a default value ,but still want to force the attribute to be present.
- A) #IMPLIED
- B) #REQUIRED
- C) #IMPLICIT
- D) #INFERRED
The <schema> element is the ________ element of every XML Schema.
- A) second
- B) last
- C) None of the given
- D) root
In the statement <img src="computer.gif"/> , the name of attribute is:
- A) computer.gif
- B) None
- C) img
- D) src
__________ evaluates XML document as DOM structure.
- A) Parser
- B) Compiler
- C) Interpreter
- D) Translator
DOM stands for
- A) Design Object Model
- B) Document Object Markup
- C) Document Object Model
- D) None of the given.
How can we make attributes have multiple values:
- A) <myElement myAttribute="value1, value2"/>
- B) <myElement myAttribute="value1 value2"/>
- C) attributes cannot have multiple values
- D) <myElement myAttribute="value1" myAttribute="value2"/>
XML files can be stored on an Internet server exactly the same way as ________ files.
- A) Java
- B) PHP
- C) C++
- D) HTML
if (xhttp.readyState == 3 && xhttp.status == 404) then,
- A) readyState : Processing Request , status : OK
- B) readyState : Processing Request , status : Page Not Found
- C) readyState : Request Received , status : Page Not Found
- D) raedyState : Server Connection Establishes , status : OK
DOM is separated into ______ different parts.
- A) 4
- B) 3
- C) 2
- D) 5
In x.nodeName and x.nodeValue, x is __________.
- A) the attribute of node
- B) parent node
- C) the value of node
- D) node object
On a server request, the readyState changes from ______.
- A) 1 to 5
- B) 1 to 4
- C) 0 to 4
- D) 0 to 3
The getElementsByTagName() method returns a(n) ________.
- A) value of element
- B) node list
- C) attribute value
- D) single value
What is the description of the attribute-type NMTOKEN.
- A) The value is a list of other ids
- B) The value is a valid XML name
- C) The value is a list of valid XML names
- D) The value is the id of another element
___________ is a collection of nodes or pieces of information, organized in a hierarchy.
- A) None of the given
- B) XSL File
- C) DOM Document
- D) DTD
DOM has three parts XML DOM, HTML DOM and __________.
- A) None of the given
- B) Parser DOM
- C) Core DOM
- D) Flash DOM