SCRIPTING-AND-PROGRAMMING-FOUNDATIONS practice question 1 of 25
Which characteristic distinguishes a markup language from other languages?
Full set: 137 questionsA 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.
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.
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.
Keep practicing
Take the free SCRIPTING-AND-PROGRAMMING-FOUNDATIONS practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other SCRIPTING-AND-PROGRAMMING-FOUNDATIONS practice questions
- Question 2A program calculates the average miles per gallon given miles traveled and gas consumed H…
- Question 5Which characteristic specifically describes an object-oriented language?
- Question 6Which is one characteristic of an object-oriented language that is not a characteristic o…
- Question 7Which operation should be used to check if the difference of two values is greater than 1?
- Question 9A program allows the user to play a game. At the end of each game, the program asks the u…
- Question 10Which phase of an agile application would create a function that calculates shipping cost…
