MCQs > IT & Programming > XML MCQs > Basic XML MCQs

Basic XML MCQ

1. What does the Document Type Definition (DTD) define?

Answer

Correct Answer: Elements

Note: This Question is unanswered, help us to find answer for this one

2. An XML document contains this code as part of the DTD: . What are the rules that need to be followed for each of the elements?

Answer

Correct Answer: Is required, is optional, is required, and is optional.

Note: This Question is unanswered, help us to find answer for this one

3. XML is a markup language, not a programming language. What makes XML not qualify to be a programming language?

Answer

Correct Answer: XML contains only data and not any processing instructions.

Note: This Question is unanswered, help us to find answer for this one

4. The element is used to replace a namespace in the style sheet with a different namespace in the output. Which XSLT element needs to be its parent node?

Answer

Correct Answer: Root element

Note: This Question is unanswered, help us to find answer for this one

5. XHTML modules can be extended by adding elements, attributes, modifying content models, or some combination of these. What does a proper implementation of an XHTML module require?

Answer

Correct Answer: The implementation of an XHTML module requires a namespace module that holds the element, element attribute, and content model declarations, and a parameter module that uses the entities declared in the namespace module.

Note: This Question is unanswered, help us to find answer for this one

6. Which DOM node type may NOT have the EntityReference node type as one of its child nodes?

Answer

Correct Answer: Document

Note: This Question is unanswered, help us to find answer for this one

7. What is the correct syntax for comments in XQuery?

Answer

Correct Answer: (: :)

Note: This Question is unanswered, help us to find answer for this one

8. You are working with an XML document that uses an XML schema. How do you ensure that an attribute must be specified for its corresponding element?

Answer

Correct Answer: Set the use attribute to required.

Note: This Question is unanswered, help us to find answer for this one

9. The readyState property holds the status of the XMLHttpRequest. Which is NOT a valid status?

Answer

Correct Answer: 1 (PROCESSING)

Note: This Question is unanswered, help us to find answer for this one

10. An XHTML document type definition (DTD) describes the allowed syntax and grammar of XHTML markup. Which is not one of the formal DTDs used in XHTML 1.0?

Answer

Correct Answer: Basic

Note: This Question is unanswered, help us to find answer for this one

11. The purpose of an XML schema is to define the building blocks of an XML document. Which option best describes the building blocks of an XML document?

Answer

Correct Answer: The document's elements and attributes, their data types and default values, and the number and order of child elements.

Note: This Question is unanswered, help us to find answer for this one

12. Which type of DTD declaration is this code an example of?

Answer

Correct Answer: External

Note: This Question is unanswered, help us to find answer for this one

13. The main ways to control the display of XML documents are with Cascading Style Sheets (CSS) and Extensible Styles Language (XSL). What is an advantage of CSS over XSL?

Answer

Correct Answer: CSS is easier to learn, use, and maintain.

Note: This Question is unanswered, help us to find answer for this one

14. You want to convert a large XML file into CSV format. You did not create the XML file, so you are not familiar with all of the syntax. What will help you get the best insight into the file contents?

Answer

Correct Answer: XSD

Note: This Question is unanswered, help us to find answer for this one

15. In an XML DTD ATTLIST declaration, which tokenized attribute type is used to specify multiple ID values?

Answer

Correct Answer: IDREFS

Note: This Question is unanswered, help us to find answer for this one

16. Which statement is not true about XML?

Answer

Correct Answer: XML is a replacement for HTML.

Note: This Question is unanswered, help us to find answer for this one

17. You are checking someone else's XML document for errors. You notice that the prolog does not have a closing tag. What do you do?

Answer

Correct Answer: Leave it alone, because the prolog does not require a closing tag.

Note: This Question is unanswered, help us to find answer for this one

18. You are working with an XML document that uses an XML schema. How do you specify that an element can appear multiple times inside its parent element?

Answer

Correct Answer: Set the maxOccurs attribute to unbounded.

Note: This Question is unanswered, help us to find answer for this one

19. How does the XML DOM present an XML document?

Answer

Correct Answer: As a tree structure

Note: This Question is unanswered, help us to find answer for this one

20. In an XML DTD ATTLIST declaration, which default value is used to indicate that the attribute does not have to be included?

Answer

Correct Answer: #DEFAULT

Note: This Question is unanswered, help us to find answer for this one

21. What is the last step in extending XHTML modules?

Answer

Correct Answer: The last step is to create the DTD for the XHTML extension, which references both the XHTML modules and the new modules.

Note: This Question is unanswered, help us to find answer for this one

22. XML provides a framework for specifying markup languages, while HTML is a predefined markup language. What is applicable to XML and not HTML?

Answer

Correct Answer: It is mandatory to use closing tags with XML

Note: This Question is unanswered, help us to find answer for this one

23. What is this code an example of?

Answer

Correct Answer: Improperly named element

Note: This Question is unanswered, help us to find answer for this one

24. A markup language is a _ -readable language that _ text so that the computer can _ that text.

Answer

Correct Answer: Human; annotates; manipulate

Note: This Question is unanswered, help us to find answer for this one

25. Which Ajax method is used to exchange data with a server, using a modern browser?

Answer

Correct Answer: XMLHttpRequest

Note: This Question is unanswered, help us to find answer for this one

26. Which XHTML syntax rule does NOT apply to XML?

Answer

Correct Answer: XHTML tags and attributes must be in lowercase

Note: This Question is unanswered, help us to find answer for this one

27. What is this code an example of?

Answer

Correct Answer: Self-closing tag

Note: This Question is unanswered, help us to find answer for this one

28. Asynchronous Javascript and XML (Ajax) is technique for creating better, faster, and more interactive web applications. In addition to JavaScript and XML on the back end, which technologies are commonly used to craft AJAX experiences on the front end?

Answer

Correct Answer: HTML, CSS, and DOM

Note: This Question is unanswered, help us to find answer for this one

29. When working with Ajax applications, which is faster, XML or JSON?

Answer

Correct Answer: JSON, because it transfers data without waiting for a server response

Note: This Question is unanswered, help us to find answer for this one

30. Xml documents must be evaluated with an xml ____.

Answer

Correct Answer: Parser

Note: This Question is unanswered, help us to find answer for this one

31. Xml data is ____.

Answer

Correct Answer: Semistructured

Note: This Question is unanswered, help us to find answer for this one

32. Choose the disadvantages of DTD:

Answer

Correct Answer: DTDs are not extensible
DTDs support namespaces
There is no provision for inheritance from one DTDs to another

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

33. Which of the following is not a valid statement?

Answer

Correct Answer: XPath is a syntax for defining parts of an XML document.

Note: This Question is unanswered, help us to find answer for this one

34. Which of the following is not a valid statement?

Answer

Correct Answer: None of the above

Note: This Question is unanswered, help us to find answer for this one

35.

What can parameter entities appear in?

Answer

Correct Answer: dtd file

Note: This Question is unanswered, help us to find answer for this one

36.

Select the valid XPath operators:

Answer

Correct Answer: <=
or

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

37.

Which statement can be used to retrieve text from tag with id=123 from the following XML: All right Wrong

Answer

Correct Answer: <xsl:value-of select=”/root/sample[@id=’123’]”/>

Note: This Question is unanswered, help us to find answer for this one

38.

Select valid XSLT elements: (check all that apply)

Answer

Correct Answer: xsl:text
xsl:template

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

39.

Select the valid XML Schema Definition datatypes:

Answer

Correct Answer: string
anyAtomicType

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

40.

Select the valid XSLT/XPath functions:

Answer

Correct Answer: concat
floor
substring

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

