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 web technology
  1. they begin with <!-- and end with -->

  2. they begin with # and end with none

  3. they begin with <? end with ?>

  4. they begin with -- and end with none

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

XML comments follow the same syntax as HTML and SGML comments. They start with . This is the standard way to add comments that XML parsers ignore during processing.

Multiple choice technology web technology
  1. A well-formed document should follow all the above rules

  2. A well-formed document may follow 1, 3, 4

  3. A well-formed document may follow 2, 4, 5, 6

  4. A well-formed document may follow 2, 3, 4 ,5

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

A well-formed XML document must satisfy ALL the listed rules: exactly one root element, all tags properly closed (including empty elements), proper nesting hierarchy, case-sensitive tag names, and quoted attribute values. Any violation makes the document malformed.

Multiple choice technology web technology
  1. Statement 2, 4 are correct

  2. Statement 1, 4 are correct

  3. Statement 1, 3 are correct

  4. Statement 1, 2, 3 ,4 are correct

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

All four statements are correct. DTDs provide a validation framework, are plain text files, outline elements/attributes, and are specified in the XML document's DOCTYPE declaration.

Multiple choice technology web technology
  1. SAX

  2. DOM

  3. JAXP

  4. JAXB

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

Multiple choice technology web technology
  1. Structure of an XML

  2. Symbolic Aggregate Approximation

  3. Simple API for XML

  4. Short Axis

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

Multiple choice technology web technology
  1. Document Object Model

  2. Distributed Object Management

  3. Domino Object Model

  4. Document Object Management

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

Multiple choice technology web technology
  1. eXtensible Stylesheet Language Transformations

  2. eXtented Stylesheet Language Transformations

  3. eXtensible Stylesheet Language

  4. None of the above

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

Multiple choice technology web technology
  1. An type of XML parser

  2. The industry leading XML editor

  3. A type of XML object modelling

  4. None of the above

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

Multiple choice technology web technology
  1. It a way to describe where the items are located in a xml files

  2. It is used to traverse the XML

  3. It is an mandated property to be set before parsing an xmlparsing

  4. None of the above

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

Multiple choice technology web technology
  1. Extended Markup Language

  2. EXtensible Markup Language

  3. Extension Markup Language

  4. Extensional Markup Language

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

Multiple choice technology web technology
  1. Above statement is completely wrong

  2. Above statement is partially correct

  3. Above statement is fully correct

  4. Can't say

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

Multiple choice technology web technology
  1. 1 & 2 is correct

  2. 2 & 3 is correct

  3. 4 & 5 is correct

  4. All are correct

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

Multiple choice technology web technology
  1. Only statement 1 is correct

  2. Only statement 2 is correct

  3. Both Statements are correct

  4. Both Statements are wrong

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

Multiple choice technology web technology
  1. An type of XML parser

  2. The industry leading XML editor

  3. A type of XML object modelling

  4. None of the above

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