ITPEC IP October 2024 Question 7

In a markup language, with the purpose of displaying on a screen and printing, it is possible to directly embed not only the document content, but also the document structure and layout information, and the character font and size information. Which of the following is classified into such a markup language?

Explanation

HTML — the only markup language among the options: its tags embed a document's structure and layout, and font information, alongside the content.

A markup language marks up the text of a document with tags. In HTML, tags such as <h1>, <p> and <table> state the structure, and attributes or style sheets (CSS) set layout, fonts and sizes, so a browser can display or print the page as intended. XML is another markup language, but it is not offered here.

Answer (b)

Why not others:

  • •(a) C — a general-purpose programming language that describes processing, not a way of tagging document content
  • •(c) SQL — a database language for defining, querying and updating relational data
  • •(d) URL — the address notation that locates a resource on the Internet, not a language for writing documents

Key rule: Markup languages (HTML, XML) tag document content with its structure and presentation; programming languages describe processing, SQL manipulates databases, and a URL is only an address.

Algorithm and Programming · AI-written, may contain errors

This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official IP past-paper collection or Report an issue.