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 2.0
  1. All XML documents must have a DTD

  2. All XML elements must be lower case

  3. All XML elements must be properly closed

  4. All the statements are true

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

Multiple choice technology web 2.0
  1. eXtensible Style Listing

  2. eXpandable Style Language

  3. eXtensible Stylesheet Language

  4. eXpandable Stylesheet Language

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

XSL stands for eXtensible Stylesheet Language. It is a family of recommendation languages used to transform and render XML documents.

Multiple choice technology web 2.0
  1. XML elements must be properly nested

  2. XML tags are case sensitive

  3. XML documents must have a root tag

  4. All the statements are true

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

Multiple choice technology web 2.0
  1. <phone number>

  2. <xmldocument>

  3. <10paise>

  4. All 3 names are incorrect

Reveal answer Fill a bubble to check yourself
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 (&lt;10paise&gt;). Thus, all three are incorrect.

Multiple choice technology web 2.0
  1. <xml:CDATA[ Text to be ignored ]>

  2. <![CDATA[ Text to be ignored ]]>

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

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

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

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

  2. Above statement is partially correct

  3. Above statement is completely correct

  4. Above statement is partially wrong

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

Multiple choice technology web technology
  1. Statement 1, 3 are correct

  2. Statement 2, 3 are correct

  3. Statement 1, 2, 3 are correct

  4. Statement 1, 2 are correct

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

Multiple choice technology web technology
  1. Only 1 & 2 are created with XML

  2. Only 2 & 3 are created with XML

  3. Only 2 & 3 & 4 are created with XML

  4. All are created with XML

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

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.