XML All
CDATA is text that ____ be parsed by a parser. a. will not b will c. sometimes will d sometimes will not
a
In schema, the ALL element requires that a. each element in the group must occur at most once b. there must be an element in the XML instance in the same order c. the maxOccurs attribute can be 0 or 1
a
CDATA means: a. common data b. character data c. computer data d. None of these
b
DTD defines the document structure with a list of legal elements. a. False b. True c. Not always d. None of these
b
DTD is: a. Data Type Definition b. Document Type Definition c. Definition Type Document d. Definition Type Data
b
Schema is an _____ based alternative a XHTML b. XML c XSL d XSLT
b
Which of the following selections is the proper way to apply this CSS rule: .blue { color: blue } a. <P COLOR "blue"> b. <P CLASS = "blue"> c. <P COLOR .blue> d. <P CLASS .blue>
b
XML Can be used to a. Replace old language. b. Create new language. c. All of the above d. None of these.
b
XML is a Complement to a. XHTML. b HTML c. Xquery d Xpath
b
For each element type associated with a sequence element, there must be an element in the XML instance in the same order?
t
XML parser checks for validity and well formed ness?
t
What is the value of num after the following statement is performed? num Math.round( 2.45 ); a. 0 b. 2 c. 2.5 d. 3
b
XML Schema became a W3C Recommendation a. 03. May 2001 b. 02.May 2000 c. 02.May 2002 d. 02.May 2001
d
An XML Schema describes the structure of an XML______ a. document b. file c. page d. None of these
a
An element declaration has the following syntax: a. <!ELEMENT element-name category> b <ELEMENT element-name category> c. <!ELE element-name category> d <!eIement-name ELEMENT category>
a
Attributes provide____about elements. a. extra information b. information c. more data d. None of these
a
If the DTD is external to your XML source file, it should be wrapped in a DOCTYPE definition with the following syntax: a. <!DOCTYPE root-element SYSTEM "filename"> b. <DOCTYPE root-element SYSTEM "filename"> c. <!DOCTYPE root-element SYSTEM 'filename'> d <!DOCTYPE SYSTEM "filename">
a
In CSS, when a style is applied to an element containing other elements inside it a. The style is applied to the element and all the other elements contained in it b. The style is applied only to the main element c. The style is applied only to the child elements d. The user is prompted with a message enquiring whether the style is to be applied to the child elements as well
a
It defines the document structure with a list of ______ a. legal elements b. elements c. bad elements d. None of these
a
Specifies that the attribute cannot be used? a. prohibited b. required c. optional d. use
a
The StAX cursor API represents a. a cursor with which you can walk an XML document from beginning to end. b. an XML document stream as a set of discrete event objects. c. an object - based tree in computer memory
a
The question mark (?) operator indicates a. either zero or one occurrence. b. any number of occurrences. c. one or more occurrences. d. more than one occurrence.
a
What is XML? a. Extensible Markup Language b. Extra Modern Link c. Example markup Language d. X-Markup Language
a
What is the significance of the following CSS rule? LI, EM { color: red;cfont-weight: bold } a. It will apply the specified style to text enclosed by either LI or EM tags. b. It will apply the specified style to text enclosed by the EM tags which are within LI tags. c. It will apply the specified style to text enclosed by the LI tags which are within EM tags. d. It will apply the specified style to text not enclosed by either LI or EM tags.
a
What is wrong with the following line of code? <P><FONT SIZE '5'>This is a test.</FONT></P> a. Nothing b. There is no attribute named SIZE for the element FONT c. The value 5 must not be placed within quotes d. The value 5 must be placed within double quotes
a
With XML Schemas, the senders can the data in a way that the receiver will understand. a. describes b. develops c. designs d. inform
a
XML Schema is designed to a. be self-descriptive b. display only useful data c. carrying request d. giving response.
a
XML Schemas are the Successors of a. DTD b. XML c. XSL d. XSLT
a
XML is a. Free and Extensible b. Not Extensible. c A stylesheet d None of these
a
XML uses a. an XML Schema to describe the data b. an XHTML Schema to describe the data c. an XPath to describe the data d. an XQuerya to describe the data
a
_____can validate your XML against a DTD. a. Internet Explorer 5.0 b. Internet Explorer 6.0 c. Opera d. Mozilla
a
A simple element is an XML element that can contain only a. numbers b text c. images d All the above
b
CSS positions can be either absolute or _______ a. static b. relative c. transferred d. disabled
b
Elements are the main building blocks of both a. XHTML and HTML documents b. XML and HTML documents c. XSL and XHTML documents d. None of these
b
Entities are expanded when a document is parsed by an XML a. compiler b parser c. debugger d Iinker
b
For the XML parser to ignore a certain section of your XML document, which syntax is correct? a. <CDATA> Text to be ignored </CDATA> b <![CDATA[ Text to be ignored ]]> c. <PCDATA> Text to be ignored </PCDATA> d. <xml:CDATA[ Text to be ignored ]>
b
In SAX, to provide customized DTD handling, application need to implement a. ErrorHandler b. DTDHandler c. EntityResolver d. DcfaultHandlcr
b
In a DTD, Attributes are declared with an_____ declaration a. ATTRIBUTELIST b. ATTLIST c. ALIST d All the above
b
Method characters() of ContentHandler interface receives events for a. The beginning of element b. Character data c. The end of element d. The beginning of document
b
Method hasChildNodes of XMLDOMNode mean a. Determine if a given node is empty or not b. Determine if a given node has child nodes or not c. Determine if a given node and all descendants has been parsed and instantiated d. Return an integer representing the XML DOM node type
b
One of the greatest strength of XML Schemas is the support for a. images b data types c. graphics d functions
b
SAX uses a. Pull parsing machenic for processing b. Push parsing machenic for processing c. A in memory data structure for processing
b
What does DTD stand for? a. Dynamic Type Definition. b Document Type Definition. c. Do The Dance. d Direct Type Definition.
b
What does the value string contain after the following code is executed? var string "Good luck on the test"; string string.link("www.dcitel.com") a. a link to www.deitel.com with the text "www.deitel.com" b. a link to www•deitel.com with the text "Good luck on the test" c. the text "www.deitel.com" d. Nothing, the string conversion will generate an error.
b
What is a correct way of referring to a stylesheet called "mystyle.xsl"? a. <Iink type="text/xsl" href="mystyle.xsl" /> b <?xml-stylesheet type="text/xsl" href="mystyle.xsl"?> c. <stylesheet type="text/xsl" href="mystyle.xsl" /> d All of the above
b
What is the value of 83 after the following code is executed? var s1 one, s2 two, s3 three; s1.concat(s2) s3 s1; a. one b. onetwo c. three d. onetwothree
b
Which of the following XML attribute names is invalid? a. _notvalid b. I am not valid c. not-valid.1 d. not1valid2
b
Which of the following is not a keyword used for default settings in an! ATTLlST element? a. #IMPLIED b. #DEFINE c. #REQUIRED d. #FIXED
b
Which of the following statements is not true? a. The <!DOCTYPE . > declaration follows the XML declaration b. Entities that appear anywhere in an XML document are referred to as Parameter entities c. Attributes are added to an element to provide information about the element d. Entities must be declared within the document DOCTYPE declaration
b
Which of the following statements regarding filters and transitions is false? a. They are built into Internet Explorer. b. They are applied on a client computer at run time by the server. c. They enable portions of pages and entire pages to be faded in an out. d. They enable 3-d effects.
b
Which of these are not supported by XML Schema? a. defines elements that can appear in a document b. defines which files are child elements c. defines attributes that can appear in a document d. defines which elements are child elements
b
Which of these is the correct syntax to link an XSL file to an XML document? a. <?xmls type "text/xsl"href "candidate.xsl"?> b. <?xml-stylesheet type="text/xsl" href="candidate.xsl"?> c. <?xsl type "text/xsl" href "candidate.xsl"?> d. <?xml:xsl href "candidate.xsl"?>
b
With reference to the snippet of code given below, choose the correct syntax to complete the second line in order to create a XML Document Object: var sample sample a. CreateXMLDocument() b. new ActiveXObject("microsoft.XMLDOM") c. NewXMLDocument d. New XMLDOMObject
b
XML is the mother of a. HTML. b. WAP and WML c. All of the above d. None of these.
b
____ are declared in each individual HTML element using the keyword STYLE. a. Cascading style sheets b. Inline styles c. External styles d. User style sheets
b
____and_____ run slower when they are applied to large arrays. a. linear search, binary search b. linear search, bubble sort c. binary search, bubble sort d. linear - bubble search, binary - linear sort
b
ln DOM, a node can have a. More than one parent nodes b. More than one children nodes c. No sibling nodes
b
Which of these characters can be included within the text in an XML document in literal form? a. > b. ; c. : d. -
bcd
A program in which all statements are executed one after the other in the order in which they are written exhibit____ a. transfer of control b. algorithms c. sequential execution d. direct execution
c
Elements with only character data are declared with a. #CHAR b. #TEXT c. #PCDATA
c
How is an empty XML element defined? a. <sample></sample> b <sample/> c. All of the above. d None of the above.
c
If the DTD is included in your XML source file, it should be wrapped in a DOCTYPE definition with the following syntax: a. <DOCTYPE root-element [element-declarations]> b <DOCTYPE root-element (element-declarations)> c. <!DOCTYPE root-element [element-declarations]> d <!DOCTYPE [element-declarations]>
c
PCDATA means: a. private character data b public character data c. parsed character data d parsed and compiled data
c
See the snip set below and choose one answer: <xsl : value-of select "floor(-2.3)"/> a. -2 b. -2.5 c. -3
c
To divide the value of the seventh element of array a by 2 and assign the result to the variable x, we would write a. x/2 a(7) b. x a[7]/2 c. x=a[6]/2 d. x a(6/2)
c
What does the keyword SYSTEM indicate in the following code? <?xml version "1.0"?> <!DOCTYPE Book SYSTEM "book.dtd"> a. It is a system generated DTD b. Book.dtd is an internal DTD c. Book.dtd is an external DTD d. Book is a system variable
c
Which Statement about xml is true? a. Elements may have multiple attribute with the same name b Quoting attribute is optional. c. Elements may nest but not overlap d All of the above.
c
Which is not a correct name for an XML documents? a. <Note> b. <h1> c. <1dollar> d. All 3 names are incorrect.
c
Which is not a correct name for an XML element? a. <age> b <NAME> c. <first name> d All three names are incorrect.
c
Which object represents the top level of the XML source? a. XML b. DOMParent c. DOMDocument d. None of them
c
Which of the following is not required for counter-controlled repetition? a. final value b. initial value c. sentinel d. increment
c
Which of these is a valid comment in XML? a. <!--This is a sample XML document> b. <?This is a sample XML document?> c. <!--This data should be hidden <FIRSTNAME>Joe</FlRSTNAME> <LASTNAME>J0hnson<lLASTNAME> --> d. <?--This is a sample XML document-->
c
Which statement is true? a. All XML documents must have a DTD. b All XML elements must be lower case. c. All XML elements must be properly closed. d All of the above.
c
Which syntax is used to insert comment into an XML document? a. <comment>This is a comment</comment> b. <?-This is a comment-> c <!-This is a comment-> d All of the above.
c
Which top level XSLT elements is used to define a variable in a style-sheet or template and to assign it a value a. xsl:include b. xsl:output c. xsl:variable d. xsl:text
c
With DTD, each of your XML files can carry a _______ of its own format with it. a. data b control c. description d data and control
c
XML is a Recommendation a. Microsoft b. Sun c. W3C d. None of these
c
XSD is: a. XHTML Schema Definition b. XSL Schema Definition c. XML Schema Definition d. XSLT Schema Definition
c
You can also use a DTD to verify your own _____ a. control b. description c. data d None of these
c
A DTD can be declared inline in your XML document, or as an a. internal reference b. reference c. Both 1 and 2 d external reference
d
A procedure for solving a problem in terms of the actions to be executed and the order in which these actions are to be executed is called a. program control b. a program structure c. a control structure d. an algorithm
d
Entities are variables used to define a. control b. database c. structure d. common text
d
What does XSL stand for? a. eXtra Style Language b. eXpandabIe Style Language c. eXtensibIe Style Listing d. eXtensibIe Stylesheet Language
d
What is the correct declaration syntax for the version of an XML document? a. </xml version="1.0"/> b. <? xml version="1.0"/?> c. <xml version="1.0"> d. <?xml version="1.0" ?> e. none of the above
d
Which of the following is/are optional in the creation of an XML file? a. The <?xml version " 1.0"?> statement b. The root element c. The opening tag in an element d. Entities
d
Which of these characters cannot be used as entity references in XML? a. < b. & c. " d. $
d
Which statement is true? a. XML tags are case sensitive. b XML documents must have a root tag. c. XML elements must be properly closed. d All of the above.
d
With an extensible Schema definition you cannot: a. Reuse your Schema in other Schemas b. Create your own data types derived from the standard types c. Reference multiple schemes in the same document d. All the above
d
A descendant having a new namespace cannot override the namespace defined by the parent element?
f
Browser has the ability distinguish duplicate element names in an XML document?
f
External DTDs use the keyword URL to specify the location of the DTD?
f
Parameter entities use ampersand (&) and semicolon (;) as delimiters?
f
SAX support random access
f
The default value for the minOccurs attribute in Schema is 0
f
Tree model is applied to static documents?
f
XML is transformed only via XSLT?
f
An XML Schema defines whether an element is empty or can include text.
t
XML developer has to ensure the uniqueness of the element names and attributes in a document?
t
XSLT takes two things as input: an XSLT stylesheet and an xml input document
t
Xpath can be thought of as a query language like SQL
t