Following the XML Code snippet displays the title of books made by a particular author, using XSLT for each element. The book titles are in sorted order. 1.<xsl:for-each select="author/books"> 2.<...
From the following XML code snippet, the 3D shape cube is to be displayed. Which of the following is the correct code option? <?xml version="1.0" encoding="ISO-8859-1"?> <shapes> <category ty...
xmlDoc.selectSingleNode("//category[@type='3D']").childNodes[0].nodeValue 0%
xmlDoc.getElementByTagName["//category[@type='3D']"].childNodes[0].nodeValue 0%
xmlDoc.getElementByTagName("category")[1].childNodes[1].nodeValue 0%
xmlDoc.getElementByTagName("category")[1].childNodes[0].nodeValue 0%
From the following XML Code Snippet, the model name of the Mercedes manufacturer is to be displayed. Which of the following options is correct? <?xml version="1.0" encoding="ISO-8859-1"?> <cars> ...
xmlDoc.getElementsByTagName("car")[2].childNodes[1].nodeValue; 0%
xmlDoc.getElementsByTagName("car")[1].childNodes[1].nodeValue; 0%
xmlDoc.getElementsByTagName("car")[1].childNodes[2].nodeValue; 0%
xmlDoc.getElementsByTagName("car")[0].childNodes[1].nodeValue; 0%
Identify the Decendant Nodes in the following XML Code snippet. <bookstore> <book> <title>Title1</title> <author>Author1</author> <year>2009</year> ...
book 0%
title 0%
author 0%
bookstore 0%
Identify the values of the text nodes in the following XML Code Snippet? <?xml version="1.0" encoding="ISO-8859-1"?> <books> <book category="science"> <title>Solar System</title> ...
<title> 0%
Solar Sytem 0%
<chapters> 0%
12 0%
Select the correct XML from the following options.
<employee><id></id><name></name><department></employee> 0%
<employee><id><name></id></name><department /></employee> 0%
<employee><id></id><name></name><department></department></employee> 0%
<employee><id></id><name></name><department></department> 0%
State whether the following statement is True or False. XForms can contain multiple forms in a single containing document.
The following are two XPath statements: Statement A: trafficsign[1][@type="warning"] Statement B: trafficsign[@type="warning"][1]
Statement A selects the first trafficsign node if it has a type attribute with value warning and Statement B selects the first trafficsign node that has a type attribute with value warning. 0%
Statement A selects the first trafficsign node that has a type attribute with value warning and Statement B selects the first trafficsign node if it has a type attribute with value warning. 0%
Both statements convey the same meaning. 0%
Both statements are invalid. 0%
The main purpose of XML DOM is to:
write XML DTD. 0%
write XML Schemas. 0%
programmatically access and manipulate XML Data. 0%
parse the XML Data. 0%
What does the following DTD imply? <!DOCTYPE booklist [ <!ELEMENT booklist(book*)> <!ELEMENT book(summary?,title,acknowledgement+)> <!ELEMENT summary (#PCDATA)> <!ELEMENT title (#P...
The summary element can occur zero or one times inside the book element. 0%
The acknowledgement element can occur zero or more times inside the book element. 0%
The book element can occur one or more times inside the booklist element. 0%
The acknowledgement element can occur one or more times inside the book element. 0%
What does the following DTD imply? <!DOCTYPE booklist [ <!ELEMENT book (#PCDATA)> <!ATTLIST book pages CDATA #IMPLIED> ]>
The book element is required to include an attribute named pages with data type CDATA having a default value of 0. 0%
The book element may or may not have an attribute called pages. 0%
The book element is required to include an attribute named pages with data type CDATA but no default value is required. 0%
The book element is required to include an attribute named pages with data type CDATA and the attribute value is required to have a fixed value. 0%
What does the following XPath expression depict? /book/chapter
It displays all chapter elements within the book element. 0%
It displays the first chapter within the book element. 0%
It displays the last address within the book element. 0%
What is an IDREFS attribute type?
It is a Tokenized type attribute, the same as a ID attribute. 0%
It is a Tokenized type attribute that contains a list of multiple name tokens. 0%
It is a Tokenized type attribute that is a list of other ids. 0%
It is a Tokenized type attribute that is used as a reference to more than one element. 0%
What type of restriction is exhibited by the following XSD code snippet? <xs:element name="character"> <xs:simpleType> <xs:restriction base="xs:string"> <x...
The character element accepts only LOWERCASE letters from a to z. 0%
The character element rejects all LOWERCASE letters from a to z. 0%
The character element accepts only ONE of the LOWERCASE letters from a to z. 0%
The character element accepts all LOWERCASE letters except a and z. 0%
Which of the following are correct XML Namespace declarations?
<body xmlns:hns="http://www.w3.org/TR/html4/"> 0%
<html xmlns='http://www.w3.org/1999/xhtml'> 0%
<hns:body hns="http://www.w3.org/TR/html4/"> 0%
<hns:body xmlns:hns="http://www.w3.org/TR/html4/"> 0%
Which of the following are examples of XSD Order Indicators?
All 0%
maxOccurs 0%
Choice 0%
minOccurs 0%
Which of the following are the mandatory XHTML elements?
<html> 0%
<head> 0%
<title> 0%
<meta> 0%
Which of the following are Tokenized type attributes?
ENTITY 0%
ID 0%
CDATA 0%
NMTOKEN 0%
Which of the following are valid DOM methods?
createAttribute() 0%
setAttribute() 0%
cloneNodes() 0%
object() 0%
Which of the following are XForm Built-in Derived Datatypes?
xsd:ID 0%
xsd:QName 0%
xsd:NMTOKEN 0%
xsd:Name 0%
Which of the following are XForm Notification Events?
xforms-select 0%
xforms-ready 0%
xforms-focus 0%
xforms-valid 0%
Which of the following are XLink Traversal attributes?
label 0%
to 0%
actuate 0%
from 0%
title 0%
Which of the following attributes are optional in the xsl:sort command?
select 0%
case-order 0%
data-type 0%
None of the above 0%
Which of the following code snippets does not comply with the XLink syntax?
<mainpage xlink:type="simple" xlink:href="http://dumydomain.com">Main Page</mainpage> 0%
<mainpage xlink:type="simple" xlink:href="http://dumydomain.com" xlink:show="new">Main Page</mainpage> 0%
<mainpage xlink:type="simple" xlink:href="http://dumydomain.com" xlink:show="_blank">Main Page</mainpage> 0%
<mainpage xlink:type="locator" xlink:href="http://dumydomain.com">Main Page</mainpage> 0%
Which of the following deals with internationalization and localization of Extended Links?
Resource-Type 0%
Locator-Type 0%
Arc-Type 0%
Title-Type 0%
Which of the following DTD attribute-types contains a list of valid XML names?
ID 0%
NMTOKENS 0%
CDATA 0%
ENTITY 0%
Which of the following elements is not associated with XSL?
<if> 0%
<choose> 0%
<any> 0%
<for-each> 0%
Which of the following filter operators are associated with the <xsl:for-each> element?
= 0%
!= 0%
< (less than) 0%
> (greater than) 0%
All of the above 0%
Which of the following is a default value of the show attribute of an XLink?
new 0%
embed 0%
replace 0%
other 0%
Which of the following is a top level element defined in an XSL style sheet?
<xsl:import> 0%
<xsl:include> 0%
<xsl:template> 0%
<xsl:stylesheet> 0%
Which of the following is a well formed and valid XML document type declaration?
<message>Hello</message> 0%
<?xml version="1.0"?><message>Hello</message> 0%
<?xml version="1.0"?><welcome message>Hello</welcome message> 0%
<?xml version="1.0"?><!DOCTYPE message SYSTEM "message.dtd"><message /> 0%
Which of the following is an XForm String function?
property() 0%
count-non-empty() 0%
instance() 0%
index() 0%
Which of the following is an Xlink Locator attribute?
to 0%
actuate 0%
role 0%
href 0%
Which of the following is not a DTD type attribute?
CDATA 0%
PCDATA 0%
IDREFS 0%
NMTOKEN 0%
Which of the following is not a feature of CDATA sections?
CDATA sections contain character data. 0%
CDATA sections are not parsed by the XML parser. 0%
CDATA sections can contain tags and these tags need not be declared in the DTD. 0%
CDATA sections can be nested. 0%
Which of the following is not a value of the xlink:type attribute?
simple 0%
embed 0%
extended 0%
title 0%
Which of the following is not an XForm Form Control?
output 0%
button 0%
range 0%
trigger 0%
Which of the following is not built-in primitive types in the XML Schema?
xs:string 0%
xs:integer 0%
xs:decimal 0%
xs:boolean 0%
Which of the following is the correct sequence of NodeType value for the following XML elements? Attribute, Text, Document, Comment
9,2,3,8 0%
3,9,8,2 0%
2,3,9,8 0%
8,3,9,2 0%
Which of the following is the official namespace of XForms?
http://www.w3.org/2007/xforms 0%
http://www.w3.org/2003/xforms 0%
http://www.w3.org/2002/xforms 0%
http://www.w3.org/2001/xforms 0%
Which of the following is the root element of an XHTML document?
The DOCTYPE declaration 0%
The <head> tag 0%
The <html> tag 0%
The <body> tag 0%
Which of the following is the root element of every XML Schema?
<xmlns:xs> 0%
<xs:schema> 0%
<xmlns:xsi> 0%
None of these 0%
Which of the following is/are used in Xforms binding?
ref 0%
XPath 0%
bind 0%
All the of the above 0%
Which of the following operations or applications use XML?
WSDL applications 0%
Retreiving data from a database using applications 0%
Ajax 0%
Browser scripting 0%
Which of the following statements are true in the context of XHTML?
An empty element does not require end tags. 0%
Elements should be well formed. 0%
Attribute names must be in the lower case. 0%
Non-empty elements require end tags. 0%
Which of the following statements comply with the XHTML syntax?
<img src="photo.jpeg" name="photo1" id="photo1" /> 0%
<img src="photo.jpeg" id="photo1" /> 0%
<img src="photo.jpeg" id="photo1"> 0%
<img src="photo.jpeg" name="photo1" /> 0%
Which of the following statements does not comply with XHTML syntax?
<ul> <li> <ul>Text2</ul> </li> </ul> 0%
<b><i>This is a test message</i></b> 0%
<option selected="selected"> 0%
<img src="picture.png" id="picture1" name="picture1" /> 0%
Which of the following statements finds all the dealers where the value of the product attribute is equal to "computers"?
/dealers[@product = "computers"] 0%
/dealers[product = "computers"] 0%
/dealers[@product = computers] 0%
/dealers(@product = "computers") 0%
Which of the following statements is not true of XForms?
Reduced Server round trips 0%
Form data is submitted in the form of XML. 0%
XForms are restricted to XHTML. 0%
It provides multiple device support. 0%
Which of the following statements is not true with regard to XML?
XML is used for data exchange between applications on different systems. 0%
XML is platform independent. 0%
XML can be used to separate data and presentation. 0%
XML incorporates relational data structures. 0%
Which of the following statements is/are true regarding XForms?
XForm model elements are contained in the head section. 0%
XForm interface elements are contained in the body section. 0%
Both a and b are true. 0%
Neither a nor b is true. 0%
Which of the following statements is/are true? Statement (I): Using or following a link for any purpose is called Traversal. Statement (II): Information about the Trasversal application behaviour ...
Statement (I) is true 0%
Statement (II) is true 0%
Both (I) and (II) are true 0%
Neither (I) nor (II) is true 0%
Which of the following statements regarding XML is incorrect?
XML elements must be properly nested. 0%
XML tags are not case sensitive. 0%
An XML document must have a root element. 0%
XML is platform independent. 0%
Which of the following tags are deprecated in accordance with XHTML DTD?
<code> 0%
<frameset> 0%
<fieldset> 0%
<xmp> 0%
Which of the following XHTML modules defines the elements used in tables?
Forms Module 0%
Tables Module 0%
Presentation Module 0%
Structure Module 0%
Which of the following XML attributes are correct?
<employee name=Jack>Engineer</employee> 0%
<employee name='Jack'>Engineer</employee> 0%
<employee name='Jack "Shelton" Ziegler' /> 0%
<employee name="Jack">Engineer</employee> 0%
Which of the following XML DOM object properties returns the root element of an element?
parentNode 0%
ownerDocument 0%
nodeName 0%
tagName 0%
Which of the following XML technologies are related to the formatting of XML documents?
XSD 0%
XSLT 0%
XForms 0%
XSL-FO 0%
Which of the following XPath Boolean functions is used to return the largest integer number that is not greater than the argument of that number?
ceiling 0%
floor 0%
round 0%
number 0%
Which of the following XPath expressions is used to select the parent of the current node?
Which of the following XPath functions is not a string function?
concat 0%
substring 0%
translate 0%
name 0%
Which of the following XSD code snippets automatically assigns a value to the shapes element when no value is present?
<xs:element name="shapes" type="xs:string" fixed="square"/> 0%
<xs:element name="shapes" type="xs:string" default="square"/> 0%
<xs:element name="shapes" type="xs:string" value="square"/> 0%
None of these 0%
Which of the following XSD Constraints is used to define the exact sequence of acceptable characters?
totalDigits 0%
fractionDigits 0%
enumeration 0%
pattern 0%
Which of the following XSD data types is supported by XForms?
xsd:duration 0%
xsd:ENTITY 0%
xsd:token 0%
xsd:NOTATION 0%
Which of the following XSL component is a language for transforming XML documents?
XSL-FO 0%
XSLT 0%
XLink 0%
XPath 0%