Sei sulla pagina 1di 47

15 Question Bank

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

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 [0.5]
languages.

a) GML c) SGML

b) CGML d) HTML

5. HTML provides the advantage of creating customized tags making it [0.5]


easier for the users to create their own tags.

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 [0.5]
indicates that HTML has a robust linking mechanism which is an
advantage of using HTML.

a) True b) False

8. XML is a Meta-Language. [0.5]


Select the option which best describes the statement given above.

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, c) Browser, WebServer,


WebServer Database Server

b) WebServer, Browser,
Database Server

11. The __________ structure of XML is much more powerful than [0.5]
_________ data formats.

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 c) Common format should be


for the format of the specific to their domains.
document.

b) The document processing d) The document processing


programs should support programs should support a
different document formats. common document format.

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

*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. [1.0]
This indicates that

a) Root element can be c) Root element describes


customized. 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 [1.0]
invalid

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? [1.0]
<!-- Comment1 <!-- Comment2 --> -->

a) Valid b) Invalid

25. XML declaration is also a processing instruction. [1.0]

a) True b) False

26. Height="8" Weight="70"> [1.0]


Here 8 and 70 when used outside XML Environment, they are taken as

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 [1.5]
corresponding to ASCII.

a) 4 c) 12

b) 8 d) 16
*30. Which of the following statements is true? [1.5]

a) All XML elements must be c) All XML elements must


lower case. have a closing tag.

b) All XML documents must have d) All the above statements are
a DTD. 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 c) XML tags are case sensitive.


properly nested.

b) XML documents must have a d) All the above statements


root tag. 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 c) XML was designed to


describe data and focus on display data and focus on
what data is. how data looks.

b) HTML was designed to d) HTML was designed to


display data and focus on describe data and focus on
how data looks what data is.

38. Identify if the following XML document code is valid. [2.0]


<?xml version="1.0"?>
<note>
<to>Joe</to>
<from>John</from>
<heading>Reminder</heading>
<body>Dont forget me this weekend!</body>
</note>

a) Valid b) Invalid

39. Identify if the following XML document code is valid. [2.0]

<?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]

<b><i>This text is bold and italic</b></i>

a) Correct b) Incorrect

*42. Identify the line/s containing an error [2.0]


1)<?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>

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) &amp; 1) <
b) &gt; 2) '
c) &quot; 3) >
d) &lt; 4) "
e) &apos; 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) 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 __________ [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

50. <!ELEMENT do(message+)> [0.5]


The "+" sign indicates that the child element 'message' must occur at
least once inside the do element.

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 d) The value is the name of a


entities. 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 [0.5]
well-formed documents.

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 [1.0]
extension
a) .xml c) .xms

b) .dtd d) .css

59. Verify the snippet given below: [1.0]


<?xml version="1.0" ?>
<img src=bullet_d.gif></img

a) True b) False

60. <!ELEMENT element-name (child-name )> [1.0]


Identify the sign to be placed in the syntax above so that it declares
that the child name
can occur zero or one time inside the element.

a) + c) ? *

b) * d) #

61. Consider a DTD example: [1.0]


<!ATTLIST study type (theory|practical) theory>
Is the following statement syntactically correct?

a) Yes b) No

62. The use of namespace in a document can be recognized using a [1.0]


______ in the tag name.

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 c) Documents need not


markup language. conform to the specified
structure of the DTD.

b) DTD does not have its own d) None of the above.


syntax.

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 --> [1.0]


<?xml version = "1.0"?>
<!DOCTYPE WELCOME SYSTEM "hello.dtd">
The following code indicates that the DTD is:

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 [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) <!DOCTYPE N1 TARGET c) <!DOCTYPE N1 SYSTEM


"show.dtd"> "show.dtd">

b) (?DOCTYPE N1 SYSTEM d) <!DOCTYPE N1 SOURCE


"show.dtd"?) "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 c) <?ELEMENT element-


(element-name type)> content (element-name
type)?>

b) <!ELEMENT element-name d) <!--ELEMENT element-


(element-content type)> content (element-name
type)-->

73. Identify the correct statements [1.5]

a) #CDATA means that the c) #PCDATA means that the


element contains data that is element contains data that
to be parsed by a parser. is to be parsed by a
parser.

b) #PCDATA means that the d) #CDATA means that the


element contains character element contains
data that is not to be parsed character data that is not
by a parser. to be parsed by a parser.

74. Identify the correct syntax [1.5]

a) <!ELEMENT element-name c) <!ELEMENT element-name


(child-element-name),(child- (child-element-name,child-
element-name),....> element-name,....>

b) <!ELEMENT element-name d) <!ELEMENT element-name


(child-element-name);(child- (child-element-name;child-
element-name);....> 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 c) <!ELEMENT element-name


