Saturday, June 16, 2018

Upwork XML 1.0 TEST 2018

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:
  1. int
  2. i1
  3. i2
  4. ui1
  5. ui2
2. Which of the following attributes are optional in xsl:sort command?
Answers:
  1. Select
  2. order
  3. datatype
  4. None of the above
3. Which of the following are methods of formatting of XML documents?
Answers:
  1. CSS
  2. XSLT
  3. DTD
  4. Schema
4. Which of the following data types are allowed in xsl:sort command?
Answers:
  1. Text
  2. Number
  3. Date
  4. None of the above
5. Which of the following patterns are correct for ‘select’ attribute
of xsl:sort command?
Answers:
  1. text() for any text
  2. node() for any node including root node and attribute node
  3. / for the root node
  4. @* 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:
  1. folder
  2. file
  3. name
  4. contents
  5. 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:
  1. folder
  2. file
  3. name
  4. contents
  5. report
8. What are the possible values for the actuate attribute of an XLink?
Answers:
  1. onLoad
  2. onClick
  3. onRequest
  4. onDisplay
9. Which of the following statements is not correct about schema?
Answers:
  1. The Schema element can contain any number of top-level declarations
  2. The XML schema language is based on the Worldwide Web Consortium (W3C)
  3. The definitions in an XML schema are contained within the top-level Schema element
  4. The Schema element in an XML Schema document can not use a namespace
10. Which of the following is an invalid operator?
Answers:
  1. / is used for child operator
  2. // is used for recursive descent
  3. . indicates the current context
  4. None of the above
11. When is the DOM event ‘onreadystatechange’ fired?
Answers:
  1. When state event is fired
  2. When state attribute of schema Element is ready
  3. When the readyState method changes
  4. None of the above
12. What are the requirements for an Extended XLink element?
Answers:
  1. You must specify at least two locators and two arcs
  2. You must specify at least two locators and one arc
  3. You must specify at least one locator and one arc
  4. 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:
  1. Yes
  2. No
14. What is the Root element of an XSL file?
Answers:
  1. The stylesheet element
  2. The template element
  3. The html element
  4. Any XSL element can be the Root element
15. What does the following XPath expression represent?
/addressbook/address[@id=’1′]
Answers:
  1. The address having an id attribute with a value of 1
  2. The id attribute of the address with an id of 1
  3. The address having a child element named id with a value of 1
  4. 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:
  1. book(excerpt)(title)
  2. book[excerpt][title]
  3. book[excerpt/title]
  4. 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:
  1. 3
  2. 4
  3. 5
  4. 6
  5. 4,5
  6. 4,5,6
  7. there are no errors
18. Which of the following is an attribute of the locator element in an Extended XLink?
Answers:
  1. from
  2. to
  3. href
19. What are the relative advantages of Schemas over DTDs?
Answers:
  1. XML Schemas support data types
  2. XML Schemas support namespaces
  3. XML Schemas are written in XML
  4. All of the above
20. Which is the correct method for declaring the xml version?
Answers:
  1. <?xml version=”1.0″?>
  2. <xml version=”1.0″>
  3. <?XML version=”1.0″?>
  4. <? xml version=”1.0″?>
  5. <?xml version=1.0 ?>
  6. <?Xml Version=1.0 ?>
  7. <?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. 1
  2. 2,8
  3. 3
  4. 4
  5. 5
  6. 6
  7. there are no errors
22. Select the appropriate statement to find all bookstores where thevalue of the specialty attribute is equal to “textbooks”.
Answers:
  1. /bookstore[@specialty = “textbooks”]
  2. /bookstore[specialty = “textbooks”]
  3. /bookstore[@specialty = textbooks]
  4. /bookstore(@specialty = “textbooks”)
23. How is an External Unparsed General entity defined in a DTD?
Answers:
  1. <!ENTITY entity-name EXTERNAL “file-name” NDATA notation-name>
  2. <!ENTITY entity-name SYSTEM “file-name” >
  3. <!ENTITY entity-name SYSTEM “file-name” notation-name>
  4. <!ENTITY entity-name SYSTEM “file-name” NDATA notation-name>
24. What are the possible values for the show attribute of an XLink?
Answers:
  1. new
  2. embed
  3. replace
  4. All of the above
25. State whether the following statement is correct?Attributes must have both a name and a value.
Answers:
  1. True
  2. False
26. State whether the following statement is correct?XPath can be used directly from the Document Object Model (DOM).
Answers:
  1. True
  2. False
27. Which of the following are XHTML DTDs?
Answers:
  1. Strict
  2. Transitional
  3. Frameset
  4. All of the above
28. Which of the following is not a parameter of DOM event ontransformnode?
Answers:
  1. nodeType
  2. nodeData
  3. nodeCode
29. Which limitation of HTML links is overcome by XLink?
Answers:
  1. HTML links must be embedded in the source document whereas XLinks may be stored outside the source document
  2. HTML links only allow navigation in one direction
  3. HTML links only link two resources
  4. All of the above
