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. An XML element that contains other XML elements

  2. An XML element that contains parsed character data

  3. An XML element thats used to define data for use only on a PC

  4. None of the above

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

PCDATA stands for Parsed Character Data - it's text content that will be parsed by the XML parser (unlike CDATA which is not parsed). PCDATA is the default content type for elements containing text and child elements.

Multiple choice technology web technology
  1. True

  2. False

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

The statement is false. XML uses flexible, variable-length text markup rather than fixed-length fields. This flexibility is a key advantage over traditional fixed-length database systems, allowing hierarchical and nested data structures.

Multiple choice technology web technology
  1. HTML

  2. SGML

  3. MGL

  4. None of the above

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

XML is indeed a subset of SGML (Standard Generalized Markup Language), developed as a simpler, more streamlined version. HTML is also an SGML application, not the parent of XML. 'MGL' is not a standard markup language.

Multiple choice technology web technology
  1. Create the CDATA section of an XML document

  2. Create an XML document

  3. Identify the parser that is used to parse the XML document

  4. Identify the DTD for an XML document

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

The DOCTYPE declaration appears at the beginning of an XML document and specifies which DTD (Document Type Definition) should be used to validate the document's structure. It links the XML document to its governing schema.

Multiple choice technology web technology
  1. The child element is required.

  2. The name of the child element is unknown.

  3. One occurrence of the child element is required.

  4. The child element is optional

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

In DTD element declarations, a question mark (?) following a child element name means that element is optional (zero or one occurrence). For example, means title is optional while author is required.

Multiple choice technology web technology
  1. XML Schema

  2. DTD

  3. PCDATA

  4. XSD

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

XML Schema (XSD - XML Schema Definition) is the W3C standard for defining complex types in XML. It provides much richer type definitions than DTD, including data types, inheritance, and complex element structures. Note: XSD IS XML Schema, but A is the more specific answer about the concept.

Multiple choice technology web technology
  1. Identify ownership of the XML schema

  2. Identify ownership of the XML document

  3. Identify that this is an XML schema

  4. Identify the XML schema specifications used in the XML schema

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

The namespace declaration xmlns:xs="http://www.w3.org/2001/XMLSchema" identifies that the document is using the official W3C XML Schema specifications. The 'xs' prefix becomes the namespace qualifier for all XML Schema elements (like xs:element, xs:complexType).

Multiple choice technology web technology
  1. Specifies the sequence in which elements must appear in an XML schema

  2. Specifies the sequence in which elements must appear in an XML document

  3. Specifies the sequence in which attributes must appear in an XML document

  4. Specifies the sequence in which attributes must appear in an XML schema

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

The xs:sequence tag in XML Schema defines that child elements must appear in a specific order in the XML document instance. For example, xs:sequence containing xs:element name="first" then xs:element name="last" means the XML document must have first element before last element.

Multiple choice technology web technology
  1. Identify the owner of the XML document

  2. Identify the owner of the XML schema

  3. Identify the location of the XML schema

  4. Identify the location of the XML document

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

The xsi:schemaLocation attribute is specifically designed to identify the location of an XML schema (XSD) that defines the structure for the XML document. It typically appears as xsi:schemaLocation="namespaceURI schemaLocation" where schemaLocation points to the actual schema file.