41.

Which of the following is not valid for a Well Formed XML document?

Answer

Correct Answer: All elements should be included within a single root tag.

Note: This Question is unanswered, help us to find answer for this one

42.

Which of the following is a valid syntax to add the attribute named Type to the tag?

Answer

Correct Answer: <customer Type=” local” >

Note: This Question is unanswered, help us to find answer for this one

43.

Which of the following statements are true for XML attributes?

 

Answer

Correct Answer: Attributes cannot contain tree structures.
Attributes must be quoted.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

44.

What are the common rules for document type declarations?

 

Answer

Correct Answer: The standalone document declaration with a value of “yes” needs to be present as an attribute inside the XML declaration in the prolog of the XML document.
The name in the document type declaration must match the element type of the root element.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

45.

Select a valid xml document with an internal document type declaration:

 

Answer

Correct Answer: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE addressbook [ <!ELEMENT ab (fullname,company,email)> <!ELEMENT fullname (#PCDATA)> <!ELEMENT company (#PCDATA)> <!ELEMENT email (#PCDATA)> ]> <addressbook> <fullname>Stephane Kasriel <company>Upwork</company> <email>info@upwork.com</email> </addressbook> 

Note: This Question is unanswered, help us to find answer for this one

46.
The use of a DTD in XML development is:
 

 

Answer

Correct Answer: required when validating XML documents

Note: This Question is unanswered, help us to find answer for this one

47.
Select a correctly written XML declaration:
 

 

Answer

Correct Answer: <?xml version=“1.0”?>

Note: This Question is unanswered, help us to find answer for this one

48.
How would you write a valid CDATA section?
 

 

Answer

Correct Answer: <![CDATA[<learning>Hello, world!</learning>]]>

Note: This Question is unanswered, help us to find answer for this one

49.
How does a XML document store a new line?
 

 

Answer

Correct Answer: As LF (line feed), like Unix and Mac OS X.

Note: This Question is unanswered, help us to find answer for this one

50.

Suppose you have the following XML code:- Everyday Italian Giada De Laurentiis 2005 30.00 Learning XML Erik T. Ray 2003 39.95 What will be the XPath to Selects all the title elements that have a "lang" attribute with a value of "en"?

Answer

Correct Answer: //title[@lang='en']

Note: This Question is unanswered, help us to find answer for this one

51.

Which of the following XSL elements are valid?

Answer

Correct Answer: All of the above.

Note: This Question is unanswered, help us to find answer for this one

52.

Which of the following symbols are allowed in naming an XML element?

Answer

Correct Answer: _

Note: This Question is unanswered, help us to find answer for this one

53.

Which of the following XML fragments are well-formatted?

Answer

Correct Answer: student id="123"><phone/></student>
<student><id value="123"/><phone value="123"/></student>

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

54.

Which is the default character encoding in entities?

Answer

Correct Answer: UTF-8

Note: This Question is unanswered, help us to find answer for this one

55.

Which statements are false?

Answer

Correct Answer: XML elements cannot be empty.
XML elements must contain attribute.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

56.

Which of the following encoding types is support XML processor?

Answer

Correct Answer: UTF-8

Note: This Question is unanswered, help us to find answer for this one

57.

Which of the statements are true for XML elements?

Answer

Correct Answer: All XML elements must have a closing tag.
XML tags are case insensitive.
XML elements must be properly nested.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

58.

What is the role of the XPath language in XSL processing?

Answer

Correct Answer: XPath identifies locations in XML data to be transformed in the source tree and the locations to be generated in output tree specified in XSL translation prescriptions

Note: This Question is unanswered, help us to find answer for this one

59.

How would you define the language of some content inside an XML document?

Answer

Correct Answer: With a special attribute named xml:lang, which has to be declared, like any other, in a valid XML document.

Note: This Question is unanswered, help us to find answer for this one

60.

Which of the following is a correct implementation of CDATA ?

Answer

Correct Answer: <![CDATA[" and ends with "]]>

Note: This Question is unanswered, help us to find answer for this one

61.

What is the correct XSLT match pattern that can be applied to the root of an XML document?

Answer

Correct Answer: <xsl:template match=” /”>  

Note: This Question is unanswered, help us to find answer for this one

62.

Which of the following is an invalid statement?

Answer

Correct Answer: DTD does not defines names of elements of an XML document.

Note: This Question is unanswered, help us to find answer for this one

63.

Which of the following values can be used in attribute-type?

Answer

Correct Answer: NMTOKEN
NMTOKENS

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

64.

Which of the following statements are true?

Answer

Correct Answer: All XML Elements must be closed.
All not empty XML Documents must have root tag.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

65.

Which XSL formatting object is used to format a list?

Answer

Correct Answer: list-block

Note: This Question is unanswered, help us to find answer for this one

66.

Which of the following is not valid for Complex Elements?

Answer

Correct Answer: A complex element is an XML element that contains other elements and/or attributes.

Note: This Question is unanswered, help us to find answer for this one

67.

Which of the following expressions selects the parent of current node?

Answer

Correct Answer: ..

Note: This Question is unanswered, help us to find answer for this one

68.

Which of the following standards includes XPath?

Answer

Correct Answer: XSLT

Note: This Question is unanswered, help us to find answer for this one

69.

Which of the following is a valid syntax to use the external DTD?

Answer

Correct Answer: ?xml version=”1.0” standalone=”no”?> <! DOCTYPE DOCUMENT SYSTEM “order.dtd”?>

Note: This Question is unanswered, help us to find answer for this one

70.

Which of the following statements are true for XML namespaces?

Answer

Correct Answer: A namespace (or more precisely, a namespace binding) is declared using a family of reserved attributes. Such an attribute's name must either be xmlns or begin xmlns:.
The attribute's normalized value must be either a URI reference — the namespace name identifying the namespace — or an empty string. The namespace name, to serve its intended purpose, should have the characteristics of uniqueness and persistence. It is not a goal that it be directly usable for retrieval of a schema (if any exists).

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

71.

How many primitive data types are provided in schema definition?

Answer

Correct Answer: 19

Note: This Question is unanswered, help us to find answer for this one

72.

When should a validating XML application be used?

Answer

Correct Answer: missing or out-of-place elements could cause application errors

Note: This Question is unanswered, help us to find answer for this one

73.

Which of the following elements is root component of XSD?

Answer

Correct Answer: <Schema>

Note: This Question is unanswered, help us to find answer for this one

74.

What is the valid value of XLink namespace?

Answer

Correct Answer: http://www.w3.org/1999/xlink

Note: This Question is unanswered, help us to find answer for this one

75.

XML document can be viewed in __.

Answer

Correct Answer: IE 6.0

Note: This Question is unanswered, help us to find answer for this one

76.

The XSL formatting object which formats the tabular material of a table is ___.

Answer

Correct Answer: table

Note: This Question is unanswered, help us to find answer for this one

77.

Select a valid XML namespace example:

Answer

Correct Answer: <?xml version="1.0" encoding="UTF-8"?> <ab:addressbook xmlns:ab="www.upwork.com/ab”> <ab:fullname>Stephane Kasriel</ab:fullname> <ab:company>Upwork</ab:company> <ab:email>info@upwork.com</ab:email> </ab:addressbook> <?xml version="1.0" encoding="UTF-8"?> <addressbook:addressbook

Note: This Question is unanswered, help us to find answer for this one

78.

Which of the following is not a valid value for xlink:type in XLink?

Answer

Correct Answer: global

Note: This Question is unanswered, help us to find answer for this one

79.

Which of the following entities are predefined in XML?

Answer

Correct Answer: < (less-than sign)
& (ampersand sign)
" (quote sign)

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

80.

Which of the following are numeric data types?

Answer

Correct Answer: unsignedLong
unsignedByte

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

81.

Which of the following statements represent a well-formed XML document?

Answer

Correct Answer: Each of the parsed entities which is referenced directly or indirectly within the document is well-formed.
Each XML document has both a logical and a physical structure. Physically, the document is composed of units called entities. Logically, the document is composed of declarations, elements,
comments, character references, and processing instructions.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

82.

Which of the following is a correct XML Schema description matching the conditions below. Select all that apply. Assume the XML Schema Namespace prefix is "xs." Conditions: The "Address" attribute is defined as a string type that may be omitted.

Answer

Correct Answer: xs:attribute name="Address" type="xs:string" use="optional"/>

Note: This Question is unanswered, help us to find answer for this one

83.

Select a valid XML Schema Definition example:

Answer

Correct Answer: ?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name=“addressbook”> <xs:complexType> <xs:sequence> <xs:element name=“fullname" type="xs:string" /> <xs:element name="company" type="xs:string" /> <xs:element name=“email” type="xs:string” /> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> 

Note: This Question is unanswered, help us to find answer for this one

84.

Which of the following methods will adds a node after the last child node of the el element?

Answer

Correct Answer: el.appendChild(node)

Note: This Question is unanswered, help us to find answer for this one

85.

Which of the following XML fragments are well-formed?

Answer

Correct Answer: ?xml version=”1.0″?>

Note: This Question is unanswered, help us to find answer for this one

86.

What is DTD?

Answer

Correct Answer: DTD is abbreviated as Document Type Definition and it is defined to build legal building blocks of an XML document. It defines the XML document structure with elements and attributes.

Note: This Question is unanswered, help us to find answer for this one

87.

XSL has “ block container” for formating the document

Answer

Correct Answer: to create a block level reference area

Note: This Question is unanswered, help us to find answer for this one

88.

Which of the following browsers support XPointer?

Answer

Correct Answer: None of the above.

Note: This Question is unanswered, help us to find answer for this one

89.

Which of the following is not valid with respect to XPointer?

Answer

Correct Answer: XPointer does not allows a shorthand method for linking to an element with an id.

Note: This Question is unanswered, help us to find answer for this one

90.

What is XLink and XPointer?

Answer

Correct Answer: XLink is the standard way of creating hyperlinks in the XML files. Xpointer which allows those hyperlinks to point to more specific parts of the XML file or document.

Note: This Question is unanswered, help us to find answer for this one

91.

Which of the following is not a valid data type in XML?

 

Answer

Correct Answer: tinyInt

Note: This Question is unanswered, help us to find answer for this one

92.

Which of the following is not a valid indicator?

 

Answer

Correct Answer: any

Note: This Question is unanswered, help us to find answer for this one

93.

Which of the following values can be used with xml:space ?

 

Answer

Correct Answer: default
preserve

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

94.

Which of the following is not a built in data type for XML Schema?

 

Answer

Correct Answer: xs:number

Note: This Question is unanswered, help us to find answer for this one

95.

Which of the following is a valid XML Schema?

 

Answer

Correct Answer: ?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="note"> <xs:complexType> <xs:sequence> <xs:element name="to" type="xs:string"/> <xs:element name="from" type="xs:string"/> <xs:element name="heading" type="xs:string"/> <xs:element name="body" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> 

Note: This Question is unanswered, help us to find answer for this one

96.

Identify the most accurate statement about the application of XML:

 

Answer

Correct Answer: XML is used to describe hierarchically organized information.

Note: This Question is unanswered, help us to find answer for this one

97.

Which of the following is a correct definition of XML version?

 

Answer

Correct Answer: <?xml version="1.0"?>

Note: This Question is unanswered, help us to find answer for this one

98.

Which of these are not correct names for an XML element?

 

Answer

Correct Answer: root element>
<1street>

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

99.

Select a valid xml document with an external document type declaration:

 

Answer

Correct Answer: ?xml version="1.0" encoding="UTF-8" standalone="no" ?> <!DOCTYPE addressbook SYSTEM "addressbook.dtd"> <addressbook> <fullname>Stephane Kasriel <company>Upwork</company>

Note: This Question is unanswered, help us to find answer for this one

100.

What is the correct XSL match pattern that can be applied on any element named y whose parent is an element named x?

 

Answer

Correct Answer: <xsl:template match=”x/y”>

Note: This Question is unanswered, help us to find answer for this one

101.

Which of the following statements is invalid for XML schema?

 

Answer

Correct Answer: None of the above

Note: This Question is unanswered, help us to find answer for this one

102.

Which of the following restrictions can be used with string data type?

 

Answer

Correct Answer: All of the above.

Note: This Question is unanswered, help us to find answer for this one

103.

Which of the following values xlink:show attribute can have?

 

Answer

Correct Answer: new

Note: This Question is unanswered, help us to find answer for this one

104.

Which of the following is not a valid XLink attribute?

 

Answer

Correct Answer: xlink:target

Note: This Question is unanswered, help us to find answer for this one

105.

Which of the following is not valid with respect to DTD?

 

Answer

Correct Answer: If the DTD is declared inside the XML file, it must not be wrapped inside the definition.

Note: This Question is unanswered, help us to find answer for this one

106.

Which XSL formatting object holds the content of the table body?

 

Answer

Correct Answer: table-body

Note: This Question is unanswered, help us to find answer for this one

107.

Which of the following is used to create a link in XML documents?

 

Answer

Correct Answer: XLink

Note: This Question is unanswered, help us to find answer for this one

108.

Which of the following is true about XHTML attributes?

 

Answer

Correct Answer: The attribute names should be in lower case.

Note: This Question is unanswered, help us to find answer for this one

109.

Which of the following is not a valid node type?

 

Answer

Correct Answer: Image

Note: This Question is unanswered, help us to find answer for this one

110.

Select which of the following is a valid XML document with respect to the following XML Schema? <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" > <xs:element name="Employee" type="EmployeeType" /> <xs:complexType name="EmployeeType"> <xs:sequence maxOccurs="unbounded"> <xs:element ref="Name" /> <xs:element ref="Department" /> </xs:sequence> </xs:complexType> <xs:element name="Name" type="xs:string" /> <xs:element name="Department" type="xs:string" /> </xs:schema>

Answer

Correct Answer: None of the above

Note: This Question is unanswered, help us to find answer for this one

111.

Which of the following events is operating DOM in XHTML 2.0 ?

 

Answer

Correct Answer: XML

Note: This Question is unanswered, help us to find answer for this one

112.

Which of the following values xlink:actuate can have?

 

Answer

Correct Answer: onLoad
none

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

113.

Which of the following is not a valid statement?

 

Answer

Correct Answer: A node can have exactly one child.

Note: This Question is unanswered, help us to find answer for this one

114.

Suppose you have a letter element as :- <letter> Dear Mr.<name>John Smith</name>. Your order <orderid>1032</orderid> will be shipped on <shipdate>2001-07-13</shipdate>. </letter> 

Which of the following will be a valid Schema for this?


Answer

Correct Answer: xs:element name="letter"> <xs:complexType mixed="true"> <xs:sequence> <xs:element name="name" type="xs:string"/> <xs:element name="orderid" type="xs:positiveInteger"/><xs:element name="shipdate" type="xs:date"/> </xs:sequence> </xs:complexType> </xs:element> 

Note: This Question is unanswered, help us to find answer for this one

115.

Which of the following is not part of Miscellaneous Data Types?

 

Answer

Correct Answer: base364Binary

Note: This Question is unanswered, help us to find answer for this one

116.

Which of the following elements is used to add multiple schemas with the same target namespace to a document?

Answer

Correct Answer: <include>

Note: This Question is unanswered, help us to find answer for this one

117.

Which of the following is the correct syntax for defining restrictions on an XML element value in an XML schema?

Answer

Correct Answer: <xs:restriction base="xs:integer">

Note: This Question is unanswered, help us to find answer for this one

118.

Which of the following elements can only be included in the annotation element in an XML schema?

Answer

Correct Answer: <documentation>

Note: This Question is unanswered, help us to find answer for this one

119.

Which of the following elements is used to allow documents to contain additional elements that are not declared in the main XML schema?

Answer

Correct Answer: any>

Note: This Question is unanswered, help us to find answer for this one

120.

Which of the following is the correct format for specifying the date in UTC?

Answer

Correct Answer: <start>2002-09-24Z</start>

Note: This Question is unanswered, help us to find answer for this one

121.

The elements of an XML schema containing only text and attributes are declared using the________ element.

Answer

Correct Answer: <xs:simpleContent>

Note: This Question is unanswered, help us to find answer for this one

122.

Analyze the following example:

xs:element name="letter">
  <xs:simpleType>
    <xs:restriction base="xs:string">
      <xs:pattern value="([a-z][A-Z])+"/>
    </xs:restriction>
  </xs:simpleType>
</xs:element>

Which of the following are acceptable values for the <letter> element in the above defined XML schema?

Answer

Correct Answer: dOnE

Note: This Question is unanswered, help us to find answer for this one

123.

Which of the following is a secondary schema component?

Answer

Correct Answer: Assertions

Note: This Question is unanswered, help us to find answer for this one

124.

Which of the following are binary data types in an XML schema?

Answer

Correct Answer: hexBinary

Note: This Question is unanswered, help us to find answer for this one

125.

Analyze the following XML schema fragment:
<xs:element name="name" type="xs:string" block="substitution"/>
<xs:element name="navn" substitutionGroup="name"/>
<xs:complexType name="custinfo">
<xs:sequence>
<xs:element ref="name"/>
</xs:sequence>
</xs:complexType>
<xs:element name="customer" type="custinfo" block="substitution"/>
<xs:element name="kunde" substitutionGroup="customer"/>
Which of the following is a valid XML document according to the schema above?

Answer

Correct Answer: <customer> <name>John Smith</name> </customer>

Note: This Question is unanswered, help us to find answer for this one

126.

Which of the following are built-in data types of an XML schema?

Answer

Correct Answer: xs:string

Note: This Question is unanswered, help us to find answer for this one

127.

Which of the following statements is true if default and use both are present in an XML representation of
an Attribute declaration?

Answer

Correct Answer: The actual value of use must be optional.

Note: This Question is unanswered, help us to find answer for this one

128.

What is the default value of the <minOccurs> indicator for Order and Group indicators?

Answer

Correct Answer: 1

Note: This Question is unanswered, help us to find answer for this one

129.

Following is an example of an element in an XML document using a time declaration in its schema
definition:
<start>03:05:10.5</start
Which of the following does the component 10.5 specify?

Answer

Correct Answer: Seconds

Note: This Question is unanswered, help us to find answer for this one

130.

What value of <maxOccurs> indicator can you set when using the <all> indicator in an XML schema?

Answer

Correct Answer: 1

Note: This Question is unanswered, help us to find answer for this one

131.

Which of the following attributes is used to specify that a schema attribute is required?

Answer

Correct Answer: use

Note: This Question is unanswered, help us to find answer for this one

132.

Which of the following whiteSpace constraint values makes an XML processor reduce multiple spaces
into a single space?

Answer

Correct Answer: collapse

Note: This Question is unanswered, help us to find answer for this one

133.

Which of the following type definitions forms the root of the Type Definition Hierarchy?

Answer

Correct Answer: xs:anyType

Note: This Question is unanswered, help us to find answer for this one

134.

Analyze the following schema declaration:
<?xml version="1.0"?>
<xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema
targetNamespace="http://www.expertrating.com" xmlns=http://www.expertrating.com
elementFormDefault="qualified">
...
...
</xs:schema>
Which of the following fragments of the schema declaration defines the namespace being used by the
elements and data types in the schema?

Answer

Correct Answer: xmlns:xs="http://www.w3.org/2001/XMLSchema"

Note: This Question is unanswered, help us to find answer for this one

135.

Which of the following validation rules must be true of an element information item E to be locally
valid(Simple Type) with respect to an element declaration D?

Answer

Correct Answer: D{abstract}=false

Note: This Question is unanswered, help us to find answer for this one

136.

Analyze the following schema file "family.xsd":
<?xml version="1.0"?>
<xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema
elementFormDefault="qualified">
<xs:element name="persons">
<xs:complexType>
<xs:sequence>
<xs:element name="person" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="full_name" type="xs:string"/>
<xs:element name="child_name" type="xs:string" maxOccurs="5"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Which of the following statements are true about the above schema file?

Answer

Correct Answer: Each person element must contain a full_name element.

Note: This Question is unanswered, help us to find answer for this one

137.

Which of the following are declaration components in an XML schema?

Answer

Correct Answer: Element

Note: This Question is unanswered, help us to find answer for this one

138.

Which of the following data types are derived from the decimal data type?

Answer

Correct Answer: int

Note: This Question is unanswered, help us to find answer for this one

139.

Which of the following attributes is defined inside the <xs:extension> element of an XML schema?

Answer

Correct Answer: base

Note: This Question is unanswered, help us to find answer for this one

140.

Which of the following is a helper schema component?

Answer

Correct Answer: Wildcards

Note: This Question is unanswered, help us to find answer for this one

141.

Analyze the following URI of an XML schema:
http://www.w3.org/XML/XMLSchema/vX.Y/Ne
What does the component Ne in the above URI identify?

Answer

Correct Answer: It identifies the language described in the N-th edition of the XSD specification.

Note: This Question is unanswered, help us to find answer for this one

142.

Analyze the following example:
<xs:element name="letter">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="([a-z])*"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
Which of the following are acceptable values for letter?

Answer

Correct Answer: abcd

Note: This Question is unanswered, help us to find answer for this one

143.

Which of the following is used to replace spaces in a URI while using anyURI data type in an XML
schema?

Answer

Correct Answer: %20

Note: This Question is unanswered, help us to find answer for this one

144.

Which of the following are the correct ways to define an empty complex element in an XML schema?

Answer

Correct Answer: <xs:element name="product"> <xs:complexType> <xs:complexContent> <xs:restriction base="xs:integer"> <xs:attribute name="prodid" type="xs:positiveInteger"/> </xs:restriction> </xs:complexContent> </xs:complexType> </xs:element>

Note: This Question is unanswered, help us to find answer for this one

145.

Which of the following are primary schema components?

Answer

Correct Answer: Attribute declarations

Note: This Question is unanswered, help us to find answer for this one

146.

Which of the following constraints can be used by a boolean data type?

Answer

Correct Answer: pattern

Note: This Question is unanswered, help us to find answer for this one

147.

Which of the following restrictions cannot be used with the ENTITIES String data type?

Answer

Correct Answer: pattern

Note: This Question is unanswered, help us to find answer for this one

148.

Suppose you want to limit the content of an XML element called "car" to a set of acceptable values like
BMW, Audi etc. Which of the following constraints will you use in the above situation?

Answer

Correct Answer: enumeration

Note: This Question is unanswered, help us to find answer for this one

149.

Which of the following attributes must be set to true to enable character data to appear between the
child-elements of an element in an XML schema?

Answer

Correct Answer: mixed

Note: This Question is unanswered, help us to find answer for this one

150.

Which of the following is the correct format for specifying the date in an XML schema?

Answer

Correct Answer: YYYY-MM-DD

Note: This Question is unanswered, help us to find answer for this one

151.

The maximum number of decimal digits that you can specify using the decimal data type in an XML
schema is ________.

Answer

Correct Answer: 18

Note: This Question is unanswered, help us to find answer for this one

152.

Which of the following data types are derived from the String data type?

Answer

Correct Answer: ID

Note: This Question is unanswered, help us to find answer for this one

153.

Which of the following attributes can be specified in the <xs:complexType> element of an XML schema
so as to allow several elements to refer to the same complex type?

Answer

Correct Answer: name

Note: This Question is unanswered, help us to find answer for this one

154.

Which of the following is the correct format for specifying the time interval using the XSD duration data
type?

Answer

Correct Answer: PnYnMnDTnHnMnS

Note: This Question is unanswered, help us to find answer for this one

155.

Which of the following statements is true about an XML representation of Attribute declarations in an
XML schema?

Answer

Correct Answer: If the targetNamespace attribute is present, the name attribute should be present.

Note: This Question is unanswered, help us to find answer for this one

156.

In which of the following model groups of an XML schema do the element information items match one
or more of the particles?

Answer

Correct Answer: Disjunction

Note: This Question is unanswered, help us to find answer for this one

157.

Analyze the following schema declaration:
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.expertrating.com" xmlns="http://www.expertrating.com"
elementFormDefault="qualified">
...
...
</xs:schema>
Which of the following fragments of the schema declaration indicates the default namespace of the XML
schema?

Answer

Correct Answer: xmlns="http://www.expertrating.com"

Note: This Question is unanswered, help us to find answer for this one

158.

Analyze the following XML document having a reference to an XML schema:
<?xml version="1.0"?>
<note
xmlns="http://www.expertrating.com" xsi:schemaLocation="http://www.expertrating.com note.xsd">
<to>Tove</to>
<body>Don't forget me this weekend!</body>
</note>
Which of the following statements is true?

Answer

Correct Answer: The XML Schema Instance Namespace is not specified.

Note: This Question is unanswered, help us to find answer for this one

159.

Which of the following restrictions can be used with the date data types?

Answer

Correct Answer: enumeration

Note: This Question is unanswered, help us to find answer for this one

160.

Which of the following is correct about SAX2?

Answer

Correct Answer: SAX2 is used for event-based xml implementation

Note: This Question is unanswered, help us to find answer for this one

161.

What are the possible values for the actuate attribute of an XLink?

Answer

Correct Answer: onLoad

Note: This Question is unanswered, help us to find answer for this one

162.

Is the following statement correct?
All tags in XML must be closed.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

163.

CDATA sections provide a way to tell the parser that there is no
markup in the characters contained by the CDATA  
section. Which of the following is the correct syntax for CDATA?

Answer

Correct Answer: <![CDATA[applications with XML using <, >,]]>

Note: This Question is unanswered, help us to find answer for this one

164.

Which of the following options have incorrect syntax?

 

Answer

Correct Answer: xsl:sort>

Note: This Question is unanswered, help us to find answer for this one

165.

Which is the correct way to declare an XML Namespace?

 

Answer

Correct Answer: <hns:body xmlns:hns="http://www.w3.org/TR/html4/">

Note: This Question is unanswered, help us to find answer for this one

166.

Which is the correct method for declaring the xml version?

 

Answer

Correct Answer: ?xml version="1.0"?>

Note: This Question is unanswered, help us to find answer for this one

167.

Select the correct XML from following options.

 

Answer

Correct Answer: <Customers><Customer><ID></ID><Customer><Custom er><Name></Name></Customer></Customer></Custom er></Customers>

Note: This Question is unanswered, help us to find answer for this one

168.

Which of the following is an XML declaration?

 

Answer

Correct Answer: ?xml version="1.0"?>

Note: This Question is unanswered, help us to find answer for this one

169.

Choose the correct DTD Element definition:

 

Answer

Correct Answer: <!ELEMENT country (#PCDATA)>

Note: This Question is unanswered, help us to find answer for this one

170.

Which of the following are methods of formatting of XML documents?

Answer

Correct Answer: CSS

Note: This Question is unanswered, help us to find answer for this one

171.

Which line will generate an error in the following XML file?
1.<?xml version="1.0"?>
2.<folder>
3.<file><name><contents></contents></name></file>
4.<file><name/><contents></contents><name/></file>
5.<file><name/><contents></contents></name></file>
6.<file><name><contents/><name/></file>
7.</folder>

Answer

Correct Answer: 4,5,6

Note: This Question is unanswered, help us to find answer for this one

172.

Which of the following statements is true with regard to XHTML?

Answer

Correct Answer: XHTML documents must satisfy all the syntax rules of XML

Note: This Question is unanswered, help us to find answer for this one

173.

Which attribute is not used when specifying a Simple XLink element?

Answer

Correct Answer: locator

Note: This Question is unanswered, help us to find answer for this one

174.

What does the following XPath expression represent?
/addressbook/*/phone

Answer

Correct Answer: The phone element which is two levels below the addressbook element

Note: This Question is unanswered, help us to find answer for this one

175.

Which of the following are the elements used to define an XML
Schema?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

176.

What is the correct value of order attribute for sorting the string in
ascending order?

Answer

Correct Answer: Ascending

Note: This Question is unanswered, help us to find answer for this one

177.

Which of the following statements are true about the number data
type in xml?

Answer

Correct Answer: can store integer and decimal values

Note: This Question is unanswered, help us to find answer for this one

178.

What is an NMTOKEN attribute type?

Answer

Correct Answer: It can only contain letters and digits, hyphens, colons and a few other characters

Note: This Question is unanswered, help us to find answer for this one

179.

How is an entity used within an XML document?

Answer

Correct Answer: &entity-name;

Note: This Question is unanswered, help us to find answer for this one

180.

What is XML DOM used for?

Answer

Correct Answer: Programmatically accessing the elements within an XML file

Note: This Question is unanswered, help us to find answer for this one

181.

Select the appropriate statement to find all books that have an
excerpt and a title.

Answer

Correct Answer: book[excerpt][title]

Note: This Question is unanswered, help us to find answer for this one

182.

Which of the following statements is false with regard to XHTML
syntax?

Answer

Correct Answer: The name attribute is to be used instead of the id attribute for identifying elements

Note: This Question is unanswered, help us to find answer for this one

183.

Which of the following statements are true for elements?

Answer

Correct Answer: All elements must have names

Note: This Question is unanswered, help us to find answer for this one

184.

What is an IDREFS attribute type?

Answer

Correct Answer: Its value must match the value of one or more ID attributes separated by whitespace

Note: This Question is unanswered, help us to find answer for this one

185.

Which of the following attributes are optional in xsl:sort command?

Answer

Correct Answer: order

Note: This Question is unanswered, help us to find answer for this one

186.

Which element in the following extract contains Simple Content (Text
Content)?
1 <?xml version="1.0"?>
2 <folder>
3 <file>
4 <name>Accounts Reports</name>
5 <contents>These are the contents of the file
6 <report>This is the first report</report>
7 </contents>
8 End of the file
9 </file>
10 </folder>

Answer

Correct Answer: name

Note: This Question is unanswered, help us to find answer for this one

187.

Which element in the following extract contains Element Content?
1 <?xml version="1.0"?>
2 <folder>
3 <file>
4 <name>Accounts Reports</name>
5 <contents>These are the contents of the file
6 <report>This is the first report</report>
7 </contents>
8 End of the file
9 </file>
10 </folder>

Answer

Correct Answer: folder

Note: This Question is unanswered, help us to find answer for this one

188.

Which of the following XPath functions is not a string function?

Answer

Correct Answer: namespace-uri

Note: This Question is unanswered, help us to find answer for this one

189.

Which of the following is not a type of attribute?

Answer

Correct Answer: PCDATA

Note: This Question is unanswered, help us to find answer for this one

190.

Which of the following is not an advantage of XML?

Answer

Correct Answer: XML can be used for formatting web pages

Note: This Question is unanswered, help us to find answer for this one

191.

How is an External Unparsed General entity defined in a DTD?

Answer

Correct Answer: <!ENTITY entity-name SYSTEM "file-name" NDATA notation-name>

Note: This Question is unanswered, help us to find answer for this one

192.

What is the Root element of an XSL file?

Answer

Correct Answer: The stylesheet element

Note: This Question is unanswered, help us to find answer for this one

193.

Which of the following data types are allowed in xsl:sort command?

Answer

Correct Answer: Text

Note: This Question is unanswered, help us to find answer for this one

194.

Which of the following is not true about CDATA sections?

Answer

Correct Answer: CDATA sections can contain tags and these tags must be declared in the DTD

Note: This Question is unanswered, help us to find answer for this one

195.

Which of the following is a required namespace in xml schema?

Answer

Correct Answer: xmlns="urn:schemas-microsoft-com:xml-data"

Note: This Question is unanswered, help us to find answer for this one

196.

Which of the following most accurately describes the purpose of XSL?

Answer

Correct Answer: It is used for transforming XML documents from one format of XML to another

Note: This Question is unanswered, help us to find answer for this one

197.

Which of the following are XHTML DTDs?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

198.

What is an ID attribute type?

Answer

Correct Answer: It can contain letters and numbers and it must contain unique value

Note: This Question is unanswered, help us to find answer for this one

199.

Which of the statements are correct?
(a)Attributes added with <xsl:attribute> must appear before children
are added to the element.
(b)You can add an attribute to an element that already has an
attribute of that name.

Answer

Correct Answer: Only (a) is true

Note: This Question is unanswered, help us to find answer for this one

200.

What is an ENTITY attribute type?

Answer

Correct Answer: It can contain the name of any External Unparsed entity

Note: This Question is unanswered, help us to find answer for this one

201.

When are you likely to use an XML Namespace?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

202.

Which of the following statements are correct?

Answer

Correct Answer: XML can be used for storing data

Note: This Question is unanswered, help us to find answer for this one

203.

What does depth method of DOM do?

Answer

Correct Answer: Returns the depth within the document tree where the specified node appears

Note: This Question is unanswered, help us to find answer for this one

204.

Which of the following is not a primitive data type?

Answer

Correct Answer: date

Note: This Question is unanswered, help us to find answer for this one

205.

What is the difference between General entities and Parameter
Entities?

Answer

Correct Answer: Parameter entities are used within DTDs and General entities are used within XML documents

Note: This Question is unanswered, help us to find answer for this one

206.

Which line will generate an error in the following XML code?
1 <?xml version="1.0"?>
2 <f_ns:folder dt="1/1/2000">
3 <file f_id="1" >
4 <name>Accounts Reports</name>
5 <contents />
6 <!-- Note: This file does not contain anything yet -->
7 </file>
8 </f_ns:folder>

Answer

Correct Answer: 2,8

Note: This Question is unanswered, help us to find answer for this one

207.

Which of the following is an invalid operator?

Answer

Correct Answer: None of the above

Note: This Question is unanswered, help us to find answer for this one

208.

Which of the following is not a reason for using DTDs?

Answer

Correct Answer: DTDs speed up the parsing of an XML document

Note: This Question is unanswered, help us to find answer for this one

209.

Read the following statements carefully.
1. <xsl:for-each select="portfolio/stock">
2. <TR>
3. <TD><xsl:value-of "symbol"/></TD>
4. </TR>
5. </xsl:for-each>
Which statement is incorrect in above rows?

Answer

Correct Answer: 3

Note: This Question is unanswered, help us to find answer for this one

210.

Select the appropriate statement to find all bookstores where the
value of the specialty attribute is equal to "textbooks".

Answer

Correct Answer: /bookstore[@specialty = "textbooks"]

Note: This Question is unanswered, help us to find answer for this one

211.

Which limitation of HTML links is overcome by XLink?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

212.

State whether the following statement is correct?
Conditional templates are output only if certain conditions exist within
the source document.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

213.

Which of the following statements define 'prolog' in xml?

Answer

Correct Answer: The prolog refers to the information that appears before the start tag of the document or root element

Note: This Question is unanswered, help us to find answer for this one

214.

Which of the following is not a parameter of DOM event
ontransformnode?

Answer

Correct Answer: nodeType

Note: This Question is unanswered, help us to find answer for this one

215.

Which of the following statements is not correct about schema?

Answer

Correct Answer: The Schema element in an XML Schema document can not use a namespace

Note: This Question is unanswered, help us to find answer for this one

216.

What does the following XPath expression represent?
/addressbook/address

Answer

Correct Answer: All addresses within the addressbook element

Note: This Question is unanswered, help us to find answer for this one

217.

When are you most likely to use XML?

Answer

Correct Answer: You have created a Java-based data-oriented application which will be used on several different platforms

Note: This Question is unanswered, help us to find answer for this one

218.

Which of the following is not an XSL element?

Answer

Correct Answer: select

Note: This Question is unanswered, help us to find answer for this one

219.

Comments describe statements in a better way. What is the correct
syntax of comments in XML?

Answer

Correct Answer: Begin with <!-- and end with -->

Note: This Question is unanswered, help us to find answer for this one

220.

You have records of 50 employees in an XML document. You want to
create a table from a group of XML nodes. Which method is best
suited to convert data into HTML table rows?

Answer

Correct Answer: Create a loop through for-each command

Note: This Question is unanswered, help us to find answer for this one

221.

Which of the following statements is true?

Answer

Correct Answer: An XML Namespace can be associated with any element in the XML document and its scope is limited to that element along with its child elements

Note: This Question is unanswered, help us to find answer for this one

222.

What are the requirements for an Extended XLink element?

Answer

Correct Answer: You must specify at least two locators and one arc

Note: This Question is unanswered, help us to find answer for this one

223.

Is the following statement correct?
You can use XSL Transformations (XSLT) to merge simple regular
XML data with an HTML template for display.

Answer

Correct Answer: Yes

Note: This Question is unanswered, help us to find answer for this one

224.

What are XML Namespaces used for?

Answer

Correct Answer: They prevent element naming conflicts when more than one XML vocabulary is being used in an XML document

Note: This Question is unanswered, help us to find answer for this one

225.

What does the following DTD imply?
<!DOCTYPE messagelist [
<!ELEMENT messagelist(message*)>
<!ELEMENT message(sender*,receiver,body+)>
<!ELEMENT sender (#PCDATA)>
<!ELEMENT receiver (#PCDATA)>
<!ELEMENT body (#PCDATA|subject|attachment)*>
<!ELEMENT subject (#PCDATA)>
<!ELEMENT attachment (#PCDATA)>
]>

Answer

Correct Answer: The subject and attachments element can appear in any sequence and can be repeated more than once

Note: This Question is unanswered, help us to find answer for this one

226.

Which of the following is not a DOM method?

Answer

Correct Answer: object

Note: This Question is unanswered, help us to find answer for this one

227.

An XML document has a root element named <folder>. The DTD for
this document is stored in an External file called folder.dtd. How will
you declare this external DTD in the XML document?

Answer

Correct Answer: <!DOCTYPE folder SYSTEM "folder.dtd">

Note: This Question is unanswered, help us to find answer for this one

228.

Which elements in the following extract contain Mixed Content?
1 <?xml version="1.0"?>
2 <folder>
3 <file>
4 <name>Accounts Reports</name>
5 <contents>These are the contents of the file
6 <report>This is the first report</report>
7 </contents>
8 End of the file
9 </file>
10 </folder>

Answer

Correct Answer: file

Note: This Question is unanswered, help us to find answer for this one

229.

Which of the following is not an advantage of DOM?

Answer

Correct Answer: Retrieves small amounts of information

Note: This Question is unanswered, help us to find answer for this one

230.

Which of the following is false when you use XSL to convert an XML
document to HTML format?

Answer

Correct Answer: The document generated after transformation may or may not satisfy all XML syntax re

Note: This Question is unanswered, help us to find answer for this one

231.

Which of the following can store negative values?

Answer

Correct Answer: int

Note: This Question is unanswered, help us to find answer for this one

232.

Which of the following is an attribute of the locator element in an
Extended XLink?

Answer

Correct Answer: href

Note: This Question is unanswered, help us to find answer for this one

233.

What are the possible values for the show attribute of an XLink?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

234.

Which of the following is not a schema element?

Answer

Correct Answer: ElementGroup

Note: This Question is unanswered, help us to find answer for this one

235.

Which of the following is not an attribute of AttributeType element of
schema?

Answer

Correct Answer: optional

Note: This Question is unanswered, help us to find answer for this one

236.

Which of the following is the correct way to define an attribute named
size of an element named shoe. The attribute should have a default
value of 0?

Answer

Correct Answer: <!ATTLIST shoe size CDATA "0">

Note: This Question is unanswered, help us to find answer for this one

237.

State whether the following statement is correct?
XPath can be used directly from the Document Object Model (DOM).

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

238.

What are the relative advantages of Schemas over DTDs?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

239.

What is the purpose of XPointer?

Answer

Correct Answer: It is used when you want a link to point to a particular part of an XML document

Note: This Question is unanswered, help us to find answer for this one

240.

State whether the following statement is correct?
Attributes must have both a name and a value.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

241.

What is wrong with this XML code?
1 <?xml version="1.0"?>
2 <folder dt="1/1/2000">
3 <file id="1" >
4 <name>Accounts Reports</name>
5 <contents />
6 <!-- Note: This file does not contain anything yet -->
7 </file>
8 </folder>
9 <folder dt="1/2/2000">
10 <file id="2" >
11 <name>Marketing Reports</name>
12 <contents />
13 <!-- Note: This file does not contain anything yet -->
14 </file>
15 </folder>

Answer

Correct Answer: it doesn't have a root element

Note: This Question is unanswered, help us to find answer for this one

242.

What does the following DTD imply?
<!DOCTYPE messagelist [
<!ELEMENT messagelist(message*)>
<!ELEMENT message(sender?,receiver,subject,body,attachment+)>
<!ELEMENT sender (#PCDATA)>
<!ELEMENT receiver (#PCDATA)>
<!ELEMENT subject (#PCDATA)>
<!ELEMENT body (#PCDATA)>
<!ELEMENT attachment (#PCDATA)>
]>

Answer

Correct Answer: There must be one or more attachments

Note: This Question is unanswered, help us to find answer for this one

243.

Which of the following patterns are correct for 'select' attribute
of xsl:sort command?

Answer

Correct Answer: text() for any text

Note: This Question is unanswered, help us to find answer for this one

244.

What does the following XPath expression represent?

/addressbook/address[@id='1']

Answer

Correct Answer: The address having an id attribute with a value of 1

Note: This Question is unanswered, help us to find answer for this one

245. Which of the following are examples of XSD Order Indicators?


Answer

Correct Answer: All

Note: This Question is unanswered, help us to find answer for this one

246. Which of the following deals with internationalization and localization of Extended Links?


Answer

Correct Answer: Title-Type

Note: This Question is unanswered, help us to find answer for this one

247. What type of restriction is exhibited by the following XSD code snippet?
<xs:element name="character">
        <xs:simpleType>
             <xs:restriction base="xs:string">
                     <xs:pattern value="[a-z]"/>
             </xs:restriction>
         </xs:simpleType>
</xs:element>


Answer

Correct Answer: The character element accepts only ONE of the LOWERCASE letters from a to z.

Note: This Question is unanswered, help us to find answer for this one

248. Which of the following are valid DOM methods?


Answer

Correct Answer: createAttribute()

Note: This Question is unanswered, help us to find answer for this one

249. Which of the following statements does not comply with XHTML syntax?


Answer

Correct Answer: option selected="selected"

Note: This Question is unanswered, help us to find answer for this one

250. Which of the following XSD code snippets automatically assigns a value to the shapes element when no value is present?


Answer

Correct Answer: xs:element name="shapes" type="xs:string" default="square"/

Note: This Question is unanswered, help us to find answer for this one

251. Which of the following XML DOM object properties returns the root element of an element?


Answer

Correct Answer: ownerDocument

Note: This Question is unanswered, help us to find answer for this one

252. What does the following DTD imply?

<!DOCTYPE booklist [
<!ELEMENT book (#PCDATA)>
     <!ATTLIST book pages CDATA #IMPLIED>
]>


Answer

Correct Answer: The book element may or may not have an attribute called pages.

Note: This Question is unanswered, help us to find answer for this one

253. Which of the following XSL component is a language for transforming XML documents?


Answer

Correct Answer: XSLT

Note: This Question is unanswered, help us to find answer for this one

254. Which of the following XPath Boolean functions is used to return the largest integer number that is not greater than the argument of that number?


Answer

Correct Answer: floor

Note: This Question is unanswered, help us to find answer for this one

255. Which of the following is an Xlink Locator attribute?


Answer

Correct Answer: href

Note: This Question is unanswered, help us to find answer for this one

256. Which of the following XML technologies are related to the formatting of XML documents?


Answer

Correct Answer: XSL-FO

Note: This Question is unanswered, help us to find answer for this one

257. Which of the following filter operators are associated with the <xsl:for-each> element?


Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

258. Which of the following is the root element of every XML Schema?


Answer

Correct Answer: xs:schema

Note: This Question is unanswered, help us to find answer for this one

259. Which of the following is the correct sequence of NodeType value for the following XML elements?

Attribute, Text, Document, Comment


Answer

Correct Answer: 2,3,9,8

Note: This Question is unanswered, help us to find answer for this one

260. Which of the following statements is not true of XForms?


Answer

Correct Answer: XForms are restricted to XHTML.

Note: This Question is unanswered, help us to find answer for this one

261. Which of the following operations or applications use XML?


Answer

Correct Answer: WSDL applications

Note: This Question is unanswered, help us to find answer for this one

262. Which of the following is a top level element defined in an XSL style sheet?


Answer

Correct Answer: xsl:stylesheet

Note: This Question is unanswered, help us to find answer for this one

263. Which of the following is the root element of an XHTML document?


Answer

Correct Answer: The htmltag

Note: This Question is unanswered, help us to find answer for this one

264. Which of the following elements is not associated with XSL?


Answer

Correct Answer: any

Note: This Question is unanswered, help us to find answer for this one

265. Following the XML Code snippet displays the title of books made by a particular author, using XSLT for each element. The book titles are in sorted order.

1.<xsl:for-each select="author/books">
2.<xsl:sort select="book-title" data-type="text" order="ascending"/>
3.        <tr>
4.                <td><xsl:value of  select="book-title"/></td>
5.           </tr>
6.</xsl:for-each>
On which line will the error occur?


Answer

Correct Answer: 4

Note: This Question is unanswered, help us to find answer for this one

266. From the following XML Code Snippet, the model name of the Mercedes manufacturer is to be displayed. Which of the following options is correct?

<?xml version="1.0" encoding="ISO-8859-1"?>
<cars>
     <car>
           <manufacturer>BMW</manufacturer>
           <model>MT3GTR</model>
       </car>
       <car>
           <manufacturer>Mercedes</manufacturer>
           <model>E-Class</model>
     </car>
   <car>
           <manufacturer>Porche</manufacturer>
           <model>911 Turbo</model>
   </car>
</cars>


Answer

Correct Answer: xmlDoc.getElementsByTagName("car")[1].childNodes[1].nodeValue;

Note: This Question is unanswered, help us to find answer for this one

267. Which of the following statements finds all the dealers where the value of the product attribute is equal to "computers"?


Answer

Correct Answer: /dealers[@product = "computers"]

Note: This Question is unanswered, help us to find answer for this one

268. Which of the following is not an XForm Form Control?


Answer

Correct Answer: button

Note: This Question is unanswered, help us to find answer for this one

269. Which of the following is an XForm String function?


Answer

Correct Answer: property()

Note: This Question is unanswered, help us to find answer for this one

270. The main purpose of XML DOM is to:


Answer

Correct Answer: programmatically access and manipulate XML Data.

Note: This Question is unanswered, help us to find answer for this one

271. Which of the following XSD Constraints is used to define the exact sequence of acceptable characters?


Answer

Correct Answer: pattern

Note: This Question is unanswered, help us to find answer for this one

272. The following are two XPath statements:

Statement A: trafficsign[1][@type="warning"]
Statement B: trafficsign[@type="warning"][1]


Answer

Correct Answer: Statement A selects the first trafficsign node if it has a type attribute with value warning and Statement B selects the first trafficsign node that has a type attribute with value warning.

Note: This Question is unanswered, help us to find answer for this one

273. What does the following XPath expression depict?

/book/chapter


Answer

Correct Answer: It displays all chapter elements within the book element.

Note: This Question is unanswered, help us to find answer for this one

274. Which of the following tags are deprecated in accordance with XHTML DTD?


Answer

Correct Answer: frameset

Note: This Question is unanswered, help us to find answer for this one

275. Which of the following is not a value of the xlink:type attribute?


Answer

Correct Answer: embed

Note: This Question is unanswered, help us to find answer for this one

276. What does the following DTD imply?

<!DOCTYPE booklist [
    <!ELEMENT booklist(book*)>
    <!ELEMENT book(summary?,title,acknowledgement+)>
    <!ELEMENT summary (#PCDATA)>
    <!ELEMENT title (#PCDATA)>
    <!ELEMENT attachment (#PCDATA)>
]>


Answer

Correct Answer: The summary element can occur zero or one times inside the book element.

Note: This Question is unanswered, help us to find answer for this one

277. Select the correct XML from the following options.


Answer

Correct Answer: employeeid/idname/namedepartment/department/employee

Note: This Question is unanswered, help us to find answer for this one

278. Which of the following XSD data types is supported by XForms?


Answer

Correct Answer: xsd:token

Note: This Question is unanswered, help us to find answer for this one

279. Which of the following is/are used in Xforms binding?


Answer

Correct Answer: All the of the above

Note: This Question is unanswered, help us to find answer for this one

280. Which of the following XHTML modules defines the elements used in tables?


Answer

Correct Answer: Tables Module

Note: This Question is unanswered, help us to find answer for this one

281. Which of the following statements is/are true regarding XForms?


Answer

Correct Answer: Both a and b are true.

Note: This Question is unanswered, help us to find answer for this one

282. Which of the following statements is/are true?

Statement (I): Using or following a link for any purpose is called Traversal.
Statement (II): Information about the Trasversal application behaviour is known as Locator.


Answer

Correct Answer: Statement (I) is true

Note: This Question is unanswered, help us to find answer for this one

283. Which of the following statements is not true with regard to XML?


Answer

Correct Answer: XML incorporates relational data structures.

Note: This Question is unanswered, help us to find answer for this one

284. State whether the following statement is True or False.

XForms can contain multiple forms in a single containing document.


Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

285. Which of the following is not built-in primitive types in the XML Schema?


Answer

Correct Answer: xs:integer

Note: This Question is unanswered, help us to find answer for this one

286. Which of the following are correct XML Namespace declarations?


Answer

Correct Answer: html xmlns='http://www.w3.org/1999/xhtml'

Note: This Question is unanswered, help us to find answer for this one

287. State whether the following statement is correct?
Inline schema is useful when it is inconvenient to physically separate
the schema and the instance.


Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

288. Which of the following statements is/are correct.

Statement (a): XML takes up more network bandwidth and storage space.
Statement (b): XML requires more processor time for compression.


Answer

Correct Answer: Both (a) and (b) are true

Note: This Question is unanswered, help us to find answer for this one

289. Which of the following namespaces is required for xml data types?


Answer

Correct Answer: urn:schemas-microsoft-com:datatypes

Note: This Question is unanswered, help us to find answer for this one

290. Ampersand sign "&" and less than "<" are allowed in

Answer

Correct Answer: Comment

Note: This Question is unanswered, help us to find answer for this one

291. What does the following XPath 2.0 select? //body//w[following-sibling::c]

Answer

Correct Answer: Any element w that is a descendant of any element body, of which the next sibling element is element c

Note: This Question is unanswered, help us to find answer for this one

292. Which of the following best describes the difference between a valid XML document and a well formed XML document?

Answer

Correct Answer: A valid XML document must adhere to the same basic constructs of an XML document as well as adhering to a schema.

Note: This Question is unanswered, help us to find answer for this one

293. If I have an element named 'students' and the XSD schema specifies minOccurs='0' but not maxOccurs for it, how will it be parsed?

Answer

Correct Answer: The student subelement will be optional and the maximum occurence of the student subelement will be one

Note: This Question is unanswered, help us to find answer for this one

294. Which of the following is NOT a built-in XML schema data type?

Answer

Correct Answer: xs:object

Note: This Question is unanswered, help us to find answer for this one

295. Which of the following is NOT a demonstrable benefit of using XML Schemas instead of DTDs?

Answer

Correct Answer: XML Schemas are easier to write.

Note: This Question is unanswered, help us to find answer for this one

296. Which of the following can you NOT control with a DTD?

Answer

Correct Answer: Length of attributes

Note: This Question is unanswered, help us to find answer for this one

297. In a DTD, what does "" most precisely mean?

Answer

Correct Answer: Element 'a' may contain anything, or nothing.

Note: This Question is unanswered, help us to find answer for this one

298. Which of the following is NOT a schema language?

Answer

Correct Answer: XLink

Note: This Question is unanswered, help us to find answer for this one

299. In an XML schema, to limit a user-defined type to a set of pre-defined options, you would use:

Answer

Correct Answer: An xs:enumeration inside an xs:restriction

Note: This Question is unanswered, help us to find answer for this one

300. True or False: You can refine an external XSD schema inside of an XML file, as you can with a DTD.

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

301. XML Namespaces provide a method to avoid element name conflicts. Which of the following is a correct way to declare namespaces in a valid XML document.