SCRIPTING-AND-PROGRAMMING-FOUNDATIONS practice question 1 of 25

Which characteristic distinguishes a markup language from other languages?

Full set: 137 questions
Answer options
A: It supports decomposing programs into custom types that often combine with other variable types into more concepts.
B: It allows variables to change type during execution.
C: It requires fewer variables and variable conversions than other languages because the types can change during execution.
D: It does not perform complex algorithms, but instead describes the content and formatting of webpages and other documents. Correct answer
Correct Answer:
D. It does not perform complex algorithms, but instead describes the content and formatting of webpages and other documents.
Explanation

A markup language, such as HTML or XML, is fundamentally different from a programming language. Its primary purpose is not to execute algorithms or perform logic but to annotate a document, defining the structure, layout, and meaning of its content. It uses tags to describe elements like headings, paragraphs, and images, rather than to declare variables or control program flow.

Why Incorrect

A. Decomposing programs into custom types is a feature of object-oriented programming languages like Java or C++, not markup languages.
B. Allowing variables to change type during execution is a characteristic of dynamically-typed programming languages like Python or JavaScript.
C. This statement also describes a feature of dynamically-typed programming languages, which is irrelevant to markup languages that lack variables and type systems.

References

1. MDN Web Docs. (2023). Getting started with HTML. "HTML (HyperText Markup Language) is not a programming language; it is a markup language used to tell your browser how to structure the webpages you visit."

2. World Wide Web Consortium (W3C). (2018). HTML 5.2, W3C Recommendation, Section 1.1. "HTML is the World Wide Web's core markup language." The document describes its role in structuring documents for the web.

Scroll to Top