EXAM QUESTIONS AND CORRECT ANSWERS
(VERIFIED ANSWERS) Q&A 2026 INSTANT
DOWNLOAD PDF
1. Which HTML tag is used to create the largest heading on a
webpage?
A. <heading>
B. <h6>
C. <h1>
D. <head>
Rationale: HTML provides heading tags from h1 to h6, with h1
being the largest and most important.
Correct Answer: C. <h1>
2. Which CSS property changes the text color of an element?
A. font-color
B. text-color
C. color
D. foreground
Rationale: The color property specifies the color of text.
Correct Answer: C. color
,3. What does DOM stand for?
A. Data Object Management
B. Document Object Model
C. Dynamic Object Mapping
D. Document Oriented Method
Rationale: DOM represents the structure of an HTML
document as objects.
Correct Answer: B. Document Object Model
4. Which JavaScript keyword declares a block-scoped
variable?
A. var
B. let
C. define
D. new
Rationale: let creates variables limited to the block in which
they are declared.
Correct Answer: B. let
5. Which HTML element is used to create a hyperlink?
A. <link>
B. <href>
,C. <url>
D. <a>
Rationale: The anchor tag creates hyperlinks.
Correct Answer: D. <a>
6. Which CSS property controls the space outside an element's
border?
A. padding
B. margin
C. spacing
D. border-spacing
Rationale: Margin defines the outer space around an element.
Correct Answer: B. margin
7. What is the purpose of the HTML alt attribute in images?
A. Changes image color
B. Provides alternative text
C. Compresses images
D. Links images
Rationale: Alternative text improves accessibility and displays
when images fail to load.
Correct Answer: B. Provides alternative text
, 8. Which JavaScript method writes a message to the browser
console?
A. print()
B. write()
C. console.log()
D. output()
Rationale: console.log() is commonly used for debugging.
Correct Answer: C. console.log()
9. What does CSS stand for?
A. Computer Style Sheets
B. Creative Style Sheets
C. Cascading Style Sheets
D. Colorful Style Sheets
Rationale: CSS stands for Cascading Style Sheets.
Correct Answer: C. Cascading Style Sheets
10. Which HTTP method is commonly used to retrieve data
from a server?
A. GET
B. POST
C. PUT
D. DELETE