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. Example Markup Language

  2. X-Markup Language

  3. eXtra Modern Link

  4. eXtensible Markup Language

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

XML stands for eXtensible Markup Language, where the 'X' represents 'eXtensible' indicating that users can define their own custom tags and markup structures. This extensibility is what distinguishes XML from fixed markup languages like HTML. Options A, B, and C are made-up expansions.

Multiple choice technology web technology
  1. In XML,both the tag semantics and the tag set are fixed

  2. XML is a meta-language for describing markup languages

  3. XML is a restricted form of SGML

  4. All the above

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

XML is a meta-language for defining markup languages (option B), meaning it provides rules for creating custom tag sets rather than having fixed tags. XML is indeed a restricted form of SGML (option C), designed to be simpler while retaining SGML's extensibility. Option A is false because XML's tag semantics and tag sets are not fixed.

Multiple choice technology web technology
  1. XML elements must have a closing tag

  2. XML tags must be lower case

  3. XML elements must be properly nested

  4. XML attribute values must be quoted

Reveal answer Fill a bubble to check yourself
A,C,D Correct answer
Explanation

XML requires all elements to have closing tags (A) and be properly nested (C). Attribute values must be quoted (D). However, XML tags are case-sensitive but not required to be lowercase (B is false) - 'Name' and 'name' are different tags, but uppercase is valid. These rules ensure well-formed XML documents.

Multiple choice technology web technology
  1. True

  2. False

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

XML comments are not part of the document's textual content - they are metadata. XML processors are NOT required to pass comments to applications, and applications typically cannot access them through standard DOM/SAX parsing APIs. This distinguishes comments from actual document data.

Multiple choice technology web technology
  1. <?xml version="1.0" />

  2. <?xml version="1.0"?>

  3. <xml version="1.0" />

  4. None of the above

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

The XML version declaration must use the processing instruction syntax with both opening and closing question marks: . Option A incorrectly closes with />, which is only used for empty elements. Option C omits the required question marks. The declaration must appear at the very start of an XML document.

Multiple choice technology web technology
  1. <7lastname>

  2. <lastname>

  3. <last name>

  4. <last_name>

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

XML element names must follow strict naming rules. They cannot start with a number (7lastname is invalid) and cannot contain spaces (last name is invalid). Valid names like lastname and last_name follow the rules: starting with a letter or underscore, and containing only letters, digits, hyphens, underscores, or periods.

Multiple choice technology web technology
  1. Names cannot start with a number or punctuation character

  2. Names cannot start with the letters xml (or XML, or Xml, etc)

  3. Names can contain spaces

  4. All the above

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

XML element names must follow specific rules: they cannot start with numbers or punctuation characters (statement A is true), and they cannot start with 'xml' in any case combination as this is reserved (statement B is true). Statement C is false because spaces are not allowed in XML names. Therefore, 'All the above' (D) is incorrect.

Multiple choice technology enterprise content management
  1. True

  2. False

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

Directly editing webtop/app.xml is not the recommended or correct way to configure elements. The framework likely provides specific configuration tools, UI interfaces, or other configuration mechanisms that should be used instead of manual file edits to maintain consistency and avoid breaking the application.

Multiple choice technology web technology
  1. Names cannot start with a number or punctuation character

  2. Names cannot start with the letters xml (or XML, or Xml, etc)

  3. Names can contain spaces

  4. Non-English letters like éòá are perfectly legal in XML

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

XML names cannot contain spaces - this violates XML naming rules. Spaces are not allowed in element or attribute names, though they are valid in content values. Names must start with a letter or underscore, and can contain letters, digits, hyphens, underscores, and periods.

Multiple choice technology web technology
  1. Example Markup Language

  2. X-Markup Language

  3. eXtra Modern Link

  4. eXtensible Markup Language

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

XML stands for eXtensible Markup Language. It was designed to be a flexible, extensible markup language unlike HTML which has fixed tags. The name reflects its core design philosophy.

Multiple choice technology web technology
  1. <?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>

  2. <stylesheet type="text/xsl" href="mystyle.xsl" />

  3. <link type="text/xsl" href="mystyle.xsl" />

  4. None of the above

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

XML stylesheets are referenced using a processing instruction with the format . This is the standard way to link an XSL stylesheet to an XML document for transformation or formatting.

Multiple choice technology programming languages
  1. In Application tag

  2. In Script tag

  3. We can use either a or b

  4. None of the above

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

MXML files are included within the mx:Application tag or referenced as components. The Script tag is for ActionScript code only, not for including MXML files.