Objective
1. Which of the following best describes the primary role of HTML in modern
web development?
A) To define the layout and visual appearance of a webpage
B) To describe the dynamic behaviors and actions of a webpage
C) To define the structure and content of a webpage
D) To manage the server-side logic and database interactions
Correct Answer: To define the structure and content of a webpage
Rationale: HTML (Hypertext Markup Language) is used to define the structure
and content of a webpage. CSS specifies layout and visual appearance, and
JavaScript describes dynamic behaviors. HTML provides the semantic
framework that other technologies build upon.
2. What is the primary purpose of the World Wide Web Consortium (W3C) in
relation to web development?
A) To develop web browsers and server software
B) To control a number of web standards, including HTML
C) To host websites and provide domain registration services
D) To design visual graphics and animations for websites
Correct Answer: To control a number of web standards, including HTML
Rationale: The W3C is an international community that develops web
standards to ensure the long-term growth of the Web. It controls standards
including HTML and works toward standardization to address webpage and
browser incompatibility.
,3. In 2019, the W3C relinquished HTML publishing to which organization?
A) Internet Engineering Task Force (IETF)
B) Web Hypertext Application Technology Working Group (WHATWG)
C) International Organization for Standardization (ISO)
D) World Wide Web Foundation
Correct Answer: Web Hypertext Application Technology Working Group
(WHATWG)
Rationale: In 2019, the W3C relinquished HTML publishing to the WHATWG.
The WHATWG develops a variety of web standards, with members including
major browser vendors, and produces the HTML Living Standard.
4. The HTML Living Standard, produced by WHATWG, is best described as:
A) A static, versioned standard released every five years
B) A continually evolving standard without version numbers
C) A proprietary standard controlled by a single browser vendor
D) A standard that only applies to mobile web development
Correct Answer: A continually evolving standard without version numbers
Rationale: The WHATWG produces the HTML Living Standard, which is a
continually evolving standard without version numbers that replaced HTML5.
This approach allows the standard to evolve continuously with web
technologies.
5. Which of the following correctly describes the relationship between HTML,
CSS, and JavaScript in modern webpages?
,A) HTML defines structure, CSS defines layout and appearance, and
JavaScript defines dynamic behaviors
B) HTML defines layout, CSS defines structure, and JavaScript defines content
C) HTML defines dynamic behaviors, CSS defines structure, and JavaScript
defines appearance
D) All three technologies perform identical functions
Correct Answer: HTML defines structure, CSS defines layout and appearance,
and JavaScript defines dynamic behaviors
Rationale: In modern web development, HTML defines the structure and
content, CSS specifies the layout and visible appearance, and JavaScript
describes the dynamic behaviors and actions. This separation of concerns is
a fundamental principle of web development.
6. Which of the following is a correct statement about the `<b>` element in
HTML?
A) It was originally used to control document structure and is now a semantic
element
B) It was originally used to control appearance only and is now considered
presentational
C) It is a semantic element that conveys importance
D) It is used to define the most important heading on a page
Correct Answer: It was originally used to control appearance only and is now
considered presentational
Rationale: The `<b>` element was originally used to control appearance
only (bold text). While it still visually bolds text, it is considered
presentational rather than semantic. For semantic importance, the
`<strong>` element should be used.
, 7. Which of the following is a semantic HTML element that indicates
important content?
A) `<b>`
B) `<i>`
C) `<strong>`
D) `<u>`
Correct Answer: `<strong>`
Rationale: The `<strong>` element is a semantic HTML tag that indicates
content of strong importance. Unlike `<b>`, which is purely presentational,
`<strong>` conveys meaning about the content's significance to both
browsers and assistive technologies.
8. What is the purpose of the `<script>` element in an HTML document?
A) To define the document's character encoding
B) To include JavaScript code that runs in the browser
C) To link an external CSS stylesheet
D) To define the document's metadata
Correct Answer: To include JavaScript code that runs in the browser
Rationale: JavaScript code is placed in a `<script>` element, which can be
included in the HTML file's `<head>` or `<body>` sections. This element
allows developers to add dynamic behaviors and interactivity to webpages.
9. What is the function of a Domain Name System (DNS) server?
A) To store website content and serve it to visitors