Computer Knowledge

Markup and Web Languages

1,701 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

Multiple choice technology programming languages
  1. TRUE

  2. FALSE

  3. Not always true

  4. Not always false

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. version 1.0.2

  2. version 1.0.0

  3. version 1.0.3

  4. version 2.0.0

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. <for-each>CODE.....</for-each>

  2. <xsl:for-each>CODE.....

  3. <xsl:for-each>CODE.....</xsl:for-each>

  4. <xsl:foreach>CODE.....</xsl:foreach>

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. =,!=,<,&

  2. =,#,<,>

  3. ^,!=,<,>

  4. =,!=,<,>

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

XSLT supports standard comparison operators for filtering node sets and values. The operators =, !=, &lt;, and &gt; are the standard comparison filters used in XPath expressions within XSLT. Distractors contain invalid characters like # or ^ which are not standard XSLT comparison operators.

Multiple choice technology programming languages
  1. basic functionality

  2. advanced functionality

  3. no functionality

  4. None of these

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. XHTML

  2. XML

  3. XSL

  4. XSLT

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. XSL Schema Definition

  2. XSLT Schema Definition

  3. XML Schema Definition

  4. XHTML Schema Definition

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. XML

  2. DTD

  3. XSL

  4. XSLT

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
    1. May 2001
    1. May 2001
    1. May 2000
    1. May 2002
Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. cards

  2. decks

  3. facets

  4. faces

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In XML Schema terminology, restrictions on XML elements are called facets. Facets define constraints on data types, such as length, patterns, min/max values, etc. They allow fine-grained control over what values are acceptable for elements and attributes.

Multiple choice technology web technology
  1. Directives , Declarations , Scriptlets , Comments , Expressions

  2. Directives , Scopes , Scriptlets , Comments , Expressions

  3. Directives , Declarations , Scriptlets , Comments , Objects

  4. Directives , Tags , Scriptlets , Comments , Expressions

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

JSP 1.0 specification defines five main tag types: Directives (page, include, taglib), Declarations (declare variables/methods), Scriptlets (Java code blocks), Comments (hidden notes), and Expressions (output values). These form the foundation of JSP programming.