Hello Freelancer, Get the XML 1.0 TEST of Latest version 2018. We are ready here to provide your desire upwork test answer. We already tested all exam test information Available include on here. So Dear, Why Late? Read the below full exam test and get more information from our website.
1. Which of the following can store negative values?
Answers:
- int
- i1
- i2
- ui1
- ui2
2. Which of the following attributes are optional in xsl:sort command?
Answers:
- Select
- order
- datatype
- None of the above
3. Which of the following are methods of formatting of XML documents?
Answers:
- CSS
- XSLT
- DTD
- Schema
4. Which of the following data types are allowed in xsl:sort command?
Answers:
- Text
- Number
- Date
- None of the above
5. Which of the following patterns are correct for ‘select’ attribute
of xsl:sort command?
Answers:
- text() for any text
- node() for any node including root node and attribute node
- / for the root node
- @* for any parent node
6. Which elements in the following extract contain Mixed Content?
1 <?xml version=”1.0″?>
2 <folder>
3 <file>
4 <name>Accounts Reports</name>
5 <contents>These are the contents of the file
6 <report>This is the first report</report>
7 </contents>
8 End of the file
9 </file>
10 </folder>
Answers:
- folder
- file
- name
- contents
- report
7. Which element in the following extract contains Simple Content (Text Content)?
1 <?xml version=”1.0″?>
2 <folder>
3 <file>
4 <name>Accounts Reports</name>
5 <contents>These are the contents of the file
6 <report>This is the first report</report>
7 </contents>
8 End of the file
9 </file>
10 </folder>
Answers:
- folder
- file
- name
- contents
- report
8. What are the possible values for the actuate attribute of an XLink?
Answers:
- onLoad
- onClick
- onRequest
- onDisplay
9. Which of the following statements is not correct about schema?
Answers:
- The Schema element can contain any number of top-level declarations
- The XML schema language is based on the Worldwide Web Consortium (W3C)
- The definitions in an XML schema are contained within the top-level Schema element
- The Schema element in an XML Schema document can not use a namespace
10. Which of the following is an invalid operator?
Answers:
- / is used for child operator
- // is used for recursive descent
- . indicates the current context
- None of the above
11. When is the DOM event ‘onreadystatechange’ fired?
Answers:
- When state event is fired
- When state attribute of schema Element is ready
- When the readyState method changes
- None of the above
12. What are the requirements for an Extended XLink element?
Answers:
- You must specify at least two locators and two arcs
- You must specify at least two locators and one arc
- You must specify at least one locator and one arc
- You must specify at least one locator and two arcs
13. Is the following statement correct?
You can use XSL Transformations (XSLT) to merge simple regular XML data with an HTML template for display.
Answers:
- Yes
- No
14. What is the Root element of an XSL file?
Answers:
- The stylesheet element
- The template element
- The html element
- Any XSL element can be the Root element
15. What does the following XPath expression represent?
/addressbook/address[@id=’1′]
Answers:
- The address having an id attribute with a value of 1
- The id attribute of the address with an id of 1
- The address having a child element named id with a value of 1
- The address having an attribute named @id with a value of 1
16. Select the appropriate statement to find all books that have an
excerpt and a title.
Answers:
- book(excerpt)(title)
- book[excerpt][title]
- book[excerpt/title]
- None of the above
17. Which line will generate an error in the following XML file?
1.<?xml version=”1.0″?>
2.<folder>
3.<file><name><contents></contents></name></file>
4.<file><name/><contents></contents><name/></file>
5.<file><name/><contents></contents></name></file>
6.<file><name><contents/><name/></file>
7.</folder>
Answers:
- 3
- 4
- 5
- 6
- 4,5
- 4,5,6
- there are no errors
18. Which of the following is an attribute of the locator element in an Extended XLink?
Answers:
- from
- to
- href
19. What are the relative advantages of Schemas over DTDs?
Answers:
- XML Schemas support data types
- XML Schemas support namespaces
- XML Schemas are written in XML
- All of the above
20. Which is the correct method for declaring the xml version?
Answers:
- <?xml version=”1.0″?>
- <xml version=”1.0″>
- <?XML version=”1.0″?>
- <? xml version=”1.0″?>
- <?xml version=1.0 ?>
- <?Xml Version=1.0 ?>
- <?xmlversion=”1.0″?>
21. Which line will generate an error in the following XML code?
1 <?xml version=”1.0″?>
2 <f_ns:folder dt=”1/1/2000″>
3 <file f_id=”1″ >
4 <name>Accounts Reports</name>
5 <contents />
6 <!– Note: This file does not contain anything yet –>
7 </file>
8 </f_ns:folder>
Answers:
- 1
- 2,8
- 3
- 4
- 5
- 6
- there are no errors
22. Select the appropriate statement to find all bookstores where thevalue of the specialty attribute is equal to “textbooks”.
Answers:
- /bookstore[@specialty = “textbooks”]
- /bookstore[specialty = “textbooks”]
- /bookstore[@specialty = textbooks]
- /bookstore(@specialty = “textbooks”)
23. How is an External Unparsed General entity defined in a DTD?
Answers:
- <!ENTITY entity-name EXTERNAL “file-name” NDATA notation-name>
- <!ENTITY entity-name SYSTEM “file-name” >
- <!ENTITY entity-name SYSTEM “file-name” notation-name>
- <!ENTITY entity-name SYSTEM “file-name” NDATA notation-name>
24. What are the possible values for the show attribute of an XLink?
Answers:
- new
- embed
- replace
- All of the above
25. State whether the following statement is correct?Attributes must have both a name and a value.
Answers:
- True
- False
26. State whether the following statement is correct?XPath can be used directly from the Document Object Model (DOM).
Answers:
- True
- False
27. Which of the following are XHTML DTDs?
Answers:
- Strict
- Transitional
- Frameset
- All of the above
28. Which of the following is not a parameter of DOM event ontransformnode?
Answers:
- nodeType
- nodeData
- nodeCode
29. Which limitation of HTML links is overcome by XLink?
Answers:
- HTML links must be embedded in the source document whereas XLinks may be stored outside the source document
- HTML links only allow navigation in one direction
- HTML links only link two resources
- All of the above
30. What does the following XPath expression represent?
/addressbook//phone
Answers:
- All phone elements that are at the next level from the addressbook element
- All phone elements that are present beneath the addessbook element (at any level)
- All phone elements that are two levels below the addressbook element
- This is an incorrect expression
31. What does depth method of DOM do?
Answers:
- Returns the depth of attributes
- Creates the number of attributes as per passed parameters
- Creates the number of nodes as per passed parameter
- Returns the depth within the document tree where the specified node appears
32. Which of the following statements are true about the number data
type in xml?
Answers:
- Can store only integer values
- Can store only decimal values
- Can not store integer or decimal values
- can store integer and decimal values
33. Choose the correct DTD Element definition:
Answers:
- <ELEMENT country (#PCDATA)>
- <!ELEMENT country (#PCDATA)>
- <!ELEMENT country #PCDATA>
- <ELEMENT country #PCDATA>
- <!ELEMENT country (PCDATA)>
34. Which of the following statements is true with regard to XHTML?
Answers:
- XHTML tags are different from HTML tags
- XHTML is used in combination with XSL for converting XML files to HTML format
- XHTML documents need not satisfy any of the syntax rules of XML
- XHTML documents must satisfy all the syntax rules of XML
35. Which of the following is not an advantage of DOM?
Answers:
- Performs complex XPath filtering
- Retrieves small amounts of information
- Random access
- None of the above
36. CDATA sections provide a way to tell the parser that there is no markup in the characters contained by the C DATA section. Which of the following is the correct syntax for C DATA?
Answers:
- <CDATA(applications with XML using <, >,)>
- <[CDATA[applications with XML using <, >,]]>
- <![CDATA[applications with XML using <, >,]]>
- <(CDATA(applications with XML using <, >,))>
37. Which of the following is not a type of attribute?
Answers:
- CDATA
- PCDATA
- ID
- IDREF
- IDREFS
- NMTOKEN
38. Which of the following XPath functions is not a string function?
Answers:
- concat
- substring
- translate
- namespace-uri
39. Which of the following is not a DOM method?
Answers:
- add
- clone
- object
- cloneNode
- createElement
40. Which of the following is not an XSL element?
Answers:
- for-each
- template
- select
- value-of
41. What does the following DTD imply?
<!DOCTYPE messagelist [
<!ELEMENT messagelist(message*)>
<!ELEMENT message(sender?,receiver,subject,body,attachment+)>
<!ELEMENT sender (#PCDATA)>
<!ELEMENT receiver (#PCDATA)>
<!ELEMENT subject (#PCDATA)>
<!ELEMENT body (#PCDATA)>
<!ELEMENT attachment (#PCDATA)>
]>
Answers:
- The sender element cannot be empty
- There need not be any attachments
- There will be only one message within the messagelist element
- There must be one or more attachments
42. Which element in the following extract contains Element Content?
1 <?xml version=”1.0″?>
2 <folder>
3 <file>
4 <name>Accounts Reports</name>
5 <contents>These are the contents of the file
6 <report>This is the first report</report>
7 </contents>
8 End of the file
9 </file>
10 </folder>
Answers:
- folder
- file
- name
- contents
- report
- none of them contain Element Content
- all of them contain Element Content
43. What does the following XPath expression represent?
/addressbook/*/phone
Answers:
- The phone element which is two levels below the addressbook element
- The phone attribute which is two levels below the addressbook element
- The phone attribute which is immediately below the addressbook element
- This is an incorrect expression
44. What are XML Namespaces used for?
Answers:
- They are used to associate an External DTD with an XML document
- They prevent element naming conflicts when more than one XML vocabulary is being used in an XML document
- They are used to improve the readability of XML documents by assigning a meaningful prefix to element names
- They do not have any purpose right now, but future XML standards will use them in the same way that DTDs are used
45. What is the purpose of XPointer?
Answers:
- It has the same purpose as an HTML link
- It has the same purpose as an Extended XLink
- It is used when you want a link to point to a particular part of an XML document
- It has the same purpose as a Simple XLink
46. State whether the following statement is correct?
Conditional templates are output only if certain conditions exist
within the source document.
Answers:
- True
- false
47. Is the following statement correct?
Inner tags in XML must be closed first.
Answers:
- True
- False
48. An XML document has a root element named <folder>. The DTD for this document is stored in an External file called folder.dtd. How will you declare this external DTD in the XML document?
Answers:
- <!DOCTYPE folder EXTERNAL “folder.dtd”>
- <!DOCTYPE folder SYSTEM [“folder.dtd”]>
- <!DOCTYPE folder SYSTEM “folder.dtd”>
- The DTD must be stored in the same file as the XML document
49. Which of the following statements is true?
Answers:
- An XML Namespace can only be associated with the Root element of an XML document
- An XML Namespace can be associated with any element in the XML document and its scope is limited to that element only
- An XML Namespace can be associated with any element in the XML document and its scope is limited to that element along with its child elements
- An XML Namespace can be associated with any element in the XML document and its scope is limited to the entire XML document
50. How is an entity used within an XML document?
Answers:
- %entity-name%
- <!–entity-name–>
- &entity-name;
- <entity-name/>
51. Read the following statements carefully.
1. <xsl:for-each select=”portfolio/stock”>
2. <TR>
3. <TD><xsl:value-of “symbol”/></TD>
4. </TR>
5. </xsl:for-each>
Which statement is incorrect in above rows?
Answers:
- 1
- 2
- 3
- 4
52. State whether the following statement is correct?
Inline schema is useful when it is inconvenient to physically separate
the schema and the instance.
Answers:
- True
- False
53. When is the DOM event ‘ondataavailable’ fired?
Answers:
- When new data is available
- When user set an attribute
- When XML is NULL
- None of the above
54. What is wrong with this XML code?
1 <?xml version=”1.0″?>
2 <folder dt=”1/1/2000″>
3 <file id=”1″ >
4 <name>Accounts Reports</name>
5 <contents />
6 <!– Note: This file does not contain anything yet –>
7 </file>
8 </folder>
9 <folder dt=”1/2/2000″>
10 <file id=”2″ >
11 <name>Marketing Reports</name>
12 <contents />
13 <!– Note: This file does not contain anything yet –>
14 </file>
15 </folder>
Answers:
- the version declaration is incorrect
- it doesn’t have a root element
- an attribute named id cannot be used because id is a reserved word
- the comments are incorrect
- there is nothing wrong
55. Which of the following is false when you use XSL to convert an XML document to HTML format?
Answers:
- The XSL file must be wellformed
- A Namespace must be used within the XSL file
- The document generated after transformation will also satisfy all XML syntax requirements
- The document generated after transformation may or may not satisfy all XML syntax requirements
56. Which of the following is correct about SAX2?
Answers:
- SAX2 is an xml Parser
- SAX2 is used for event-based xml implementation
- SAX2 is used for xml schema
- None of the above
57. Which is the correct way to declare an XML Namespace?
Answers:
- <body xmlns:hns=”http://www.w3.org/TR/html4/”>
- <hns:body xmlnamespace:hns=”http://www.w3.org/TR/html4/”>
- <hns:body hns=”http://www.w3.org/TR/html4/”>
- <hns:body xmlns:hns=”http://www.w3.org/TR/html4/”>
58. Which of the following statements define ‘prolog’ in xml?
Answers:
- The prolog refers to the information that appears before the start tag of the document or root element
- The prolog creates is used to create the structure of the xml document
- The prolog is a query language for xml
- The prolog is an xml parser
59. When are you most likely to use XML?
Answers:
- You have created a Java-based data-oriented application which will be used on several different platforms
- You want to exchange information between a web based Java application and a Visual Basic application running on your PC
- You want to create a personal web site for yourself which will consist of a few static pages
- You are writing a software for an old mainframe computer
60. What is an ENTITY attribute type?
Answers:
- It can contain the name of any External Unparsed entity
- It can contain the name of any External Unparsed entity or Internal Unparsed entity
- It can contain the name of any External Parsed entity or Internal Parsed entity
- It can contain the name of any Parameter entity
61. Which of the following is an XML declaration?
Answers:
- <?xml version=”1.0″?>
- <xmlns:h br/>
- <!IGNORE ……..>
- <!DOCTYPE ……>
- <!INCLUDE …….>
62. Which of the following is not a reason for using DTDs?
Answers:
- DTDs speed up the parsing of an XML document
- With DTDs, your XML files carry a description of their own format.
- Independent groups of people can agree to use a common DTD for interchanging data.
- Your application can use a standard DTD to verify that the data you receive from outside is valid.
63. What is an IDREFS attribute type?
Answers:
- It is the same as an ID attribute
- It is the same as an IDREF attribute
- It can contain letters and numbers and it must contain unique values
- Its value must match the value of one or more ID attributes separated by whitespace
64. Which of the following is the correct way to define an attribute named size of an element named shoe. The attribute should have a default value of 0?
Answers:
- <!ATTLIST shoe size CDATA “0”>
- <!ATTLIST shoe size CDATA 0>
- <!ATTLIST shoe size #PCDATA “0”>
- <!ATTLIST shoe size DATA “0”>
65. Which attribute is not used when specifying a Simple XLink element?
Answers:
- locator
- show
- actuate
- role
- title
66. What is an NMTOKEN attribute type?
Answers:
- It is the same as a CDATA attribute
- It can only contain letters and digits
- It can only contain letters and digits, hyphens, colons and a few other characters
- It can only contain letters and digits, hyphens, colons and a few other characters including spaces
67. Which of the following are the elements used to define an XML Schema?
Answers:
- complexType
- attribute
- element
- All of the above
68. Which of the following is not an attribute of AttributeType element of schema?
Answers:
- default
- name
- required
- optional
69. What is the difference between General entities and Parameter Entities?
Answers:
- They are the same
- There is no such thing as a Parameter entity
- Parameter entities are used within DTDs and General entities are used within XML documents
- General entities are the predefined entities such as <, > etc whereas Parameter entities are user defined
70. What is XML DOM used for?
Answers:
- Writing DTDs
- Writing Schemas
- Programmatically accessing the elements within an XML file
- Parse the XML Data
71. What is an ID attribute type?
Answers:
- It is the same as a CDATA attribute
- It can only contain numbers and it must contain unique values
- It can only contain letters and it must contain unique values
- It can contain letters and numbers and it must contain unique values
72. Select the correct XML from following options.
Answers:
- <Customer><ID></ID><Customer><Customer><Name></Name></Customer>
- <Customer><ID><Name></Customer><Customer><ID><Name></Customer>
- <Customers><Customer><ID></ID><Customer><Customer><Name></Name></Customer></Customer></Customer>
- </Customers>
- <Customers><Customer><ID><Name>></Customer><Customer><ID><Name></Customer></Customers>
73. What is the correct value of order attribute for sorting the string in ascending order?
Answers:
- ASC
- ascend
- ascending
- ascendingorder
74. What does the following XPath expression represent?
/addressbook/address
Answers:
- All addresses within the addressbook element
- The first address within the addressbook element
- The last address within the addressbook element
- All addresses within the addressbook element and their sub children
75. When are you likely to use an XML Namespace?
Answers:
- When writing an XHTML document
- When creating an XSL template
- When writing an XML document containing tags from multiple XML vocabularies
- All of the above
76. Which of the following is a required namespace in xml schema?
Answers:
- xmlns=”urn:schemas-microsoft-com:xml-data”
- xmlns=”urn:schemas-microsoft-com”
- xmlns=”urn:schemas-microsoft-com:xml-database”
- None of the above
77. Comments describe statements in a better way. What is the correct syntax of comments in XML?
Answers:
- Begin with /* and end with a */
- Begin with <!– and end with –>
- Begin and end with //
- None of the above
78. Which of the following is not a schema element?
Answers:
- Attribute
- AttributeType
- ElementGroup
- DataType
79. Which of the following is not a primitive data type?
Answers:
- entity
- date
- id
- idref
80. Which of the statements are correct?
(a)Attributes added with <xsl:attribute> must appear before children are added to the element.
(b)You can add an attribute to an element that already has an attribute of that name.
Answers:
- Only (a) is true
- Only (b) is true
- Both (a) and (b) are true
- Both (a) and (b) are false
Finally no more words require about the XML 1.0 TEST information in this session of this content. If you are require knowing more, Please ask to us via our contact us form or comment box. Please make sure that, you don’t send Personal information via the Comment box. Thanks for Being with us.
No comments:
Post a Comment