(child-name+)> (child-name*)>

b) <!ELEMENT element-name d) <!ELEMENT element-name


(child-name?)> (child-name+)>

76. <!ELEMENT A((B,C)|D|E)> [1.5]


Identify what the statement indicates

a) Element A consists of B or C c) Element A consists of B and


and D and E. C followed by D and then by
E.

b) Element A consists D or E d) None of the above


or B followed by C.

*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">

b) <!ATTLIST element-name d) <!ATTLIST element-name


attribute-name attribute-type attribute-name attribute-type
#IMPLIED> #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 [1.5]
also determines how to process them.

a) True b) False

80. <?xml version="1.0" ?> [2.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?

a) True b) False

81. <!ELEMENT trial (targets+, source,title+,message*,#PCDATA)> [2.0]


The above example declares that the element trial must contain:
a) exactly one 'target', at least c) at least one 'target', exactly
one 'source', exactly one 'title', one 'source', at least one
zero or one 'message', and 'title', zero or one
some other parsed character 'message', and some other
data. 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 c) Namespaces allow us to be


tags allowed within the XML able to identify, which
documents and their type elements or attributes
and 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 d) Both a and b


document user

87. Identify the correct statements: [2.0]

a) Tags from multiple c) XSL uses the prefix ‘xsl:’


namespaces can be mixed. 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 [0.5]
another DTD.

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 c) XSL is an extension of


HTML 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 [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

96. The 'type' attribute in the <?xml-stylesheet?> processing instruction is [0.5]


the MIME type of style sheet.

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 c) XML documents, which


sent from one system to are not displayed to the
another system without users, do not require
modifying the content. stylesheets.

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

102. Selectors helping us to differentiate between different occurrences of [1.0]


a tag are termed as

a) Simple selectors c) Contextual Selectors

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

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 [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)

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 [1.0]
borders.

a) True b) False

111. Identify the correct syntax used by the XML document for displaying a [1.5]
stylesheet.

a) <xml-stylesheet type="txt/css" c) <?xml-stylesheet


href="abc.css"> type="txt/css"
href="abc.css"?>

b) <?xml-stylesheet d) <%xml-stylesheet
type='txt/css' type="txt/css"
href='abc.css'?> href="abc.css"%>

112. Consider and xml document [1.5]


<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href=xsampdoc.css ?>
<xsampdoc>
<greeting>All The Best!</greeting>
</xsampdoc>

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 c) The xml document will be


in red with the specified size displayed in the tree
as the output. 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 [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

116. Selectors allowing us to differentiate between different occurrences of [1.5]


<extension> are termed as

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 c) the first value is set as the
right and left margins. top and bottom margins.

b) the first value is set as the d) the second value is set as


top and bottom margins. the 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

123. Values used in font-weight are [2.0]

a) normal c) bolder

b) smallcaps d) lighter

124. S{margin-right:-3cm;} [2.0]


Is the above statement valid?

a) Yes b) No

125. H1{font-size xx-large} [2.0]


Is the above statement syntactically correct to make the heading font
extra large?

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 [0.5]
cannot be used for.

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 [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

b) order-by e) arrange all

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]

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 [0.5]
converted in XSL style sheets, are called:

a) CSS c) DSO’s

b) Data Islands d) templates

*141. Identify the correct syntax [1.0]

a) <*xml-stylesheet c) <?xml-stylesheet type


type="text/xsl" href="url" *> "text/xsl" href 'url'?>

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) this line is not to be c) this node applies to the


considered during execution. 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 [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

146. XSLT permits the creation of CSS.

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"?>

b) <?xsl:stylesheet xmlns d) <xsl=stylesheet


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) <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 c) It is a template-based


the source document with language.
the output in XML.

b) It prevents the transformation d) None of the above.


of the structure of an XML
document into a different XML
document.
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 c) It calculates quantities or


data. 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 = c) <?xsl:template match =


"myElement"> myElement?>

b) <?xsl:template match = d) <xsl=template match =


"myElement"?> 'myElement'>

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>

160. Identify the correct statements [2.0]

a) XSLT is a language to c) XSL Formatting Objects is


transform XML 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 [0.5]


changes and querying the document through code is termed as:

a) DOM c) DTD

b) XSL

163. If an application supports DOM it is irrelevant whether the program is [0.5]


written in VB or C.

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 [0.5]
objects of the document to be created.

a) True b) False

166. 'parseError' is identified as a method due to which if an error is [0.5]


detected:

a) the document is loaded but b) the document is not


the text is not displayed 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 [0.5]


several states that specify the current status of the asynchronous
download.

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

172. 'XMLDOMNodeList' property is: [0.5]

a) Read only c) Read/Write

b) Write

173. The 'nextNode' method in the XMLDOMNodeLis Object returns a [0.5]


