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

Multiple choice technology web technology
  1. Skins and CSS

  2. CSS and Images

  3. Skins and Images

  4. Skins, CSS and Images

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

Themes in ASP.NET are composite units that include skins (control property definitions), CSS files, and images. All three components work together to provide a complete visual styling system that goes beyond what CSS alone can offer.

Multiple choice technology programming languages
  1. eXtra Modern Link

  2. eXtensible Markup Language

  3. Example Markup Language

  4. X-Markup Language

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

XML stands for eXtensible Markup Language. It was designed to be both human-readable and machine-readable, allowing users to define their own tags and document structure. The 'extensible' refers to the ability to create custom tags.

Multiple choice technology programming languages
  1. <xml version="1.0" />

  2. <?xml version="1.0"?>

  3. <?xml version="1.0" />

  4. None of the above

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

The XML declaration is . It's a processing instruction that must be at the very beginning of the document. The version is the only required attribute, and it uses the special and ?> delimiters characteristic of processing instructions.

Multiple choice technology programming languages
  1. it contains a root element

  2. it contain an element

  3. it contains one or more elements

  4. must contain one or more elements and root element must contain all other elements

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

A well-formed XML document must have exactly one root element that contains all other elements. This hierarchical structure ensures the document can be properly parsed. The root element acts as the container for the entire document content.

Multiple choice technology programming languages
  1. <![CDATA[Text to be ignored]]>

  2. <PCDATA>Text to be ignored</PCDATA>

  3. <CDATA>Text to be ignored</CDATA>

  4. <xml:CDATA[Text to be ignored]>

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

CDATA sections are delimited by and tell the XML parser to treat the enclosed content as literal character data, not markup. This is useful for including code, scripts, or text containing special characters like < and > without escaping them.

Multiple choice technology programming languages
  1. XSLT is a subset of XSL

  2. XSLT uses XPath

  3. XSLT is not a W3C Recommendation

  4. XSLT is written in XML

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

XSLT (Extensible Stylesheet Language Transformations) IS a W3C Recommendation. It has been since 1999. The statement claiming it's not a W3C Recommendation is false. XSLT is indeed a subset of XSL, uses XPath for navigation, and is written in XML syntax.

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

  2. <xsl:for>code...</xsl:for>

  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 uses to iterate over node sets in an XML document. The syntax requires the xsl namespace prefix. Option A lacks the namespace prefix, while options B and D use incorrect element names (xsl:for and xsl:foreach are not valid XSLT elements).

Multiple choice technology programming languages
  1. xml file

  2. dtd file

  3. xsl file

  4. Both 1 and 2

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

Parameter entities are a feature of DTD (Document Type Definition) syntax and can only appear within DTD files. They are defined with % and used for modular DTD construction. XML files themselves cannot contain parameter entity declarations - only general entities. XSL files use a different syntax altogether.

Multiple choice technology programming languages
  1. eXtra Modern Link

  2. eXtensible Markup Language

  3. Example Markup Language

  4. X-Markup Language

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

XML stands for eXtensible Markup Language. It was designed to be both human-readable and machine-readable, allowing users to define their own tags (hence 'extensible'). The other options are made-up acronyms that have never been associated with XML.

Multiple choice technology programming languages
  1. World Wide Web Consortium

  2. SWIFT

  3. Sun

  4. SAP

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

XML Schema (XSD) was developed and is maintained by the World Wide Web Consortium (W3C), the same organization that standardizes XML, HTML, and other web technologies. It is not developed by SWIFT (a financial messaging network), Sun (now Oracle, a tech company), or SAP (enterprise software).

Multiple choice technology programming languages
  1. Document Generation

  2. Code Generation

  3. Both 1 and 2

  4. None of the above

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

XML Schema serves two key purposes: document generation (creating valid XML instances from the schema definition) and code generation (generating programming language classes or data bindings from the schema). Tools use schemas to produce XML documents or generate code in languages like Java, C#, or Python that conform to the schema structure.

Multiple choice technology programming languages
  1. <?xml version="1.0" encoding="utf-8">

  2. <?xml version="1.0"/>

  3. <xml version="1.0" encoding="utf-8">

  4. <?xml version="1.0"?>

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

The correct XML declaration is . This is the standard first line in any XML document, including XML Schema documents. Option A is missing the closing question mark, Option B has incorrect syntax with encoding attribute malformed, and Option C uses instead of the processing instruction syntax xml.

Multiple choice technology platforms and products
  1. Action not to be taken on the page defined in Page Context

  2. Where you can use $Any, $None
  3. Action will be taken on the properties of the page defined in Page Context

  4. Only used in Declarative rules

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

Page Context defines a specific page scope within the clipboard structure where rule actions will be executed. It allows rules to target properties on a particular page rather than operating broadly. The $Any and $None keywords are related but serve different purposes in PEGA expression syntax.