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
A
Correct answer
Explanation
SAX (Simple API for XML) is event-based and streams through the document without loading it entirely into memory. DOM builds a complete tree structure in memory, making it inefficient for huge files. SAX is optimal when you need to search or extract specific data from large XML files.
-
Structure of an XML
-
Symbolic Aggregate Approximation
-
Simple API for XML
-
Short Axis
C
Correct answer
Explanation
SAX stands for Simple API for XML. It's an event-driven API for parsing XML documents that doesn't build a tree structure in memory, making it memory-efficient for large files.
B
Correct answer
Explanation
DOM (Document Object Model) is tree-based - it parses the entire XML document and builds an in-memory tree structure representing the document hierarchy. SAX is event-based and streams through the document sequentially.
-
Document Object Model
-
Distributed Object Management
-
Domino Object Model
-
Document Object Management
A
Correct answer
Explanation
DOM stands for Document Object Model. It represents XML and HTML documents as a tree structure of objects that can be programmatically accessed and manipulated by programming languages.
-
eXtensible Stylesheet Language Transformations
-
eXtented Stylesheet Language Transformations
-
eXtensible Stylesheet Language
-
None of the above
A
Correct answer
Explanation
XSLT stands for eXtensible Stylesheet Language Transformations. It's designed to transform XML documents into other formats like HTML, plain text, or different XML structures by applying transformation rules defined in XSL stylesheets.
-
An type of XML parser
-
The industry leading XML editor
-
A type of XML object modelling
-
None of the above
B
Correct answer
Explanation
Altova XMLSpy is a commercial XML editor and development environment. It provides features for XML editing, validation, schema development, XSLT debugging, and other XML-related development tasks. It's not a parser itself, but an IDE for working with XML.
-
It a way to describe where the items are located in a xml files
-
It is used to traverse the XML
-
It is an mandated property to be set before parsing an xmlparsing
-
None of the above
A
Correct answer
Explanation
XPath is a query language for selecting nodes from an XML document. It uses path expressions to navigate through elements and attributes in an XML document tree, allowing you to specify the location of items within the XML structure.
-
Extended Markup Language
-
EXtensible Markup Language
-
Extension Markup Language
-
Extensional Markup Language
B
Correct answer
Explanation
XML stands for EXtensible Markup Language. The key characteristic is 'extensible' - users can define their own tags and document structures, unlike HTML which has a fixed set of predefined tags.
-
Above statement is completely wrong
-
Above statement is partially correct
-
Above statement is fully correct
-
Can't say
C
Correct answer
Explanation
XML was specifically designed to transport and store data with a focus on what the data is (semantics and structure), separate from how it's displayed (presentation). This separation is a core design principle of XML, making it suitable for data exchange between systems.
-
1 & 2 is correct
-
2 & 3 is correct
-
4 & 5 is correct
-
All are correct
D
Correct answer
Explanation
All five statements are correct. XML and HTML have different design goals: XML describes data structure and meaning (what data is), while HTML displays data with focus on presentation (how data looks). They are complementary, not replacements.
-
Only statement 1 is correct
-
Only statement 2 is correct
-
Both Statements are correct
-
Both Statements are wrong
B
Correct answer
Explanation
XML allows most special characters in content, but five characters have special meaning in XML syntax and must be escaped as entity references: < (as <), > (as >), & (as &), ' (as '), and " (as ").
-
An type of XML parser
-
The industry leading XML editor
-
A type of XML object modelling
-
None of the above
B
Correct answer
Explanation
Altova XMLSpy is a commercial integrated development environment for XML, providing editing, validation, and debugging tools. It's widely recognized as a leading XML editor in the industry.
-
<css>
-
<script>
-
<style>
-
<styles>
C
Correct answer
Explanation
The tag is used to define an internal style sheet within an HTML document. It is placed in the <head> section and contains CSS rules between opening and closing tags. Option A (<css>) doesn't exist. Option B (<script>) is for JavaScript. Option D (<styles>) is incorrect.
B
Correct answer
Explanation
The style attribute is used to define inline CSS styles directly on HTML elements. For example:
. Option A (class) is for class names, not inline styles. Option C (styles) is not a valid attribute. Option D (font) is not the correct attribute for general styling.
-
body {color: black}
-
{body:color=black(body}
-
{body;color:black}
-
body:color=black
A
Correct answer
Explanation
CSS syntax uses a selector followed by curly braces containing property:value pairs. The correct format is: selector { property: value; }. Option A (body {color: black}) correctly shows this syntax. Options B and C have incorrect bracket placement. Option D uses an equals sign instead of curly braces and colons, which is JavaScript object syntax, not CSS.