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
-
Skins and CSS
-
CSS and Images
-
Skins and Images
-
Skins, CSS and Images
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.
-
eXtra Modern Link
-
eXtensible Markup Language
-
Example Markup Language
-
X-Markup Language
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.
-
<?-- -->
-
<!-- --!>
-
<!-- -->
-
</-- -- >
C
Correct answer
Explanation
XML comments use the syntax . This is inherited from SGML and HTML. The comment cannot contain nested comments and must not contain -- within the comment text except at the end.
-
<xml version="1.0" />
-
<?xml version="1.0"?>
-
<?xml version="1.0" />
-
None of the above
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.
-
it contains a root element
-
it contain an element
-
it contains one or more elements
-
must contain one or more elements and root element must contain all other elements
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.
-
<![CDATA[Text to be ignored]]>
-
<PCDATA>Text to be ignored</PCDATA>
-
<CDATA>Text to be ignored</CDATA>
-
<xml:CDATA[Text to be ignored]>
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.
-
XSLT is a subset of XSL
-
XSLT uses XPath
-
XSLT is not a W3C Recommendation
-
XSLT is written in XML
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.
-
<for-each> code... </for-each>
-
<xsl:for>code...</xsl:for>
-
<xsl:for-each>code...</xsl:for-each>
-
<xsl:foreach>code...</xsl:foreach>
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).
-
xml file
-
dtd file
-
xsl file
-
Both 1 and 2
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.
-
eXtra Modern Link
-
eXtensible Markup Language
-
Example Markup Language
-
X-Markup Language
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.
-
World Wide Web Consortium
-
SWIFT
-
Sun
-
SAP
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).
-
<schema>
-
<xsd>
-
<root>
-
<xml>
A
Correct answer
Explanation
The root element of an XSD document is , typically with namespace xmlns='http://www.w3.org/2001/XMLSchema'. It is not , , or . The element serves as the container for all type definitions, element declarations, and other schema components.
-
Document Generation
-
Code Generation
-
Both 1 and 2
-
None of the above
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.
-
<?xml version="1.0" encoding="utf-8">
-
<?xml version="1.0"/>
-
<xml version="1.0" encoding="utf-8">
-
<?xml version="1.0"?>
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.
-
Action not to be taken on the page defined in Page Context
-
Where you can use $Any, $None
-
Action will be taken on the properties of the page defined in Page Context
-
Only used in Declarative rules
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.