30. What does the following XPath expression represent?
/addressbook//phone
Answers:
  1. All phone elements that are at the next level from the addressbook element
  2. All phone elements that are present beneath the addessbook element (at any level)
  3. All phone elements that are two levels below the addressbook element
  4. This is an incorrect expression
31. What does depth method of DOM do?
Answers:
  1. Returns the depth of attributes
  2. Creates the number of attributes as per passed parameters
  3. Creates the number of nodes as per passed parameter
  4. 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:
  1. Can store only integer values
  2. Can store only decimal values
  3. Can not store integer or decimal values
  4. can store integer and decimal values
33. Choose the correct DTD Element definition:
Answers:
  1. <ELEMENT country (#PCDATA)>
  2. <!ELEMENT country (#PCDATA)>
  3. <!ELEMENT country #PCDATA>
  4. <ELEMENT country #PCDATA>
  5. <!ELEMENT country (PCDATA)>
34. Which of the following statements is true with regard to XHTML?
Answers:
  1. XHTML tags are different from HTML tags
  2. XHTML is used in combination with XSL for converting XML files to HTML format
  3. XHTML documents need not satisfy any of the syntax rules of XML
  4. XHTML documents must satisfy all the syntax rules of XML
35. Which of the following is not an advantage of DOM?
Answers:
  1. Performs complex XPath filtering
  2. Retrieves small amounts of information
  3. Random access
  4. 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:
  1. <CDATA(applications with XML using <, >,)>
  2. <[CDATA[applications with XML using <, >,]]>
  3. <![CDATA[applications with XML using <, >,]]>
  4. <(CDATA(applications with XML using <, >,))>
37. Which of the following is not a type of attribute?
Answers:
  1. CDATA
  2. PCDATA
  3. ID
  4. IDREF
  5. IDREFS
  6. NMTOKEN
38. Which of the following XPath functions is not a string function?
Answers:
  1. concat
  2. substring
  3. translate
  4. namespace-uri
39. Which of the following is not a DOM method?
Answers:
  1. add
  2. clone
  3. object
  4. cloneNode
  5. createElement
40. Which of the following is not an XSL element?
Answers:
  1. for-each
  2. template
  3. select
  4. 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:
  1. The sender element cannot be empty
  2. There need not be any attachments
  3. There will be only one message within the messagelist element
  4. 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:
  1. folder
  2. file
  3. name
  4. contents
  5. report
  6. none of them contain Element Content
  7. all of them contain Element Content
43. What does the following XPath expression represent?
/addressbook/*/phone
Answers:
  1. The phone element which is two levels below the addressbook element
  2. The phone attribute which is two levels below the addressbook element
  3. The phone attribute which is immediately below the addressbook element
  4. This is an incorrect expression
44. What are XML Namespaces used for?
Answers:
  1. They are used to associate an External DTD with an XML document
  2. They prevent element naming conflicts when more than one XML vocabulary is being used in an XML document
  3. They are used to improve the readability of XML documents by assigning a meaningful prefix to element names
  4. 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:
  1. It has the same purpose as an HTML link
  2. It has the same purpose as an Extended XLink
  3. It is used when you want a link to point to a particular part of an XML document
  4. 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:
  1. True
  2. false
47. Is the following statement correct?
Inner tags in XML must be closed first.
Answers:
  1. True
  2. 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:
  1. <!DOCTYPE folder EXTERNAL “folder.dtd”>
  2. <!DOCTYPE folder SYSTEM [“folder.dtd”]>
  3. <!DOCTYPE folder SYSTEM “folder.dtd”>
  4. The DTD must be stored in the same file as the XML document
49. Which of the following statements is true?
Answers:
  1. An XML Namespace can only be associated with the Root element of an XML document
  2. An XML Namespace can be associated with any element in the XML document and its scope is limited to that element only
  3. 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
  4. 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:
  1. %entity-name%
  2. <!–entity-name–>
  3. &entity-name;
  4. <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. 1
  2. 2
  3. 3
  4. 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:
  1. True
  2. False
53. When is the DOM event ‘ondataavailable’ fired?
Answers:
  1. When new data is available
  2. When user set an attribute
  3. When XML is NULL
  4. 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:
  1. the version declaration is incorrect
  2. it doesn’t have a root element
  3. an attribute named id cannot be used because id is a reserved word
  4. the comments are incorrect
  5. there is nothing wrong
55. Which of the following is false when you use XSL to convert an XML document to HTML format?
Answers:
  1. The XSL file must be wellformed
  2. A Namespace must be used within the XSL file
  3. The document generated after transformation will also satisfy all XML syntax requirements
  4. The document generated after transformation may or may not satisfy all XML syntax requirements
56. Which of the following is correct about SAX2?
Answers:
  1. SAX2 is an xml Parser
  2. SAX2 is used for event-based xml implementation
  3. SAX2 is used for xml schema
  4. None of the above
57. Which is the correct way to declare an XML Namespace?
Answers:
  1. <body xmlns:hns=”http://www.w3.org/TR/html4/”>
  2. <hns:body xmlnamespace:hns=”http://www.w3.org/TR/html4/”>
  3. <hns:body hns=”http://www.w3.org/TR/html4/”>
  4. <hns:body xmlns:hns=”http://www.w3.org/TR/html4/”>
58. Which of the following statements define ‘prolog’ in xml?
Answers:
  1. The prolog refers to the information that appears before the start tag of the document or root element
  2. The prolog creates is used to create the structure of the xml document
  3. The prolog is a query language for xml
  4. The prolog is an xml parser
59. When are you most likely to use XML?
Answers:
  1. You have created a Java-based data-oriented application which will be used on several different platforms
  2. You want to exchange information between a web based Java application and a Visual Basic application running on your PC
  3. You want to create a personal web site for yourself which will consist of a few static pages
  4. You are writing a software for an old mainframe computer
60. What is an ENTITY attribute type?
Answers:
  1. It can contain the name of any External Unparsed entity
  2. It can contain the name of any External Unparsed entity or Internal Unparsed entity
  3. It can contain the name of any External Parsed entity or Internal Parsed entity
  4. It can contain the name of any Parameter entity
61. Which of the following is an XML declaration?
Answers:
  1. <?xml version=”1.0″?>
  2. <xmlns:h br/>
  3. <!IGNORE ……..>
  4. <!DOCTYPE ……>
  5. <!INCLUDE …….>
62. Which of the following is not a reason for using DTDs?
Answers:
  1. DTDs speed up the parsing of an XML document
  2. With DTDs, your XML files carry a description of their own format.
  3. Independent groups of people can agree to use a common DTD for interchanging data.
  4. 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:
  1. It is the same as an ID attribute
  2. It is the same as an IDREF attribute
  3. It can contain letters and numbers and it must contain unique values
  4. 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:
  1. <!ATTLIST shoe size CDATA “0”>
  2. <!ATTLIST shoe size CDATA 0>
  3. <!ATTLIST shoe size #PCDATA “0”>
  4. <!ATTLIST shoe size DATA “0”>
65. Which attribute is not used when specifying a Simple XLink element?
Answers:
  1. locator
  2. show
  3. actuate
  4. role
  5. title
66. What is an NMTOKEN attribute type?
Answers:
  1. It is the same as a CDATA attribute
  2. It can only contain letters and digits
  3. It can only contain letters and digits, hyphens, colons and a few other characters
  4. 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:
  1. complexType
  2. attribute
  3. element
  4. All of the above
68. Which of the following is not an attribute of AttributeType element of schema?
Answers:
  1. default
  2. name
  3. required
  4. optional
69. What is the difference between General entities and Parameter Entities?
Answers:
  1. They are the same
  2. There is no such thing as a Parameter entity
  3. Parameter entities are used within DTDs and General entities are used within XML documents
  4. General entities are the predefined entities such as <, > etc whereas Parameter entities are user defined
70. What is XML DOM used for?
Answers:
  1. Writing DTDs
  2. Writing Schemas
  3. Programmatically accessing the elements within an XML file
  4. Parse the XML Data
71. What is an ID attribute type?
Answers:
  1. It is the same as a CDATA attribute
  2. It can only contain numbers and it must contain unique values
  3. It can only contain letters and it must contain unique values
  4. It can contain letters and numbers and it must contain unique values
72. Select the correct XML from following options.
Answers:
  1. <Customer><ID></ID><Customer><Customer><Name></Name></Customer>
  2. <Customer><ID><Name></Customer><Customer><ID><Name></Customer>
  3. <Customers><Customer><ID></ID><Customer><Customer><Name></Name></Customer></Customer></Customer>
  4. </Customers>
  5. <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:
  1. ASC
  2. ascend
  3. ascending
  4. ascendingorder
74. What does the following XPath expression represent?
/addressbook/address
Answers:
  1. All addresses within the addressbook element
  2. The first address within the addressbook element
  3. The last address within the addressbook element
  4. All addresses within the addressbook element and their sub children
75. When are you likely to use an XML Namespace?
Answers:
  1. When writing an XHTML document
  2. When creating an XSL template
  3. When writing an XML document containing tags from multiple XML vocabularies
  4. All of the above
76. Which of the following is a required namespace in xml schema?
Answers:
  1. xmlns=”urn:schemas-microsoft-com:xml-data”
  2. xmlns=”urn:schemas-microsoft-com”
  3. xmlns=”urn:schemas-microsoft-com:xml-database”
  4. None of the above
77. Comments describe statements in a better way. What is the correct syntax of comments in XML?
Answers:
  1. Begin with /* and end with a */
  2. Begin with <!– and end with –>
  3. Begin and end with //
  4. None of the above
78. Which of the following is not a schema element?
Answers:
  1. Attribute
  2. AttributeType
  3. ElementGroup
  4. DataType
79. Which of the following is not a primitive data type?
Answers:
  1. entity
  2. date
  3. id
  4. 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:
  1. Only (a) is true
  2. Only (b) is true
  3. Both (a) and (b) are true
  4. 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