xmlcomplete-235 qs
TRANSCRIPT
15 Question Bank Core XML
1. A Markup Language is defined as a set of rules adding some meaning to the content and structure of documents.
[0.5]
a) True b) False
2. Document Content is determined by [0.5]
a) Stylistic Markup c) Structural Markup
b) Semantic Markup
3. Document Structure is determined by [0.5]
a) Stylistic Markup c) Structural Markup
b) Semantic Markup
*4. ________ is a very powerful language and the mother of all markup languages.
[0.5]
a) GML c) SGML
b) CGML d) HTML
5. HTML provides the advantage of creating customized tags making it easier for the users to create their own tags.
[0.5]
a) True b) False
6. Data in HTML cannot be structured. [0.5]
a) True b) False
7. HTML linking is one to one and is hardcoded in the HTML file. This indicates that HTML has a robust linking mechanism which is an advantage of using HTML.
[0.5]
a) True b) False
8. XML is a Meta-Language.Select the option which best describes the statement given above.
[0.5]
a) A language in a language. c) Describes other languages.
b) An application of SGML.
9. XML data can be embedded in HTML. [0.5]
a) True b) False
10. In a 3-tier model identify the front-end, middle-tier and back-end [0.5]
a) Browser, Database Server, WebServer
c) Browser, WebServer, Database Server
b) WebServer, Browser, Database Server
11. The __________ structure of XML is much more powerful than _________ data formats.
[0.5]
a) tree-based, fixed-length b) tree-based, fixed-length
12. IE5 has an inbuilt XML Parser called [0.5]
a) GSXML c) UXML
b) MSXML
13. The 'standalone' attribute can be set to [0.5]
a) Yes/No b) True/False
*14. XML allows creation of multiple root elements [0.5]
a) True b) False
15. Primary requirements of an interoperable system were: [1.0]
a) Specific rules were created for the format of the document.
c) Common format should be specific to their domains.
b) The document processing programs should support different document formats.
d) The document processing programs should support a common document format.
16. Logical structure of data can be interpreted and used in many ways by various applications due to XML tags.
[1.0]
a) True b) False
*17. Using DTD, _________ parser checks for validity. [1.0]
a) Non-Validating b) Validating
18. Markup includes [1.0]
a) Comments c) References
b) Instructions d) All of the above
c) DTD's
*19. All processing instructions begin and end with [1.0]
a) <? ... ?> c) <? ... \>
b) <\ ... \> d) <\ ... ?>
20. Assume <BODY> is used as the root element in an XML document. This indicates that
[1.0]
a) Root element can be customized.
c) Root element describes the function of the document.
b) Root element is a pre-defined tag.
21. Tags can begin with [1.0]
a) a colon d) a period
b) an underscore e) All of the above
c) a number
22. <xml> and <_Name> - Identify whether the following tags are valid or invalid
[1.0]
a) Valid, Valid c) Invalid, Valid
b) Valid, Invalid d) Invalid, Invalid
23. Length of XML tag is dependent on the processor. [1.0]
a) True b) False
24. Is the following code for commenting in XML valid?<!-- Comment1 <!-- Comment2 --> -->
[1.0]
a) Valid b) Invalid
25. XML declaration is also a processing instruction. [1.0]
a) True b) False
26. Height="8" Weight="70">Here 8 and 70 when used outside XML Environment, they are taken as
[1.0]
a) Strings c) Characters
b) Values
*27. To describe data XML uses a _________ [1.0]
a) Document Type Definition c) Data Type Description
b) Data Type Definition d) Dynamic Type Definition
28. Which of these is not a correct name for an XML element? [1.0]
a) <first name> c) <age>
b) <NAME> d) All 3 names are incorrect.
29. XML parsers support ___ bit and ___ bit Unicode encoding corresponding to ASCII.
[1.5]
a) 4 c) 12
b) 8 d) 16
*30. Which of the following statements is true? [1.5]
a) All XML elements must be lower case.
c) All XML elements must have a closing tag.
b) All XML documents must have a DTD.
d) All the above statements are true.
*31. Syntax for an XML declaration is
a) </xml version="1.0"?> c) <?xml version="1.0"/>
b) <\xml version=:"1.0"?> d) <?xml version="1.0"?>
32. WML for handheld devices is written in XML. [1.5]
a) True b) False
33. Elements inside the root are termed as child elements. [1.5]
a) True b) False
*34. Which of the following statement/s are true? [1.5]
a) XML elements must be properly nested.
c) XML tags are case sensitive.
b) XML documents must have a root tag.
d) All the above statements are true.
*35. XML elements cannot be empty.
a) True b) False
36. Attribute values must always be enclosed by double quotes. [1.5]
a) True b) False
37. Difference between XML and HTML [2.0]
a)* XML was designed to describe data and focus on what data is.
c) XML was designed to display data and focus on how data looks.
b) HTML was designed to display data and focus on how data looks
d) HTML was designed to describe data and focus on what data is.
38. Identify if the following XML document code is valid.<?xml version="1.0"?>
<note><to>Joe</to><from>John</from><heading>Reminder</heading><body>Dont forget me this weekend!</body></note>
[2.0]
a) Valid b) Invalid
39. Identify if the following XML document code is valid.
<?xml version="1.0"?><to>Joe</to><from>John</from><heading>Reminder</heading><body>Dont forget me this weekend!</body>
[2.0]
a) Valid b) Invalid
40. XML provides a software and hardware independent way of sharing data.
[2.0]
a) True b) False
41. Identify if the following code is correct? <b><i>This text is bold and italic</b></i>
[2.0]
a) Correct b) Incorrect
*42. Identify the line/s containing an error1)<?xml version="1.0"?>2)<note date=12/11/99>3)<to>Ravi</to>4)<from>Amit</from>5)<heading>Reminder</heading>6)<body>Make good food please</body>7)</note>
[2.0]
a) Line 1 c) Line 3
b) Line 2 d) Line 5
*43. Match the correct entity names with the respective charactersa) & 1) <b) > 2) 'c) " 3) >d) < 4) "e) ' 5) &
[2.0]
a) a-4 ,b-3 ,c-2 ,d-5 ,e-1 c) a-3 ,b-2 ,c-1 ,d-4 ,e-5
b) a-5 ,b-3 ,c-4 ,d-1 ,e-2 d) a-1 ,b-2 ,c-5 ,d-4 ,e-3
44. CDATA is text that will be parsed by parser. Identify whether the statement is valid.
a) Valid b) Not Valid
45. End of a CDATA block is characterized by the character string [2.0]
a) ':' c) '))'
b) ';' d) ']]'
*46. XML documents referencing the DTD will contain the __________ declaration which specifies the location of an external DTD.
[0.5]
a) <!ENTITYTYPE> c) <!DOCTYPE>
b) <!FILETYPE> d) <!ENTITY>
*47. External DTD is referenced at the beginning of the XML file. [0.5]
a) True b) False
48. ANY indicates that an element can contain only one child element of character data.
[0.5]
a) True b) False
49. Child elements declared in a sequence need not appear in the document in the same sequence.
[0.5]
a) True b) False
50. <!ELEMENT do(message+)>The "+" sign indicates that the child element 'message' must occur at least once inside the do element.
[0.5]
a) True b) False
51. An attribute is another name for stating property of an element. [0.5]
a) True b) False
*52. In DTD, XML element attributes are declared with a/an _________ [0.5]
declaration.
a) ENTITY c) ELEMENT
b) ATTLIST d) DOCTYPE
53. 'NMTOKENS' [0.5]
a) The value is a list of other ids c) The value is a list of valid XML names.
b) The value is a list of other entities.
d) The value is the name of a notation.
54. An attribute which does not have to included is indicated by the value: [0.5]
a) #DEFAULT value c) #IMPLIED
b) #REQUIRED d) #FIXED value
55. The width attribute has a default value of 1. [0.5]
a) True b) False
56. Documents that follow the XML tag rules, but don't have a DTD are well-formed documents.
[0.5]
a) True b) False
57. URL includes URI and URN. [0.5]
a) True b) False
*58. Internal DTD and XML code are stored in a document with the file extension
[1.0]
a) .xml c) .xms
b) .dtd d) .css
59. Verify the snippet given below:<?xml version="1.0" ?><img src=bullet_d.gif></img
[1.0]
a) True b) False
60. <!ELEMENT element-name (child-name )>Identify the sign to be placed in the syntax above so that it declares that the child namecan occur zero or one time inside the element.
[1.0]
a) + c) ? *
b) * d) #
61. Consider a DTD example:<!ATTLIST study type (theory|practical) theory>Is the following statement syntactically correct?
[1.0]
a) Yes b) No
62. The use of namespace in a document can be recognized using a ______ in the tag name.
[1.0]
a) semi-colon d) period
b) colon e) hash
c) comma
63. For elements in the XSL namespace, XSL uses the prefix [1.0]
a) 'xsl:' c) 'xsl;'
b) 'xsl.' d) 'xsl?'
64. Identify the correct statements [1.0]
a) DTD is defined in an XML markup language.
c) Documents need not conform to the specified structure of the DTD.
b) DTD does not have its own syntax.
d) None of the above.
65. The DOCTYPE statement represents the DTD which is termed as [1.0]
a) Data Type Declaration c) Document Type Declaration
b) Data Type Definition d) Document Type Definition
66. <!-- WELCOME.xml --> <?xml version = "1.0"?> <!DOCTYPE WELCOME SYSTEM "hello.dtd"> The following code indicates that the DTD is:
[1.0]
a) An internal DTD c) None of the above
b) An external DTD
67. DTD helps define the legal building blocks of an XML document. [1.0]
a) True b) False
68. The keyword termed as the shorthand for mixed content containing all declared elements is:
[1.0]
a) #CDATA c) ANY
b) #PCDATA
69. URI may contain characters that are illegal in XML names. [1.0]
a) True b) False
*70. Syntax for declaring an external DTD to an XML document is: [1.5]
a) <!DOCTYPE N1 TARGET "show.dtd">
c) <!DOCTYPE N1 SYSTEM "show.dtd">
b) (?DOCTYPE N1 SYSTEM "show.dtd"?)
d) <!DOCTYPE N1 SOURCE "show.dtd"?>
71. Writing an Internal DTD inside a DOCTYPE is known as: [1.5]
a) Declaration c) Wrapping
b) Sequencing
72. Syntax for element declaration is [1.5]
a) <!ELEMENT element-content (element-name type)>
c) <?ELEMENT element-content (element-name type)?>
b) <!ELEMENT element-name (element-content type)>
d) <!--ELEMENT element-content (element-name type)-->
73. Identify the correct statements [1.5]
a) #CDATA means that the element contains data that is
c) #PCDATA means that the element contains data that
to be parsed by a parser. is to be parsed by a parser.
b) #PCDATA means that the element contains character data that is not to be parsed by a parser.
d) #CDATA means that the element contains character data that is not to be parsed by a parser.
74. Identify the correct syntax [1.5]
a) <!ELEMENT element-name (child-element-name),(child-element-name),....>
c) <!ELEMENT element-name (child-element-name,child-element-name,....>
b) <!ELEMENT element-name (child-element-name);(child-element-name);....>
d) <!ELEMENT element-name (child-element-name;child-element-name;....>
75. For declaring a child element 'message' to occur zero or more times inside the 'note' element, identify the correct syntax
a) <!ELEMENT element-name (child-name+)>
c) <!ELEMENT element-name (child-name*)>
b) <!ELEMENT element-name (child-name?)>
d) <!ELEMENT element-name (child-name+)>
76. <!ELEMENT A((B,C)|D|E)>Identify what the statement indicates
[1.5]
a) Element A consists of B or C and D and E.
c) Element A consists of B and C followed by D and then by E.
b) Element A consists D or E or B followed by C.
d) None of the above
*77. Identify the correct syntax: (One or more options are true) [1.5]
a) <!ATTLIST element-name c) <!ATTLIST element-name
attribute-name CDATA "default-value">
attribute-name attribute-type #FIXED "value">
b) <!ATTLIST element-name attribute-name attribute-type #IMPLIED>
d) <!ATTLIST element-name attribute-name attribute-type #REQUIRED "value">
78. In the attribute-type the value which is pre-defined is indicated by: [1.5]
a) IDREF c) ENTITY
b) Async d) xml;
79. Namespaces ensure that there is no conflict within element names and also determines how to process them.
[1.5]
a) True b) False
80. <?xml version="1.0" ?><!DOCTYPE APTECH[<!ELEMENT APTECH (CLASS1|CLASS2)+><!ELEMENT CLASS1 (#PCDATA)><!ATTLIST CLASS1
count CDATA #REQUIRED><!ELEMENT CLASS2 (#PCDATA)><!ATTLIST CLASS2
count CDATA #REQUIRED>]><TRIAL>ELECTRONIC GOODS
<CLASS1 count="8">10students</CLASS1><CLASS2 count="10">20students</CLASS2>
</TRIAL>The following code will execute without displaying any errors?
[2.0]
a) True b) False
81. <!ELEMENT trial (targets+, source,title+,message*,#PCDATA)> The above example declares that the element trial must contain:
[2.0]
a) exactly one 'target', at least c) at least one 'target', exactly
one 'source', exactly one 'title', zero or one 'message', and some other parsed character data.
one 'source', at least one 'title', zero or one 'message', and some other parsed character data.
b) exactly one 'target', at least one 'source', exactly one 'title', not less than one 'message', and some other parsed character data.
82. <?xml version="1.0"?><script><![CDATA[function matchwo(a,b){if (a < b && a < 0) then { return 1 }}]]></script>The above code:
a) Generates an error b) Executes without any error
83. (eval|eval|___) the following value indicates that [2.0]
a) The value is a character data. c) The value is the name of a notation.
b) The value is a list of entities. d) None of the above.
84. <!ELEMENT Circle EMPTY> <!ATTLIST Circle radius CDATA "20"> The following code indicates that the circle is defined as an empty element,with the radius attribute having a default value of 20 and type CDATA.
a) True b) False
85. Identify the correct statements: [2.0]
a) The DTD contains the list of tags allowed within the XML documents and their type and attributes.
c) Namespaces allow us to be able to identify, which elements or attributes come from which source and also to access further materials such as a DTD or other description of the elements and attributes.
b) A DTD comes in the form of a simple file text file, which can be stored in a separate file or embedded within the XML file.
86. Prefix is: [2.0]
a) a namespace c) An alias selected by a document author
b) An alias selected by the document user
d) Both a and b
87. Identify the correct statements: [2.0]
a) Tags from multiple namespaces can be mixed.
c) XSL uses the prefix ‘xsl:’ for elements in the XSL namespace
b) With namespaces, 2 elements can exist in the same xml-based document instance and also refer to the same schema
88. XML vocabulary is used for specifying formatting semantics. [0.5]
a) True b) False
*89. XSLT is used to convert documents written in one XML DTD, into another DTD.
[0.5]
a) True b) False
*90. XML documents can be formatted using text editors. [0.5]
a) True b) False
91. In order to format an XML document we combine it with a [0.5]
a) Text editor b) Style sheet
92. Identify the correct statements [0.5]
a) CSS is an extension of HTML
c) XSL is an extension of HTML.
b) CSS is an extension of XML. d) XSL is an extension of XML
93. It is possible to have a property with multiple values [0.5]
a) True b) False
94. Inheritance of a style is a property in which a style rule for an element also applies to the element it contains.
[0.5]
a) True b) False
95. Identify the attribute applied to a property to give it precedence over other properties.
[0.5]
a) !priority c) !important
b) !urgent
96. The 'type' attribute in the <?xml-stylesheet?> processing instruction is the MIME type of style sheet.
[0.5]
a) True b) False
97. The font-size option 'larger' is used for [0.5]
a) <absolute-size> b) <relative-size>
98. 'small-caps' is a value supported by font-style. [0.5]
a) True b) False
99. The marging option can take a maximum of _________ values. [0.5]
a) 1 c) 4
b) 2 d) 6
100. Identify the correct statements: [1.0]
a) XML documents can be sent from one system to another system without modifying the content.
c) XML documents, which are not displayed to the users, do not require stylesheets.
b) One XML document can have only one style sheet.
d) XML does not support the creation of customized tags.
101. Assigning a style to a tag helps the user agent to interpret the data following specific rules.
[1.0]
a) True b) False
102. Selectors helping us to differentiate between different occurrences of a tag are termed as
[1.0]
a) Simple selectors c) Contextual Selectors
b) Multiple Selectors
103. In case of 3 style sheets containing a reference to the same element, then identify the style sheet used.
[1.0]
a) First c) Last
b) Second d) It will result in an error
104. IN CSS styling property value may be [1.0]
a) a string d) In-heritable
b) a number with a unit e) All of the above
c) non-inheritable
*105. Identify the valid font properties and font related options are: [1.0]
a) font-color c) font-width
b) font-family d) font-variant
106. Even if all the border options are set using 'solid' as the border style option will remove, or turn off all the borders
[1.0]
a) True b) False
107. Space between the border and its contents is done by using the ________ property.
[1.0]
a) margins c) padding
b) border d)
108. Boxes can be overlapped using the z-index property. [1.0]
a) True b) False
109. The CSS Layout can control layout of the box on the screen. [1.0]
a) True b) False
110. The 'border' is used to set the width, color and style of the two borders.
[1.0]
a) True b) False
111. Identify the correct syntax used by the XML document for displaying a stylesheet.
[1.5]
a) <xml-stylesheet type="txt/css" href="abc.css">
c) <?xml-stylesheet type="txt/css" href="abc.css"?>
b) <?xml-stylesheet type='txt/css' href='abc.css'?>
d) <%xml-stylesheet type="txt/css" href="abc.css"%>
112. Consider and xml document<?xml version="1.0"?><?xml-stylesheet type="text/css" href=xsampdoc.css ?><xsampdoc>
<greeting>All The Best!</greeting></xsampdoc>
[1.5]
The code for the style sheet xsampdoc is given as: greeting{
display:block;font-family:Arial,Helvetica, sans-serif;font-size:32pt;width:30em;color:red;
}What will be the output of the above code?
a) All The Best! will be displayed in red with the specified size as the output.
c) The xml document will be displayed in the tree format
b) An error will be generated due to the absence of quotes in the 2nd line of the xml document
113. In CSS, identification of a selector context is done by using a: [1.5]
a) Colon c) Period
b) Semi-colon d) Comma
114. In CSS, separation of multiple value combinations is by using a: [1.5]
a) Colon c) Period
b) Semi-colon d) Comma
115. Match the following Absolute units & Relative units with their respective values
a)Ex 1)Inchesb)In 2)Pixel c)Px 3)Picad)Em 4)Fonts heighte)Pc 5)Height of the letter 'x'
[1.5]
a) a-5,b-1,c-2,d-4,e-3 c) a-1,b-3,c-2,d-5,e-4
b) a-4,b-3,c-5,d-1,e-2 d) a-5,b-1,c-2,d-3,e-4
116. Selectors allowing us to differentiate between different occurrences of <extension> are termed as
[1.5]
a) Simple selectors. c) Contextual selectors
b) Multiple selectors
117. Each box has a border that separates it from the edge of the canvas [1.5]
a) True b) False
118. When two values are specified for the margin then [1.5]
a) the first value is set as the right and left margins.
c) the first value is set as the top and bottom margins.
b) the first value is set as the top and bottom margins.
d) the second value is set as the top and bottom margins.
119. To assign the same style rule to different elements, we apply the same number of declarations as the number of elements to several selectors.
[1.5]
a) True b) False
120. The value of the CSS styling property can be a color value. [1.5]
a) True b) False
*121. Syntax for referencing a cascading style sheet in an XML document is:
[2.0]
a) <?xml-stylesheet type="text/css" href="url"?>
c) <?xml:stylesheet type="text/css" href="url"?>
b) <xml-stylesheet type="text/css" href="url">
d) <?xml=stylesheet type="text/css" href="url"?>
122. CSS understands _____ number of colours defined by their names: [2.0]
a) 8 c) 14
b) 12 d) 16
123. Values used in font-weight are [2.0]
a) normal c) bolder
b) smallcaps d) lighter
124. S{margin-right:-3cm;}Is the above statement valid?
[2.0]
a) Yes b) No
125. H1{font-size xx-large}Is the above statement syntactically correct to make the heading font extra large?
[2.0]
a) Yes b) No
*126. Select the flawless tags used to create a margin : [2.0]
a) A{margin-left:10cm;} c) A{margin-left:10%;}
b) A{left-margin:10cm;} d) A{left-margin:10%;}
127. In order to indicate to an application processing the style sheet to look for <All> tags followed by<Perfect> tags the syntax is:
a) All,Perfect c) All:Perfect
b) All.Perfect d) None of the above
128. Differentiating between the different occurrences of a tag is by: [2.0]
a) Simple Selectors c) Contextual Selectors
b) Multiple Selectors d) None of the above
129. The logical structure of XML can be manipulated by XSL. [0.5]
a) True b) False
130. The formatting components of XSL are not supported by IE5. [0.5]
a) True b) False
131. XSL provides a transformation language called: [0.5]
a) XMLST c) XSLT
b) XLCST
132. Sorting, filtering, pattern matching are few of the things that XSL cannot be used for.
[0.5]
a) True b) False
133. XSL does not provide support for: [0.5]
a) Sorting c) Operators
b) Filtering d) It provides support for all the options stated.
134. In XSL the sign that indicates that sorting takes place in the descending order is:
[0.5]
a) '+' c) '-' *
b) '*' d) '#'
135. Select the correct attribute for sorting in an XSL document: [0.5]
a) index-by d) order by
b) order-by e) arrange all
c) sort-by
136. The processing part in a template in XSL defines the way the styling is to be applied to the child nodes.
[0.5]
a) True b) False
137. Normally for enclosing a generic term when defining code we use [0.5]
a) round brackets c) square brackets
b) curly brackets
138. A Data Island is a way to hold XML code within an HTML page. [0.5]
a) True b) False
139. Data Islands are also referred to as: [0.5]
a) DTD’s c) Data Packets
b) DSO’s
140. Instructions that control how an element and its content should be converted in XSL style sheets, are called:
[0.5]
a) CSS c) DSO’s
b) Data Islands d) templates
*141. Identify the correct syntax [1.0]
a) <*xml-stylesheet type="text/xsl" href="url" *>
c) <?xml-stylesheet type "text/xsl" href 'url'?>
b) <?xml-stylesheet type="text/xsl" href='url'?>
d) </xml-stylesheet type="text/xsl" href="url"/>
142. "/" in the beginning of the XSL declaration indicates that: [1.0]
a) this line is not to be considered during execution.
c) this node applies to the root level node of XML document
b) this node applies to the root level node of XSL document.
143. In XSL the different source elements are separated by a: [1.0]
a) comma c) Colon
b) semi-colon d) pipe-stem
144. We can create documents, which can switch styles without submitting the file back to the server.
[1.0]
a) True b) False
145. Styles can change without waiting for the page to be reloaded. [1.0]
a) True b) False
146. XSLT permits the creation of CSS.
a) True b) False
147. XSL in Internet Explorer 5.0 is 100% compatible with the latest released W3C XSL standard.
[1.0]
a) True b) False
148. Identify the correct tag for indicating that a document is a style sheet file and provides a location for declaring the XSL namespace
[1.5]
a) <xsl:stylesheet xmlns:xsl="url">
c) <?xsl=stylesheet xmlns=xsl:"url"?>
b) <?xsl:stylesheet xmlns xsl="url"?>
d) <xsl=stylesheet xmlns:xsl="url">
149. Identify the operator used to search across any number of levels of the hierarchy from the current context.
[1.5]
a) / c) .// .
b) // d) ./
150. Identify the operator used to search across any number of levels of the hierarchy from the root of the document.
[1.5]
a) / c) .//
. b) // d) ./ .
151. Identify the tag required to match the entire document. [1.5]
a) <xsl:template= "*"> c) <xsl:template match= "/ |">
b) <xsl:template match= "/">
152. Identify the correct statements related to XSLT [1.5]
a) It lets one map a pattern in the source document with the output in XML.
c) It is a template-based language.
b) It prevents the transformation of the structure of an XML document into a different XML document.
d) None of the above.
153. XSLT and CSS are compatible standards. [1.5]
a) True b) False
154. Identify the statements which hold true for CSS: [1.5]
a) It permits reuse of document data.
c) It calculates quantities or stores values in variables.
b) It supports decision structures. d) None of the above
155. Syntax for a typical template element is: [1.5]
a) <xsl:template match = "myElement">
c) <?xsl:template match = myElement?>
b) <?xsl:template match = "myElement"?>
d) <xsl=template match = 'myElement'>
156. The process of turning the result of an XSL transformation into a suitable output form for a reader or listener is identified as:
[1.5]
a) Sorting c) Matching
b) Formatting
157. Match the following operators with their respective explanations:I)// i)Find allII)./ ii)Search across any number of
levels of the hierarchy from the current context
III)/ iii)refers to the attributeIV)* iv)Use root node as the contextV).// v)Search across any number of
levels of the hierarchy from the root of the document
VI)@ vi)Explicitly use the current contextVII)= vii)Equal to
[2.0]
a) I-v,II-vi,III-iv,IV-i,V-ii,VI-iii,VII-vii
c) I-i,II-iii,III-ii,IV-vi,V-iv,VI-vii,VII-v
b) I-ii,II-i,III-iv,IV-vi,V-iii,VI-vii,VII-v d) I-iii,II-vi,III-i,IV-iv,V-ii,VI-vii,VII-v
158. "*/*" this syntax used in XSL will search all the elements that are the grandchildren of the root.
[2.0]
a) True b) False
159. Identify the elements, operators in XSL can be used with: [2.0]
a) <xsl:template> c) <xsl-order-by>
b) <xsl:for-each> d) <xsl-for-any>
160. Identify the correct statements [2.0]
a) XSLT is a language to transform XML
c) XSL Formatting Objects is a language to define XML display
b) XPath is a language to define XML parts or patterns
161. XSL uses XSLT to transform an XML ____________ into an XML _______________.
[2.0]
a) source tree c) template
b) target tree d) result tree
162. Treating a document as an object, extracting information, making changes and querying the document through code is termed as:
[0.5]
a) DOM c) DTD
b) XSL
163. If an application supports DOM it is irrelevant whether the program is written in VB or C.
[0.5]
a) True b) False
164. The available document models of DOM are: [0.5]
a) Component Model c) Object Model
b) Tree Model d) Linear Model
165. Manipulating the XML document through DOM does not require any objects of the document to be created.
[0.5]
a) True b) False
166. 'parseError' is identified as a method due to which if an error is detected:
[0.5]
a) the document is loaded but the text is not displayed
b) the document is not loaded
167. The root nodes can make multiple appearances in the document. [0.5]
a) True b) False
168. The 'appendChild()' method of the DOMDocument Object adds: [0.5]
a) a new Child Element c) a new sub node
b) a new node
169. The 'readyState' property in the DOMDocument Object defines several states that specify the current status of the asynchronous download.
[0.5]
a) True b) False
170. The property 'nextSibling' in DOMDocument Object contains the next node of the previous nodes in the parent's child list.
[0.5]
a) True b) False
171. The 'xml' property always returns a UNICODE string. [0.5]
a) True b) False
172. 'XMLDOMNodeList' property is: [0.5]
a) Read only c) Read/Write
b) Write
173. The 'nextNode' method in the XMLDOMNodeLis Object returns a NULL value if there is no next node.
[0.5]
a) True b) False
174. Identify the valid statements [1.0]
a) XML documents can be accessed and manipulated using DOM.
c) Even if an application does not support DOM, it does not matter and the program can be written in VB, C or Java.
b) DOM intends to provide programmers with an object model that will allow programs and scripts to access and update the content of documents in a standard way.
175. A model applied to dynamic documents is known as: [1.0]
a) Tree Model c) Object Model
b) Linear Model d) Component Model
176. A model applied to static document objects is: [1.0]
a) Tree Model c) Object Model
b) Linear Model d) Component Model
177. In a tree model wherein we take the example of a book in which the chapters and paragraphs correspond to an individual character in the document. These are termed as:
[1.0]
a) nodes c) leaves
b) child-nodes
178. Considering a linear model applied to a book the only disadvantage that occurs is that if the book is revised and the page number and line number of the topic changes the model fails to work.Is the statement a valid statement?
[1.0]
a) Valid c) Invalid
179. The model which is identified as a collection of objects used to access and manipulate data stored in an XML document is an:
[1.0]
a) Object Model c) Linear Model
b) Tree Model
180. In DOM, it is not necessary that an object for a valid node type will always be returned.
[1.0]
a) True b) False
181. A lot of properties and methods are repeated in each of the DOM objects as they inherit the XMLDOMNode object.
[1.0]
a) True b) False
182. Xml property of the XMLDOMNode object is a read only property. [1.0]
a) True b) False
183. XTLRuntime,XMLDOMNotation are exceptions that do not inherit methods and properties from the XMLDOMNode object.
[1.0]
a) True b) False
184. Identify the statements which correctly relate to XMLDOMNamedNodeMap Object:
[1.0]
a) These objects can be accessed by an index.
c) Any change within a node is not reflected in the collection.
b) It is used to iterate through the attributes for a specific element.
185. Though the tree model is a dynamic model if there arises any change in the document a major part of the tree requires to be redrawn,
[1.5]
a) True b) False
186. Identify the correct syntax for creating an XML document through DOM. [1.5]
a) Create xmlDoc = SetObject ("Microsoft.XMLDOM")
c) Set xmlDoc : CreateObject("Microsoft.XMLDOM")
b) Create xmlDoc : SetObject ("Microsoft.XMLDOM")
d) Set xmlDoc = CreateObject("Microsoft.XMLDOM")
187. 'XMLDOMNode' is an XML DOM Object that: [1.5]
a) represents top node of XMLDOM tree.
c) represents an attribute object.
b) represents the base interface for accessing data in the XML Object model.
d) represents a parsed or unparsed entity.
188. 'XMLDOMNamedNodeMap' is an XML DOM Object that: [1.5]
a) provides iteration and access by name to the collection of attributes.
c) contains information associated with the document type declaration.
b) supports iteration and indexed operations on the live collection of XMLDOMNode Objects.
d) represents a parsed or unparsed entity.
189. 'XMLDOMEntity' is an XML DOM Object that: [1.5]
a) provides iteration and access by name to the collection of attributes.
c) provides iteration and access by name to the collection of attributes.
b) Supports iteration and indexed operations on the live collection of XMLDOMNode Objects.
d) None of the options given
c) contains information associated with the document type declaration.
190. 'XMLDOMCDATASection' is an XML DOM Object that: [1.5]
a) Provides iteration and access by name to the collection of attributes.
c) quotes or escapes blocks of text so that text is not interpreted as markup language.
b) Supports iteration and indexed operations on the live collection of XMLDOMNode Objects.
d) represents a parsed or unparsed entity.
191. 'childNodes' is a property of the DOMDocument Object: (Select the [1.5]
correct statements)
a) Contains the list of attributes for this node.
c) Read-only.
b) Contains a node list containing the children.
d) Contains the root element of the document.
192. Identify the correct statements related to 'createNode method': [1.5]
a) When a node is created, it is created in context of the namespace mentioned.
c) When namespaceURI is the empty string, the node is created within the namespace of the previous document.
b) For node types not having names,null is passed as the name parameter.
d) When namespaceURI is the empty string, the node is created within the namespace of the previous document.
193. In an object model the method that specifies where to place the different objects or elements and guides us in building our documents is termed as:
[2.0]
a) Guideline Method c) Factory Method
b) Element Method d) Referencing Method
194. Match the following:1) XMLDOMProcessingInstruction i)Provides iteration and indexed access operations on the live collection of XMLDOMNode objects.2) XMLDOMParseError ii) Contains information associated with the document type declaration.3) XMLDOMNamedNodeMap iii) Supports iteration and indexed access operations on the live collection of XMLDOMNode objects.
[2.0]
4) XMLDOMCDATASection iv) Represents a processing instruction5) XMLDOMDocument Type v) Quotes or escapes blocks of text.
a) 1-iv,2-iii,3-i,4-ii,5-v d) 1-iii,2-iv,3-ii,4-v,5-i
b) 1-v,2-iv,3-vi,4-ii,5-iii e) 1-iv,2-v,3-i,4-vi,5-ii
c) 1-i,2-iv,3-ii,4-vi,5-v
195. Syntax for createNode Method is: [2.0]
a) objNode=oDocument.createNode(type,name,namespaceURL)
c) objNode=oDocument.createNode(Type,name,namespaceURI)
b) objNode=oDocument.CREATENode(type,name,namespaceURL)
d) objNode=oDocument.createNode(type;name;namespaceURI)
196. An XML Schema allows you to specify an element as an integer, a float, a Boolean, a URL, etc.
[0.5]
a) True b) False
197. XML inherited the concepts of DTDs from SGML. [0.5]
a) True b) False
198. Universal resource identifier represents a directory structure. [0.5]
a) True b) False
199. The 'attribute' element declares a/an __________ for an element type. [0.5]
a) group c) order
b) type d) attribute
200. XML Schema supports richer data types. [0.5]
a) True c) False
201. Element inheritance uses an object-oriented approach to support relationships between elements.
[0.5]
a) True b) False
202. String is a data type supported by schema. The only disadvantage in a string data type is that it cannot have any combination of Unicode characters.
[0.5]
a) True b) False
203. XML schema documents require the learning of cryptic languages like EBNF.
[0.5]
a) True b) False
204. ____________ allows the schema author to make this relationship explicit.
[0.5]
a) Richer data types c) Attribute grouping
b) Archetypes d) Refinable archtypes
205. Default value for model attribute is 'closed'. [0.5]
a) True b) False
206. Attribute type can be defined within the individual 'element'. [0.5]
a) True b) False
207. 'eltOnly' indicates: [0.5]
a) there is no content in the element type.
c) the element type can contain only child elements.
b) the element type can contain only text.
d) the element type can contain only the declared child elements.
208. Select the valid statements [1.0]
a) DTDs are written in an XML syntax
c) DTDs have no support for namespaces
b) DTDs are not extensible d) DTDs offer limited datatyping
209. The data type date time is written as a String [1.0]
a) True b) False
210. The default value of the order attribute depends on the value of the content attribute.
[1.0]
a) True b) False
211. When the content is set to "eltOnly," the order defaults to: [1.0]
a) One c) Many
b) Seq
212. To use the data type namespace in a schema, it must be declared within the Schema element.
[1.0]
a) True b) False
213. The 'description' element is a: [1.0]
a) attribute element c) group element
b) text-only element d) AttributeType element
214. A document that does not fit within the model described by the associated schema is not well formed but is a valid document.
[1.0]
a) True b) False
215. 'Datatype Validity' (Identify the correct statements) [1.0]
a) refers to the ability to test whether specific units of information are of the correct type.
c) tests whether the order of tags is correct.
b) refers to the ability to test whether specific units of information fall within the specified
d) tests whether the nesting of tags is correct.
216. If value of minOccur=0 and value of maxOccur=* then number of times an element can occur equals:
[1.0]
a) 0 c) at least once
b) 1 d) Infinite
217. XML Schema is itself, implemented as an XML vocabulary. [1.0]
a) True b) False
218. If value minOccur=1 and value maxOccur=* then number of times an element can occur equals:
[1.0]
a) 0 c) at least once
b) 1 d) Infinite
219. For minOccurs and maxOccurs attributes the default values of both the attributes is:
[1.0]
a) 0 c) 2
b) 1 d) None of the options given
220. In XML Schema the Archetype: [1.5]
a) expresses the datatype of attributes in terms of explicit enumerations and a few coarse string formats.
c) allows us to define our own named datatype from pre-existing data types.
b) allows us to define booleans, numbers,dates and times.
d) allows us to apply to all elements or several attributes that include graphic or table elements.
221. In an open content model elements other than the required elements cannot be present.
[1.5]
a) True b) False
222. Identify the valid statements: [1.5]
a) XML Schema vocabulary is like creating any other XML document using a
c) Microsoft provides a DTD for XML Schema, which is used to validate schema
specialized vocabulary. documents.
b) Microsoft provides an XML Schema for the DTDs, which is used to validate DTD documents.
223. 'attribute' declares that a previously defined attribute type can appear within the scope of the named ElementType element.
[1.5]
a) True b) False
224. The __________ attribute can then be used to reference data types. [1.5]
a) dt:datatype c) dt:type
b) type:dt d) type:datatype
225. In XML, schema files are a must. [1.5]
a) True b) False
226. According to W3C, a schema is : [1.5]
a) a set of rules to constrain the structure
c) both a and b
b) a set of rules to articulate the information set of XML documents.
d) both a and b
227. We can use ___________, which are templates of elements from which we can derive other elements.
[1.5]
a) Datatype c) AttributeType
b) archetypes d) ElementType
228. The element 'element' includes the attributes: [1.5]
a) MinOccurs c) order description
b) MaxOccurs d) type
229. Parameter entities: [1.5]
a) establishes a relationship between elements that share similar properties.
b) Do not establish a relationship between elements that share similar properties.
230. Identify the correct syntax used to reference XML schema data types: [2.0]
a) "urn=schemas-microsoft-com:datatypes"
c) "urn:schemas-microsoft.com-datatypes"
b) "urn=schemas-microsoft-com.datatypes"
d) "urn:schemas-microsoft-com:datatypes"
231. The principal XML Schema elements must have an ________ name attribute that is explicit within the schema.
[2.0]
a) Implicit c) Unique
b) explicit d) Common
232. The __________ and ________ attributes allow you to define the number of occurrences of an element or group.
[2.0]
a) minOccurs c) maxOccurs
b) ordermin d) Ordermax
233. Attribute 'xmlns' indicates: [2.0]
a) One namespace for use with the schema.
c) One or more namespaces for use with the schema
b) Always more than one namespaces for use with the schema.
234. Identify the correct syntax: [2.0]
a) <ElementType name="timeslot" content="textOnly" dt:type="time"/>
c) <ElementType name="timeslot" content:"textOnly" dt=type:"time"/>
b) <ElementType name="timeslot" content="textOnly" dt.type="time">
d) <ElementType name=timeslot content=textOnly dt:type=time />
235. The element 'Schema' is declared in DTD as having three child elements, which are:
[2.0]
a) archtype d) ElementType
b) AttributeType e) description
c) Datatype