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
-
W3C Recommendation
-
Cascading Style Sheets
-
uses XPath to navigate in XML documents
-
transforms an XML document into another XML document
D
Correct answer
Explanation
XSLT stands for EXtensible Stylesheet Language Transformations, and its primary purpose is to transform an XML document into another XML document or format.
-
TRUE
-
FALSE
-
Not always true
-
Not always false
A
Correct answer
Explanation
XSLT stylesheets can contain multiple template rules, each matching different nodes or patterns in the source XML document. The language explicitly supports having any number of elements within a single stylesheet. The phrasing 'having number of templates' appears to indicate this multiplicity capability.
-
<template>
-
<xsl:template>
-
<xsd:template>
-
<xml:template>
B
Correct answer
Explanation
XSLT uses XML namespaces to distinguish its elements. Templates are defined using the element, where 'xsl' is the namespace prefix bound to the XSLT namespace URI (http://www.w3.org/1999/XSL/Transform). The namespace prefix can vary, but the standard convention is 'xsl'.
-
version 1.0.2
-
version 1.0.0
-
version 1.0.3
-
version 2.0.0
A
Correct answer
Explanation
Firefox version 1.0.2, released in 2005, was the first version to include support for XML, XSLT, and CSS working together. Earlier versions (1.0 and 1.0.1) had limited XML support. The 1.0.2 release marked a significant step in Firefox's standards compliance.
-
Version 7
-
Version 4
-
Version 5
-
Version 6
D
Correct answer
Explanation
Internet Explorer 6, released in 2001, was the first version of IE to support XML, Namespaces, CSS, XSLT, and XPath together. Earlier versions (4 and 5) had very limited XML support. IE6's MSXML3 parser provided comprehensive XML standards support.
-
<for-each>CODE.....</for-each>
-
<xsl:for-each>CODE.....
-
<xsl:for-each>CODE.....</xsl:for-each>
-
<xsl:foreach>CODE.....</xsl:foreach>
C
Correct answer
Explanation
XSLT requires proper XML syntax including closing tags. The element must have both opening and closing tags: ... . Option B shows only the opening tag without closing, making it syntactically incomplete.
-
=,!=,<,&
-
=,#,<,>
-
^,!=,<,>
-
=,!=,<,>
D
Correct answer
Explanation
XSLT supports standard comparison operators for filtering node sets and values. The operators =, !=, <, and > are the standard comparison filters used in XPath expressions within XSLT. Distractors contain invalid characters like # or ^ which are not standard XSLT comparison operators.
-
basic functionality
-
advanced functionality
-
no functionality
-
None of these
B
Correct answer
Explanation
XML editors with advanced functionality provide features like syntax highlighting, validation against schemas, auto-completion of tags, entity management, and visual tree views. These capabilities significantly ease the editing process compared to basic text editors which lack XML-aware features.
B
Correct answer
Explanation
To answer this question, the user needs to know about the different markup languages and their uses.
The correct answer is:
B. XML
The schema is an XML-based alternative. XML stands for Extensible Markup Language, and it is used to define a set of rules for encoding documents in a format that is both human-readable and machine-readable. XML is widely used in web development and data exchange between applications because it provides a flexible way to create custom tags and attributes that enable developers to describe the content of documents in a structured way.
Option A (XHTML) is incorrect because XHTML is a markup language used for creating web pages and is a stricter version of HTML.
Option C (XSL) is incorrect because XSL (Extensible Stylesheet Language) is also an XML-based language, but it is used to create stylesheets to transform XML documents into other formats such as HTML or PDF.
Option D (XSLT) is incorrect because XSLT (Extensible Stylesheet Language Transformations) is a language used for transforming XML documents into other formats. It is often used in conjunction with XSL to create more complex transformations.
Therefore, the correct answer is B. XML.
-
document
-
file
-
page
-
none of these
A
Correct answer
Explanation
An XML Schema (XSD) defines the structure, content, and data types of XML documents. It specifies what elements are allowed, their order, attributes, and constraints. The schema validates that an XML document conforms to the defined structure.
-
XSL Schema Definition
-
XSLT Schema Definition
-
XML Schema Definition
-
XHTML Schema Definition
C
Correct answer
Explanation
XSD stands for XML Schema Definition, which is the W3C standard language for defining XML document structures. It replaced DTDs as the preferred schema language. XSL and XSLT are for transformation, not schema definition.
B
Correct answer
Explanation
XML Schemas (XSD) were developed by the W3C to succeed DTDs (Document Type Definitions) as the standard for defining XML document constraints. XSD provides richer data type support, namespace awareness, and XML syntax compared to DTDs.
-
- May 2001
-
- May 2001
-
- May 2000
-
- May 2002
A
Correct answer
Explanation
XML Schema became a W3C Recommendation on May 2, 2001. This marked the standardization of XML Schema Definition (XSD) language for defining the structure, content, and semantics of XML documents. The date 02. May 2001 is the correct historical milestone.
-
IMAGE
-
NUMBER
-
TEXT
-
ALL OF THE ABOVE
C
Correct answer
Explanation
In XML Schema (XSD), a simple element is an element that can contain only text. It cannot contain other elements, attributes, or be empty. The text can be of various simple types (like string, integer, date), but it is fundamentally text.