Verified !!
Which of the following statements are true in the case of XML?
Select one:
a. XML was designed to describe data
b. XML tags are predefined
c. Root element must be a empty tag
d. XML describes its data along with its presentation ** Answ** d
What does the keyword SYSTEM indicate in the following code?
<!DOCTYPE Book SYSTEM "book.dtd">
Select one:
a. Book.dtd is an internal DTD
b. Book is a system variable
c. It is a system generated DTD
d. Book.dtd is an external DTD ** Answ** a
An XML document, which conforms to its DTD, is called a:
Select one:
a. Complete Document
b. XSL Document
c. Well formed Document
d. Valid Document ** Answ** c
The need of using DTD in developing XML document is
Select one:
a. a good guide to populating a templates to be filled in when generating an XML
document automatically
b. used to direct conversion using an XSLT processor
c. no longer necessary after the XML editor has been customized
d. required when validating XML documents ** Answ** d
Which statement is true?
Select one:
a. XML element names can start with a number
b. XML attribute names can start with ampersand
c. XML elements names can contain question mark
d. XML element names can start with ampersand
e. XML elements names can contain underscore ** Answ** d
XML uses the features of
Select one:
,a. WML
b. VML
c. UML
d. SGML ** Answ** d
In XSL, an attributes can be accessed in the way similar to the elements. Notice ____ in
front of the attribute name
Select one:
a. $
b. &
c. @
d. # ** Answ** c
The entities that are used only in DTDs are referred to as
Select one:
a. External entities
b. Internal entities
c. Parameter entities
d. General entities ** Answ** d
A Complex Type element can be defined using
Select one:
a. <xsd:complexType name="..." />
b. <xs:ComplexType name="..." />
c. <ComplexType ="..." />
d. <Complextype element name="..." /> ** Answ** a
What DOM method can you use to determine a node's type?
Select one:
a. You can use the node's getNodeType method and check the results it returns against
fields such as Node.ELEMENT_NODE, Node.TEXT_NODE, and so on
b. You can use the node's getType method and check the results it returns against
fields such as Node.ELEMENT_NODE, Node.TEXT_NODE, and so on
c. You can use the node's getElementType method and check the results it returns
against fields such as Node.ELEMENT_NODE, Node.TEXT_NODE, and so on
d. You can use the node's getDocumentType method and check the results it returns
against fields such as Node.ELEMENT_NODE, Node.TEXT_NODE, and so on **
Answ** a
To prevent a type from being derived for defining new types you can specify
Select one:
a. <complexType name="Address" final="NotInheritable" />
b. <complexType name="Address" final="restriction" />
c. <complexType name="Address" final="secure" />
d. <complexType name="Address" final="DeriveDeny" /> ** Answ** b
, Which of the following methods creates a node for inserting textual content in to it?
Select one:
a. getElementByTagName()
b. createElement()
c. createCDATASection()
d. createTextNode() ** Answ** d
Which of the following snippet deletes an attribute of an Element node
Select one:
a. Attr attr = document.createAttribute("name");
attr.setValue("FU");
root.setAttributeNode(attr);
root.removeAttribute(attr);
b. Attr attr = document.createAttribute("name");
attr.setValue("FU");
root.setAttributeNode(attr);
root.removeAttributeNode(doc);
c. Attr attr = document.createAttribute("name");
attr.setValue("FU");
root.setAttributeNode(attr);
root.removeAttributeNode(attr);
d. Attr attr = document.createAttribute("name");
attr.setValue("FU");
root.setAttributeNode(attr);
root.removeAttributeNode("name"); ** Answ** c
What SAX method(s) do you implement to handle elements?
Select one:
a. You can implement the openElement and closeElement methods to catch the starting
and closing tags of elements
b. You can implement the startElement and closelement methods to catch the starting
and closing tags of elements
c. You can implement the startElement and endElement methods to catch the starting
and closing tags of elements
d. You can implement the beginElement and endElement methods to catch the starting
and closing tags of elements
e. You can implement the startDocument and endDocument methods to catch the
starting and closing tags of elements ** Answ** c
Which of the following statement about Attribute Node in DOM is true?
Select one:
a. This node represents the textual content or value of an element or attribute
b. The text inside this node is not subjected to parsing
c. This node contains a notation declared in the DTD
d. This node represents the property of an element ** Answ** d