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
-
Above statement is completely wrong
-
Above statement is partially correct
-
Above statement is fully correct
-
Can't say
C
Correct answer
Explanation
XML was indeed designed to transport and store data, focusing on what data IS rather than how it looks. This is fundamental to XML's purpose - separating data content from presentation. The statement is fully correct.
-
Extended Markup Language
-
EXtensible Markup Language
-
Extension Markup Language
-
Extensional Markup Language
B
Correct answer
Explanation
XML stands for EXtensible Markup Language. The 'X' stands for 'Extensible' (not Extended, Extension, or Extensional), meaning users can define their own tags and document structures. This is the exact same question as 134392.
-
XML uses a description node to describe data
-
XML uses a DTD to describe the data
-
XML uses XSL to describe data
-
None of the above
B
Correct answer
Explanation
XML uses DTD (Document Type Definition) to describe and validate the structure and content of XML documents. DTDs define the legal elements, attributes, and their relationships, enabling parsers to verify that XML documents conform to the specified structure.
-
<xml version="1.0" />
-
<?xml version="1.0"?>
-
<?xml version="1.0" />
-
<!xml version="1.0" />
B
Correct answer
Explanation
The correct syntax for declaring the XML version is . It must start with without a closing slash.
-
All XML documents must have a DTD
-
All XML elements must be lower case
-
All XML elements must be properly closed
-
All the statements are true
C
Correct answer
Explanation
XML requires all elements to be properly closed with matching end tags (or self-closed for empty elements). This well-formedness rule is mandatory for valid XML. DTDs are optional, and XML is case-sensitive but doesn't mandate lowercase.
-
eXtensible Style Listing
-
eXpandable Style Language
-
eXtensible Stylesheet Language
-
eXpandable Stylesheet Language
C
Correct answer
Explanation
XSL stands for eXtensible Stylesheet Language. It is a family of recommendation languages used to transform and render XML documents.
-
XML elements must be properly nested
-
XML tags are case sensitive
-
XML documents must have a root tag
-
All the statements are true
D
Correct answer
Explanation
XML has strict syntax rules: elements must be properly nested (no crossing boundaries), tags are case-sensitive ( != ), and every well-formed XML document must have exactly one root element that contains all other elements. Since all individual statements A, B, and C are correct, option D is the right choice.
B
Correct answer
Explanation
The XML document is NOT well-formed because attribute values must be enclosed in quotes. The attribute 'age=29' should be written as 'age="29"' or "age='29'". All XML attributes require quoted values, making this document invalid.
-
<Note>
-
<h2>
-
<2Dollar>
-
All 3 names are incorrect
C
Correct answer
Explanation
XML element names cannot start with a number or a punctuation character. Therefore, <2Dollar> is invalid because it begins with the digit '2'.
-
<phone number>
-
<xmldocument>
-
<10paise>
-
All 3 names are incorrect
D
Correct answer
Explanation
XML element names cannot contain spaces (), cannot start with the letters 'xml' in any case combination (), and cannot start with a number (<10paise>). Thus, all three are incorrect.
-
<xml:CDATA[ Text to be ignored ]>
-
<![CDATA[ Text to be ignored ]]>
-
<PCDATA> Text to be ignored </PCDATA>
-
<CDATA> Text to be ignored </CDATA>
B
Correct answer
Explanation
To solve this question, the user needs to know about the different ways to indicate that certain sections of an XML document should be ignored by the parser.
Option A is incorrect because the syntax is not correct. The correct syntax for CDATA sections is
Option B is correct. is used to indicate that the enclosed text should be treated as character data and ignored by the parser.
Option C is incorrect because PCDATA is used to indicate that the enclosed text contains only character data and should be parsed as such. It does not indicate that the text should be ignored.
Option D is incorrect because the correct syntax for CDATA sections is , not ...
Therefore, the correct answer is:
The Answer is: B.
A
Correct answer
Explanation
SAX (Simple API for XML) is an event-based XML parser that reads XML sequentially and triggers events (startElement, endElement, characters) as it encounters tags. DOM builds a tree in memory, JAXP is an API, and JAXB is for XML-Java binding.
-
Above statement is completely wrong
-
Above statement is partially correct
-
Above statement is completely correct
-
Above statement is partially wrong
C
Correct answer
Explanation
XSLT documents are indeed well-formed XML that define transformation rules. They require: (1) an XML input document to transform, and (2) an XSLT processing engine to apply the transformation. The statement accurately describes XSLT fundamentals.
-
Statement 1, 3 are correct
-
Statement 2, 3 are correct
-
Statement 1, 2, 3 are correct
-
Statement 1, 2 are correct
C
Correct answer
Explanation
All three statements about CDATA are correct: (1) CDATA contains unparsed character data, (2) the string ']]>' cannot appear because it marks the end of CDATA, and (3) CDATA sections cannot be nested within each other.
-
Only 1 & 2 are created with XML
-
Only 2 & 3 are created with XML
-
Only 2 & 3 & 4 are created with XML
-
All are created with XML
D
Correct answer
Explanation
All the listed technologies (XHTML, WSDL, WAP/WML, RSS, RDF/OWL, SMIL) are built using XML syntax. XHTML reformulates HTML in XML, WSDL defines web services using XML, WML is WAP's markup language in XML, RSS feeds use XML, RDF/OWL are XML-based semantic web languages, and SMIL describes multimedia in XML format.