Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Core XML
1. A Markup Language is defined as a set of rules adding some meaning [0.5]
to the content and structure of documents.
a) True b) False
b) Semantic Markup
b) Semantic Markup
*4. ________ is a very powerful language and the mother of all markup [0.5]
languages.
a) GML c) SGML
b) CGML d) HTML
a) True b) False
a) True b) False
7. HTML linking is one to one and is hardcoded in the HTML file. This [0.5]
indicates that HTML has a robust linking mechanism which is an
advantage of using HTML.
a) True b) False
b) An application of SGML.
a) True b) False
10. In a 3-tier model identify the front-end, middle-tier and back-end [0.5]
b) WebServer, Browser,
Database Server
11. The __________ structure of XML is much more powerful than [0.5]
_________ data formats.
a) GSXML c) UXML
b) MSXML
13. The 'standalone' attribute can be set to [0.5]
a) Yes/No b) True/False
a) True b) False
16. Logical structure of data can be interpreted and used in many ways by [1.0]
various applications due to XML tags.
a) True b) False
a) Non-Validating b) Validating
a) Comments c) References
c) DTD's
*19. All processing instructions begin and end with [1.0]
20. Assume <BODY> is used as the root element in an XML document. [1.0]
This indicates that
a) a colon d) a period
c) a number
22. <xml> and <_Name> - Identify whether the following tags are valid or [1.0]
invalid
a) True b) False
24. Is the following code for commenting in XML valid? [1.0]
<!-- Comment1 <!-- Comment2 --> -->
a) Valid b) Invalid
a) True b) False
a) Strings c) Characters
b) Values
28. Which of these is not a correct name for an XML element? [1.0]
29. XML parsers support ___ bit and ___ bit Unicode encoding [1.5]
corresponding to ASCII.
a) 4 c) 12
b) 8 d) 16
*30. Which of the following statements is true? [1.5]
b) All XML documents must have d) All the above statements are
a DTD. true.
a) True b) False
33. Elements inside the root are termed as child elements. [1.5]
a) True b) False
a) True b) False
36. Attribute values must always be enclosed by double quotes. [1.5]
a) True b) False
a) Valid b) Invalid
<?xml version="1.0"?>
<to>Joe</to>
<from>John</from>
<heading>Reminder</heading>
<body>Dont forget me this weekend!</body>
a) Valid b) Invalid
40. XML provides a software and hardware independent way of sharing [2.0]
data.
a) True b) False
41. Identify if the following code is correct? [2.0]
a) Correct b) Incorrect
a) Line 1 c) Line 3
b) Line 2 d) Line 5
*43. Match the correct entity names with the respective characters [2.0]
a) & 1) <
b) > 2) '
c) " 3) >
d) < 4) "
e) ' 5) &
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) ':' c) '))'
b) ';' d) ']]'
*46. XML documents referencing the DTD will contain the __________ [0.5]
declaration which specifies the location of an external DTD.
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 [0.5]
character data.
a) True b) False
49. Child elements declared in a sequence need not appear in the [0.5]
document in the same sequence.
a) True b) False
a) True b) False
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
54. An attribute which does not have to included is indicated by the value: [0.5]
a) True b) False
56. Documents that follow the XML tag rules, but don't have a DTD are [0.5]
well-formed documents.
a) True b) False
a) True b) False
*58. Internal DTD and XML code are stored in a document with the file [1.0]
extension
a) .xml c) .xms
b) .dtd d) .css
a) True b) False
a) + c) ? *
b) * d) #
a) Yes b) No
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?'
65. The DOCTYPE statement represents the DTD which is termed as [1.0]
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 [1.0]
declared elements is:
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) Declaration c) Wrapping
b) Sequencing
75. For declaring a child element 'message' to occur zero or more times
inside the 'note' element, identify the correct syntax
*77. Identify the correct syntax: (One or more options are true) [1.5]
a) <!ATTLIST element-name c) <!ATTLIST element-name
attribute-name CDATA attribute-name attribute-
"default-value"> type #FIXED "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 [1.5]
also determines how to process them.
a) True b) False
a) True b) False
a) True b) False
85. Identify the correct statements: [2.0]
a) True b) False
*89. XSLT is used to convert documents written in one XML DTD, into [0.5]
another DTD.
a) True b) False
a) True b) False
a) True b) False
94. Inheritance of a style is a property in which a style rule for an element [0.5]
also applies to the element it contains.
a) True b) False
95. Identify the attribute applied to a property to give it precedence over [0.5]
other properties.
a) !priority c) !important
b) !urgent
a) True b) False
a) <absolute-size> b) <relative-size>
a) True b) False
99. The marging option can take a maximum of _________ values. [0.5]
a) 1 c) 4
b) 2 d) 6
b) One XML document can have d) XML does not support the
only one style sheet. creation of customized tags.
101. Assigning a style to a tag helps the user agent to interpret the data [1.0]
following specific rules.
a) True b) False
b) Multiple Selectors
103. In case of 3 style sheets containing a reference to the same element, [1.0]
then identify the style sheet used.
a) First c) Last
a) a string d) In-heritable
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 [1.0]
option will remove, or turn off all the borders
a) True b) False
107. Space between the border and its contents is done by using the [1.0]
________ property.
a) margins c) padding
b) border d)
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 [1.0]
borders.
a) True b) False
111. Identify the correct syntax used by the XML document for displaying a [1.5]
stylesheet.
b) <?xml-stylesheet d) <%xml-stylesheet
type='txt/css' type="txt/css"
href='abc.css'?> href="abc.css"%>
a) Colon c) Period
b) Semi-colon d) Comma
a) Colon c) Period
b) Semi-colon d) Comma
115. Match the following Absolute units & Relative units with their [1.5]
respective values
a)Ex 1)Inches
b)In 2)Pixel
c)Px 3)Pica
d)Em 4)Fonts height
e)Pc 5)Height of the letter 'x'
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
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 c) the first value is set as the
right and left margins. top and bottom margins.
119. To assign the same style rule to different elements, we apply the [1.5]
same number of declarations as the number of elements to several
selectors.
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 [2.0]
is:
a) <?xml-stylesheet c) <?xml:stylesheet
type="text/css" href="url"?> type="text/css" href="url"?>
b) <xml-stylesheet d) <?xml=stylesheet
type="text/css" href="url"> 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
a) normal c) bolder
b) smallcaps d) lighter
a) Yes b) No
a) Yes b) No
a) A{margin-left:10cm;} c) A{margin-left:10%;}
b) A{left-margin:10cm;} d) A{left-margin:10%;}
a) All,Perfect c) All:Perfect
a) True b) False
130. The formatting components of XSL are not supported by IE5. [0.5]
a) True b) False
a) XMLST c) XSLT
b) XLCST
132. Sorting, filtering, pattern matching are few of the things that XSL [0.5]
cannot be used for.
a) True b) False
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 [0.5]
descending order is:
a) '+' c) '-' *
b) '*' d) '#'
135. Select the correct attribute for sorting in an XSL document: [0.5]
a) index-by d) order by
c) sort-by
136. The processing part in a template in XSL defines the way the styling is [0.5]
to be applied to the child nodes.
a) True b) False
137. Normally for enclosing a generic term when defining code we use [0.5]
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]
b) DSO’s
140. Instructions that control how an element and its content should be [0.5]
converted in XSL style sheets, are called:
a) CSS c) DSO’s
b) <?xml-stylesheet d) </xml-stylesheet
type="text/xsl" href='url'?> type="text/xsl" href="url"/>
142. "/" in the beginning of the XSL declaration indicates that: [1.0]
a) comma c) Colon
b) semi-colon d) pipe-stem
144. We can create documents, which can switch styles without submitting [1.0]
the file back to the server.
a) True b) False
145. Styles can change without waiting for the page to be reloaded. [1.0]
a) True b) False
a) True b) False
147. XSL in Internet Explorer 5.0 is 100% compatible with the latest [1.0]
released W3C XSL standard.
a) True b) False
148. Identify the correct tag for indicating that a document is a style sheet [1.5]
file and provides a location for declaring the XSL namespace
a) <xsl:stylesheet c) <?xsl=stylesheet
xmlns:xsl="url"> xmlns=xsl:"url"?>
149. Identify the operator used to search across any number of levels of [1.5]
the hierarchy from the current context.
a) / c) .// .
b) // d) ./
150. Identify the operator used to search across any number of levels of [1.5]
the hierarchy from the root of the document.
a) / c) .//
. b) // d) ./ .
151. Identify the tag required to match the entire document. [1.5]
a) True b) False
154. Identify the statements which hold true for CSS: [1.5]
156. The process of turning the result of an XSL transformation into a [1.5]
suitable output form for a reader or listener is identified as:
a) Sorting c) Matching
b) Formatting
157. Match the following operators with their respective explanations: [2.0]
I)// i)Find all
II)./ ii)Search across any number of
levels of the hierarchy from the
current context
III)/ iii)refers to the attribute
IV)* iv)Use root node as the context
V).// v)Search across any number of
levels of the hierarchy from the
root of the document
VI)@ vi)Explicitly use the current context
VII)= vii)Equal to
a) I-v,II-vi,III-iv,IV-i,V-ii,VI-iii,VII- c) I-i,II-iii,III-ii,IV-vi,V-iv,VI-
vii 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 [2.0]
grandchildren of the root.
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>
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) DOM c) DTD
b) XSL
a) True b) False
165. Manipulating the XML document through DOM does not require any [0.5]
objects of the document to be created.
a) True b) False
167. The root nodes can make multiple appearances in the document. [0.5]
a) True b) False
b) a new node
a) True b) False
170. The property 'nextSibling' in DOMDocument Object contains the next [0.5]
node of the previous nodes in the parent's child list.
a) True b) False
171. The 'xml' property always returns a UNICODE string. [0.5]
a) True b) False
b) Write
a) True b) False
177. In a tree model wherein we take the example of a book in which the [1.0]
chapters and paragraphs correspond to an individual character in the
document. These are termed as:
a) nodes c) leaves
b) child-nodes
178. Considering a linear model applied to a book the only disadvantage [1.0]
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?
a) Valid c) Invalid
179. The model which is identified as a collection of objects used to access [1.0]
and manipulate data stored in an XML document is an:
b) Tree Model
180. In DOM, it is not necessary that an object for a valid node type will [1.0]
always be returned.
a) True b) False
181. A lot of properties and methods are repeated in each of the DOM [1.0]
objects as they inherit the XMLDOMNode object.
a) True b) False
182. Xml property of the XMLDOMNode object is a read only property. [1.0]
a) True b) False
a) True b) False
185. Though the tree model is a dynamic model if there arises any change [1.5]
in the document a major part of the tree requires to be redrawn,
a) True b) False
186. Identify the correct syntax for creating an XML document through DOM. [1.5]
c) contains information
associated with the document
type declaration.
193. In an object model the method that specifies where to place the [2.0]
different objects or elements and guides us in building our documents
is termed as:
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
a) objNode=oDocument.createNode c) objNode=oDocument.createNod
(type,name,namespaceURL) e
(Type,name,namespaceURI)
b) objNode=oDocument.CREATENode d) objNode=oDocument.createNode
(type,name,namespaceURL) (type;name;namespaceURI)
a) True b) False
a) True b) False
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
a) True c) False
a) True b) False
202. String is a data type supported by schema. The only disadvantage in a [0.5]
string data type is that it cannot have any combination of Unicode
characters.
a) True b) False
203. XML schema documents require the learning of cryptic languages like [0.5]
EBNF.
a) True b) False
204. ____________ allows the schema author to make this relationship [0.5]
explicit.
a) True b) False
206. Attribute type can be defined within the individual 'element'. [0.5]
a) True b) False
a) True b) False
210. The default value of the order attribute depends on the value of the [1.0]
content attribute.
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 [1.0]
within the Schema element.
a) True b) False
214. A document that does not fit within the model described by the [1.0]
associated schema is not well formed but is a valid document.
a) True b) False
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 [1.0]
element can occur equals:
a) 0 c) at least once
b) 1 d) Infinite
219. For minOccurs and maxOccurs attributes the default values of both [1.0]
the attributes is:
a) 0 c) 2
221. In an open content model elements other than the required elements [1.5]
cannot be present.
a) True b) False
223. 'attribute' declares that a previously defined attribute type can appear [1.5]
within the scope of the named ElementType element.
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
a) True b) False
227. We can use ___________, which are templates of elements from [1.5]
which we can derive other elements.
a) Datatype c) AttributeType
b) archetypes d) ElementType
b) MaxOccurs d) type
230. Identify the correct syntax used to reference XML schema data types: [2.0]
a) "urn=schemas-microsoft- c) "urn:schemas-
com:datatypes" microsoft.com-datatypes"
b) "urn=schemas-microsoft- d) "urn:schemas-microsoft-
com.datatypes" com:datatypes"
231. The principal XML Schema elements must have an ________ name [2.0]
attribute that is explicit within the schema.
a) Implicit c) Unique
b) explicit d) Common
232. The __________ and ________ attributes allow you to define the [2.0]
number of occurrences of an element or group.
a) minOccurs c) maxOccurs
b) ordermin d) Ordermax
233. Attribute 'xmlns' indicates: [2.0]
a) <ElementType c) <ElementType
name="timeslot" name="timeslot"
content="textOnly" content:"textOnly"
dt:type="time"/> dt=type:"time"/>
b) <ElementType d) <ElementType
name="timeslot" name=timeslot
content="textOnly" content=textOnly
dt.type="time"> dt:type=time />
235. The element 'Schema' is declared in DTD as having three child [2.0]
elements, which are:
a) archtype d) ElementType
b) AttributeType e) description
c) Datatype