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. 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 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.

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 '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.

Multiple choice technology web 2.0
  1. XML uses a description node to describe data

  2. XML uses a DTD to describe the data

  3. XML uses XSL to describe data

  4. None of the above

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

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.