NULL value if there is no next node.

a) True b) False

174. Identify the valid statements [1.0]

a) XML documents can be c) Even if an application does


accessed and manipulated not support DOM, it does not
using DOM. 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 [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:

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 [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

183. XTLRuntime,XMLDOMNotation are exceptions that do not inherit [1.0]


methods and properties from the XMLDOMNode object.

a) True b) False

184. Identify the statements which correctly relate to [1.0]


XMLDOMNamedNodeMap Object:

a) These objects can be c) Any change within a node is


accessed by an index. 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 [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]

a) Create xmlDoc = c) Set xmlDoc :


SetObject CreateObject("Microsoft.XMLDOM")
("Microsoft.XMLDOM"
)

b) Create xmlDoc : d) Set xmlDoc =


SetObject CreateObject("Microsoft.XMLDOM"
("Microsoft.XMLDOM" )
)

187. 'XMLDOMNode' is an XML DOM Object that: [1.5]


a) represents top node of c) represents an attribute
XMLDOM tree. object.

b) represents the base d) represents a parsed or


interface for accessing data unparsed entity.
in the XML Object model.
188. 'XMLDOMNamedNodeMap' is an XML DOM Object that: [1.5]

a) provides iteration and c) contains information


access by name to the associated with the
collection of attributes. document type declaration.

b) supports iteration and indexed d) represents a parsed or


operations on the live unparsed entity.
collection of XMLDOMNode
Objects.

189. 'XMLDOMEntity' is an XML DOM Object that: [1.5]

a) provides iteration and access c) provides iteration and


by name to the collection of access by name to the
attributes. collection of attributes.

b) Supports iteration and indexed d) None of the options given


operations on the live
collection of XMLDOMNode
Objects.

c) contains information
associated with the document
type declaration.

190. 'XMLDOMCDATASection' is an XML DOM Object that: [1.5]

a) Provides iteration and access c) quotes or escapes blocks


by name to the collection of of text so that text is not
attributes. interpreted as markup
language.

b) Supports iteration and indexed d) represents a parsed or


operations on the live unparsed entity.
collection of XMLDOMNode
Objects.
191. 'childNodes' is a property of the DOMDocument Object: (Select the [1.5]
correct statements)

a) Contains the list of attributes c) Read-only.


for this node.

b) Contains a node list d) Contains the root element of


containing the children. the document.

192. Identify the correct statements related to 'createNode method': [1.5]

a) When a node is created, it is c) When namespaceURI is the


created in context of the empty string, the node is
namespace mentioned. created within the
namespace of the previous
document.

b) For node types not having d) When namespaceURI is


names,null is passed as the the empty string, the node
name parameter. is created within the
namespace of the previous
document.

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) Guideline Method c) Factory Method

b) Element Method d) Referencing Method

194. Match the following: [2.0]


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.
4) XMLDOMCDATASection iv) Represents a processing
instruction
5) 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 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)

196. An XML Schema allows you to specify an element as an integer, a [0.5]


float, a Boolean, a URL, etc.

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 [0.5]


relationships between elements.

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) 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 c) the element type can contain


element type. only child elements.

b) the element type can contain d) the element type can


only text. contain only the declared
child elements.

208. Select the valid statements [1.0]

a) DTDs are written in an XML c) DTDs have no support for


syntax 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 [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

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 [1.0]
associated schema is not well formed but is a valid document.

a) True b) False

215. 'Datatype Validity' (Identify the correct statements) [1.0]

a) refers to the ability to test c) tests whether the order of


whether specific units of tags is correct.
information are of the
correct type.

b) refers to the ability to test d) tests whether the nesting of


whether specific units of tags is correct.
information fall within the
specified

216. If value of minOccur=0 and value of maxOccur=* then number of [1.0]


times an element can occur equals:

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

b) 1 d) None of the options given

220. In XML Schema the Archetype: [1.5]

a) expresses the datatype of c) allows us to define our


attributes in terms of explicit own named datatype from
enumerations and a few pre-existing data types.
coarse string formats.

b) allows us to define booleans, d) allows us to apply to all


numbers,dates and times. elements or several
attributes that include
graphic or table elements.

221. In an open content model elements other than the required elements [1.5]
cannot be present.

a) True b) False

222. Identify the valid statements: [1.5]

a) XML Schema vocabulary is c) Microsoft provides a DTD


like creating any other XML for XML Schema, which is
document using a 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 [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

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 c) both a and b


structure

b) a set of rules to articulate the d) both a and b


information set of XML
documents.

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

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 b) Do not establish a


between elements that share relationship between
similar properties. elements that share
similar properties.

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) One namespace for use with c) One or more namespaces


the schema. 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 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

Potrebbero piacerti anche