Computer Knowledge
Markup and Web Languages
1,492 Questions
Test your understanding of HTML tags, XML structures, and web page creation technologies. The questions cover elements like CSS styling, parsing documents, and defining web attributes. This section is essential for candidates appearing for computer proficiency tests in various competitive exams.
HTML tags and attributesXML document parsingCSS styling levelsWeb page creation basicsBrowser compatibility
Markup and Web Languages Questions
-
XSD is nothing but an XML with detailed specifications
-
XSD is a XML Schema file
-
XSD is derived from the XML
-
None of the above
B
Correct answer
Explanation
XSD (XML Schema Definition) is the standard XML Schema file format that defines the structure, elements, and attributes of valid XML documents. While derived from XML specifications, XSD is specifically the schema definition file itself.
-
To view XSD
-
To generate XML
-
To Validate XML
-
All of the above
D
Correct answer
Explanation
XML Spy is a comprehensive XML development tool that supports viewing XSD schemas, generating XML instance documents from schemas, and validating XML against schemas. All listed functions are core capabilities of the tool.
-
XSD is nothing but an XML with detailed specifications
-
XSD is a XML Schema file
-
XSD is derived from the XML
-
None of the above
B
Correct answer
Explanation
XSD (XML Schema Definition) is an XML Schema file that defines the structure, elements, and data types of XML documents. It's not just an XML with specifications (A), it's a schema standard, and it's not derived from XML - it defines XML.
-
To view XSD
-
To generate XML
-
To Validate XML
-
All of the above
D
Correct answer
Explanation
XML Spy is an integrated development environment for XML that supports viewing XSD files, generating XML from schemas, and validating XML against schemas. All these functions are core features of the tool.
-
XQuery
-
XPath
-
XPointer
-
XLink
B
Correct answer
Explanation
XPath is a major element of the W3C XSLT standard, as it is used to navigate through elements and attributes in an XML document. XQuery, XPointer, and XLink are separate specifications.
-
XML Document
-
XHTML Document
-
XSL Document
-
XSD Document
A
Correct answer
Explanation
XPath is designed to navigate and query elements and attributes within XML documents. It provides a syntax for addressing specific parts of an XML document, making it essential for XSLT transformations and XML data manipulation.
-
different pages
-
none of these
-
files
-
elements and attributes
D
Correct answer
Explanation
XPath enables navigation through the hierarchical structure of XML elements and attributes. It uses path expressions to select nodes from an XML document, allowing precise targeting of specific elements or attributes within the tree structure.
-
PROGRAM
-
FUNCTION
-
PROCEDURE
-
SYNTAX
D
Correct answer
Explanation
XPath provides a syntax for addressing and locating nodes within XML documents. It defines a path notation that identifies specific parts of an XML structure, serving as a query language rather than a program, function, or procedure.
-
PROGRAMS
-
FUNCTIONS
-
VARIABLES
-
COMMANDS
B
Correct answer
Explanation
XPath includes a comprehensive library of built-in functions for string operations, numeric calculations, boolean logic, and node manipulation. These functions enable complex queries and transformations within XPath expressions without requiring external programming.
-
100 built-in functions
-
200 built-in functions
-
more than 100 built-in functions
-
more than 200 built-in functions
-
XQuery 1.0 and XPath 1.0
-
XQuery 2.0 and XPath 2.0
-
XQuery 2.0 and XPath 1.0
-
XQuery 1.0 and XPath 2.0
D
Correct answer
Explanation
XQuery 1.0 and XPath 2.0 were developed collaboratively and share the XQuery 1.0/XPath 2.0 data model (XDM). They support the same function library and operators, making them compatible and allowing XPath expressions to be used within XQuery queries.
-
- November 1999
-
- November 1998
-
- November 1999
-
- November 1998
C
Correct answer
Explanation
XPath 1.0 was officially published as a W3C Recommendation on November 16, 1999. This date marks the standardization of XPath as the primary language for navigating XML documents.
-
following
-
followed
-
ancestor
-
attribute
B
Correct answer
Explanation
XPath defines 13 axes including ancestor, attribute, following, and following-sibling. 'Followed' is not a valid axis name - the correct axis for selecting nodes after the current node in document order is 'following' or 'following-sibling'.
C
Correct answer
Explanation
To solve this question, the user needs to know the basics of XPath and its path expressions.
Now, let's go through each option and explain why it is right or wrong:
A. //: This is a valid XPath path expression which selects all the nodes with the matching name, regardless of their position in the document.
B. @: This is a valid XPath path expression which selects attributes of the selected element.
C. $: This is not a valid XPath path expression. XPath doesn't use $ to select nodes or attributes.
D. /: This is a valid XPath path expression which selects the root node of the document or the current node if used at the beginning of the expression.
Therefore, the answer is:
The Answer is: C
B
Correct answer
Explanation
SOAP is an XML-based protocol for exchanging information in web services. Messages are formatted as XML envelopes, making SOAP platform-independent and readable by humans while maintaining structured, validated communication between systems.