Log On To and To - MCQ in HTML/XML
Log On To and To - MCQ in HTML/XML
MCQ in HTML/XML
See Answers
2. What is the correct syntax of the declaration which defines the XML version?:
See Answers
3. Which statement is true?
See Answers
1. Yes
2. No
3. Somtimes
4. Cant say
See Answers
See Answers
1. well-formed
2. well-documented
3. non-validating and validating
4. none of the above
See Answers
1. <?-- -->
2. <!-- --!>
3. <!-- -->
4. </-- -- >
See Answers
1. are copied into output "as is", i.e. "CR+LF" for Windows, CR for Macintosh, LF for Unix.
2. are converted to single LF symbol
3. are converted to single CR symbol
4. are discarded
See Answers
1. _myElement
2. my Element
3. #myElement
4. None of the above
See Answers
1. xmlExtension
2. xslNewElement
3. XMLElement#123
4. All
See Answers
1. <?xml?>
2. <?xml version="1.0"?>
3. <?xml encoding="JIS"?>
4. <?xml encoding="JIS" version="1.0"?>
See Answers
1. xml:lang
2. xml:space
3. both
4. none.
See Answers
1. well-formed
2. validating
3. non-validating
4. Both 2 & 3
See Answers
15. Valid XML document means (most appropriate)
See Answers
(1) HTML
(2) XHTML
(3) VML
(4) SGML
See Answers
(1) IE 3.0
(2) IE 2.0
(3) IE 6.0
(4) IE X.0
See Answers
See Answers
See Answers
20. DTD includes the specifications about the markup that can be used within the document, the
specifications consists of all EXCEPT
See Answers
See Answers
1. <myElement myAttribute="someValue"/>
2. <myElement myAttribute=someValue/>
3. <myElement myAttribute=’someValue’>
4. <myElement myAttribute="someValue’/>
See Answers
See Answers
See Answers
See Answers
ANSWERS-->
Question 1. What does XML stand for?
Question 2. What is the correct syntax of the declaration which defines the XML version?:
4. must contain one or more elements and root element must contain all other elements
<ANS>
Question 10. Which of the following strings are a correct XML name?
1. _myElement <ANS>
Question 11. Which of the following strings are a correct XML name?
2. xslNewElement <ANS>
3. both <ANS>
(3) the XML document has DTD associated with it & it complies with that DTD <ANS>
Question 20. DTD includes the specifications about the markup that can be used within the document,
the specifications consists of all EXCEPT
1. xml file
2. dtd file
3. xsl file
4. Both 1 and 2
See Answers
See Answers
28. In XML
(1) the internal DTD subset is read before the external DTD
(2) the external DTD subset is read before the internal DTD
(3) there is no external type of DTD
(4) there is no internal type of DTD
See Answers
See Answers
See Answers
31. To add the attribute named Type to the <customer> tag the syntax will be
See Answers
See Answers
33. You can name the schema using the name attribute like
1. <schema attribute=”schema1”>
2. <schema nameattribute=”schema1”>
3. <schema nameattri=”schema1”>
4. <schema name=”schema1”>
See Answers
34. The default model for complex type, in XML schemas for element is
1. textOnly
2. elementOnly
3. no default type
4. both 1 & 2
See Answers
35. Microsoft XML Schema Data types for Hexadecimal digits representating octates
1. UID
2. UXID
3. UUID
4. XXID
See Answers
(i) grammer
(ii) vocabulary
(iii) structure
(iv) datatype of XML document
See Answers
(1) MM-DD-YY
(2) Dd-MM-YY
(3) YY-MM-DD
(4) YYYY-MM-DD
See Answers
39. In simple Type Built into XML schema Boolean type holds
See Answers
40. In simple type built into XML schema type flat has single precision of ________ floating
point
(1) 16 bit
(2) 32 bit
(3) 8 bit
(4) 4 bit
See Answers
1. Entity
2. Entity Reference
3. Comment Reference
4. Comment Data
See Answers
(i)doctype
(ii)implementation
(iii)documentElement
See Answers
43. The default model for complex type, in XML schemas for element is
(1) textOnly
(2) elementOnly
(3) no default type
(4) both a & b
See Answers
See Answers
(1) Entity
(2) Entity Reference
(3) Comment Reference
(4) Comment Data
See Answers
(1) <XML>
(2) <dataisland>
(3) <Island>
(4) <XMLIsland>
See Answers
47. To Bind the HTML elements with DSO we use _________ attribute
(1) DATASOURCE
(2) DATAFIELD
(3) DATASRC
(4) DATAFLD
See Answers
48. To bind the HTML element <INPUT> Type in text with the datasource “ dsoCustomer” we
use
See Answers
49. XML DSOs has the property for the number of pages of data the recordset contains
(1) count
(2) number
(3) pageCount
(4) pageNumber
See Answers
See Answers
ANSWERS-->
26. Parameter entities can appear in
2. dtd file <ANS>
28. In XML
(1) the internal DTD subset is read before the external DTD <ANS>
31. To add the attribute named Type to the <customer> tag the syntax will be
33. You can name the schema using the name attribute like
34. The default model for complex type, in XML schemas for element is
2. elementOnly <ANS>
3. UUID <ANS>
39. In simple Type Built into XML schema Boolean type holds
40. In simple type built into XML schema type flat has single precision of ________ floating point
43. The default model for complex type, in XML schemas for element is
47. To Bind the HTML elements with DSO we use _________ attribute
48. To bind the HTML element <INPUT> Type in text with the datasource “ dsoCustomer” we use
49. XML DSOs has the property for the number of pages of data the recordset contains
(1) XMLNS
(2) XmlNameSpace
(3) Xmlns
(4) XmlNs
55. To match the root node in XMLT transform the syntax will be
1. <xsl:template match=”Document”>
2. <xsl:template match=”Root”>
3. <xsl:template match=”RootNode”>
4. <xsl:template match=” /”>
56. To match the specific XML elements child like of parent element is the syntax will be
1. <xsl:template match=”PLANET_NAME”>
2.<xsl:template match=”PLANET/NAME”>
3. <xsl:template match=”/NAME”>
4. <xsl:template match=”//”>
1. 3.14
2. priceless instruction
3. processing instruction
4. polymorphic inheritance
1. the design demands that all elements use both start and end tags
2. missing or out-of-place elements could cause application errors
3. attribute values cannot refer to external entity references
4. High performance is an important architectural constraint
1. list-block
2. list-item
3. list-item-body
4. list-item-label
1. XMLNS
2. XmlNameSpace
3. Xmlns
4. XmlNs
62. Identify the most accurate statement about the application of XML:
63. The XSl formatting object which formats the data and caption of a table is
(1) table
(2) table-content
(3) table-text
(4) none of the above
64. The XSL formating object which holds the content of the table body
(1) table
(2) table-body
(3) table-content
(4) table-footer
65. The XSL formatting object which formats the data in a table
(1) table
(2) table-body
(3) title
(4) table-content
66. The XSL formating object use to hold the content of the label of a list item is
(1) list-block
(2) list item
(3) list-item-body
(4) list-item-label
67. The XSL formating object use to hold the contents of the body of a list item is
(1) list-block
(2) list item
(3) list-item-body
(4) list-item-label
70. The syntax for writing the minimum occurrence for an element is
1. the input and output of the XSLT processor must be unparsed XML documents
2. the input and output of the XSLT processor must be a hierarchical tree representing an XML document
3. the XSLT processor must be called from a web agent
4. the XSLT processor must be given the DTD as well as the XML document instance
1. XPath identifies the order or path of processing to be followed as the XSL language is processed
2. XPath identifies locations in XML data to be transformed in the source tree and the locations to be
generated in output tree specified in XSL translation prescriptions
3. XPath identifies the path to be followed in the execution of XSL translation prescriptions
4. XPath specifies which XSL transform files are to be used in the translation of XML
74. Which statement correctly describes the capabilities of the XSLT language?
1. XSLT uses the DTD to determine how XML documents will be translated
2. XSLT specifies how a hierarchical trees, representable by an XML document may be translated into
non-hierarchical formats
3. XSLT specifies how a hierarchical tree, representable by an XML document, may be translated into
another hierarchical tree, also representable by an XML document
4. XSLT specifies the formatting style to be used to render an XML document
ANSWERS-->
55. To match the root node in XMLT transform the syntax will be
56. To match the specific XML elements child like of parent element is the syntax will be
2.<xsl:template match=”PLANET/NAME”> <ANS>
1. list-block <ANS>
3. Xmlns <ANS>
62. Identify the most accurate statement about the application of XML:
63. The XSl formatting object which formats the data and caption of a table is
64. The XSL formating object which holds the content of the table body
65. The XSL formatting object which formats the data in a table
(1) table <ANS>
66. The XSL formating object use to hold the content of the label of a list item is
67. The XSL formating object use to hold the contents of the body of a list item is
70. The syntax for writing the minimum occurrence for an element is
2. the input and output of the XSLT processor must be a hierarchical tree representing an XML
document <ANS>
2. XPath identifies locations in XML data to be transformed in the source tree and the
locations to be generated in output tree specified in XSL translation prescriptions <ANS>
76. The transformation of XML document in to another type of document by XSLT can be done by
77: To match the root node in XMLT transform the syntax will be
78: To match the specific XML elements in XMLT the syntax for given name “ rootnode” is
79. To match the specific XML elements child like of parent element is the syntax will be
80. InXSLT style sheet we have syntax to match elements with id as (if id is “ change” )
81. To match the text node (in XSLT) the syntax will be
84: Which of the following specify that the order and content of "membership" is not important
85: Which of the following is used to specify the attribute list of an element
1. ATTLIST
2. ?ATTLIST
3. !ATTLIST
4. #ATTLIST
86: Which of the following instruct the browser which stylesheet to use
88: Which of the following XSLT Patterns is used to match any descendant nodes
1) /
2) //
3) .
4) ..
1) /
2) //
3) .
4) ..
1) for
2) for-all
3) for-each
4) in-turn
1. XML developed from HTML because WEB browsers became more powerful.
2. XML is designed as a replacement because SGML can not be used for document development.
3. XML builds on HTMLs ability to provide content to virtually any audience by adding the power of
intelligent content.
4. XML is the modern replacement for HTML and SGML, taking the good points from each, making both
of those languages obsolete.
1. Develop DTD, conduct a pilot project, create a modular library, train staff.
2. Train staff, convert legacy documents, develop DTD, create modular library.
3. Conduct pilot program, train staff, create modular library, develop DTD
4. Conduct pilot program, train staff, develop DTD, convert documents, purchace XML tools.
1. A Non-Common Name
2. A Non-Conforming Name
3. A Non-Colonized Name
4. None of the above
97. If a namespace is attached to an element by prefix, what is the effect on non-prefixed child
elements
1. Nothing
2. The namespace affects the immediate nonprefixed child elements, but no others
3. The namespace affects all child elements of the element to which the namespace is attached no
matter what level.
4. None of the above
1. A set of names applied to specific spaces within an XML document, such as the head and body
2. A set of names representing a specific XML vocabulary
3. A set of names for XML documents pertaining to a particular vocabulary
4. None of the above.
ANSWERS-->
76. The transformation of XML document in to another type of document by XSLT can be done by
77: To match the root node in XMLT transform the syntax will be
79. To match the specific XML elements child like of parent element is the syntax will be
80. InXSLT style sheet we have syntax to match elements with id as (if id is “ change” )
81. To match the text node (in XSLT) the syntax will be
4. must contain one or more elements and root element must contain all other elements
<ANS>
84: Which of the following specify that the order and content of "membership" is not important
85: Which of the following is used to specify the attribute list of an element
3. !ATTLIST <ANS>
86: Which of the following instruct the browser which stylesheet to use
89: Which of the following XSLT Patterns is used to match the parent node
4) .. <ANS>
3) for-each <ANS>
3. XML builds on HTMLs ability to provide content to virtually any audience by adding the
power of intelligent content. <ANS>
3. Conduct pilot program, train staff, create modular library, develop DTD <ANS>
1. Nothing
2. The namespace affects the immediate nonprefixed child elements, but no others
3. The namespace affects all child elements of the element to which the namespace is attached no
matter what level.
4. None of the above
3. A namespace that is referenced with the xmlns attribute, but without a prefix <ANS>
2. The beginning or first element in XML is called the __root (document)__ element.
8. A __[prefix with]__ colon in an element or attribute name must be associated with a namespace
identifier.
11. External DTDs can reference both SYSTEM and __PUBLIC__ identifiers.
15. A content __model__ defines what elements may be contained within another element.
18. A __?__ repetition operator mean zero or one instance of the element.
19. Content models are defined with either a __sequence__ list or a choice list.
20. In the functional notation rgb( ), you can use numbers or __percentages__
23. The __ID__ attribute type defines an attribute value as a unique identifier.
24. The __xml:lang__ attribute is a built-in XML attribute for specifying languages.
26. An internal entity is declared locally in a DTD while an __external__ entity is declared in a separate
document.
28. A general entity reference begins with an __ampersand (&)__ and ends with a semicolon.
30. One tool you can use to test a DTD is with a __conditional__ section.
31. A namespace definition without a prefix is known as a __default__ namespace.
33. The namespace __myth__ refers to a belief that namespaces are associated with, or validated by,
schemas.
34. You can declare __multiple__ namespaces with multiple instances of the xmlns __declaration__
within a start-tag.
35. Namespaces are often declared within the start-tag of a __root__ element.
37. With , you can define content of both __complex__ and mixed type.
38. minOccurs specifies the minimum times an element may occur while __maxOccurs__ determines
the maximum times it may occur.
39. The __ref__ attribute can reference other element and attribute definitions in a schema.
40. The element must be declared with either a named or anonymous __complexType__
41. The original XML document or byte stream is referred to as a source tree and the output is called
the __result__ tree.
48. In XHTML, always use a __CDATA__ section inside the <script> element.
49. The forthcoming recommendation for small devices is called XHTML __Basic__.
50. __Document__ profiles defines the elements, etc. that are appropriate for a certain class of
document, without a formal recommendation.
TRUE OR FALSE
1. XML will replace HTML as the leading language for the Web. (False)
2. To use XML you must pay a small license fee to Sun Microsystems. (False)
13. XML does not necessarily have to be well-formed, but it must be valid. (False)
14. An element name can begin with any character that is legal in an element. (False)
15. Child element and mixed content models must be enclosed in quotes. (False)
18. You can skip quotation marks around an attribute value. (False)
19. If you reuse a unique ID, it should generate a validity error. (True)
22. CSS/2’s attribute selector is fully implemented in the Netscape and Microsoft browsers. (False)
23. An unparsed entity may require a helper application to render it. (True)
27. Conditional sections are legal in XML documents as well as DTDs. (False)
36. XML Schema unfortunately did not inherit the attribute types from XML 1.0. (False)
38. You cannot embed an XSL stylesheet as you can CSS in HTML. (False)
45. Do not include the XHTML namespace when including XHTML in an XML document. (False)
46. The content or MIME type for XHTML is text/xhtml. (False)
QUESTIONS
1) Describe the role that XSL can play when dynamically generating HTML pages from a relational
database.
2) Give a few examples of types of applications that can benefit from using XML.
5) Can you walk us through the steps necessary to parse XML documents?
6) Give some examples of XML DTDs or schemas that you have worked with.
7) Using XSLT, how would you extract a specific attribute from an element in an XML document?
8) When constructing an XML DTD, how do you create an external entity reference in an attribute value?
9) How would you build a search engine for large volumes of XML data?
Question 1. -->
Question 2. -->
Question 3. -->
Question 4. -->
Question 5. -->
Question 6. -->
Question 7. -->
1. urn:wyeast-comm:db a. #FIXED
2. Can share the same name if in different elements b. prefix
3. For declaring a namespace c. URL
4. http://wyeast.net/tack d. attribute
5. db: e. URN
6. Used to declare a default in a DTD f. xmlns
Question 8. -->
Question 9. -->
ANSWERS -->
1. urn:wyeast-comm:db e. URN
2. Can share the same name if in different elements d. attribute
3. For declaring a namespace f. xmlns
4. http://wyeast.net/tack c. URL
5. db: b. prefix
6. Used to declare a default in a DTD a. #FIXED