0% found this document useful (0 votes)
21 views

HTML Test

sssssss

Uploaded by

Maybel Din
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

HTML Test

sssssss

Uploaded by

Maybel Din
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Part 1: Multiple Choice Questions: Read each question carefully.

Choose the best


answer from the options provided. Each question has only one correct answer.
1. What is a program?
A. A type of software that only executes scripts
B. A set of instructions a computer can execute
C. A collection of hardware components
D. A programming language
2. Which of the following best describes programming?
A. The act of designing a computer
B. The process of creating a program through coding
C. The debugging of existing software
D. The installation of an operating system
3. What does syntax refer to in programming?
A. The speed at which a program runs
B. The rules governing the structure of statements in a language
C. The quality of the code written
D. The complexity of a program
4. What is the primary function of a compiler?
A. To read code line by line and execute it
B. To convert text programs into binary files
C. To debug the code automatically
D. To format the code for better readability
5. Which programming languages typically use an interpreter?
A. C++ and Java
B. Python and PHP
C. Assembly and Fortran
D. Swift and Kotlin
6. Which HTML element is used to create a hyperlink?
A. <link>
B. <a>
C. <url>
D. <href>
7. In HTML, what is the purpose of the <head> element?
A. To contain all visible content on the page
B. To provide metadata and links to styles/scripts
C. To define the main heading of the document
D. To display images and multimedia
8. What is an attribute in an HTML tag?
A. A type of element that contains text
B. Additional information about an element
C. A specific style applied to an element
D. A command to change the browser's settings
9. Which of the following tags is used for the largest heading in HTML?
A. <h2>
B. <h1>
C. <h3>
D. <heading>
10.What HTML tag is used to embed an image?
A. <image>
B. <img>
C. <picture>
D. <src>
11.Which of the following is a commonly used text editor for writing code?
A. Microsoft Word
B. Notepad
C. Adobe Photoshop
D. Internet Explorer
12.What does HTML stand for?
A. Hypertext Markup Language
B. High-level Text Markup Language
C. Hyperlink and Text Markup Language
D. Hypertext Management Language
13.What is the role of a text editor in programming?
A. To compile code into binary
B. To create visual designs for applications
C. To write and save computer programs
D. To run applications on the computer
14.Which HTML tag is used to define a heading?
A. <p>
B. <link>
C. <h1>
D. <body>
15.What is an attribute in an HTML tag?
A. A type of element that contains text
B. Additional information about an element
C. A specific style applied to an element
D. A command to change the browser's settings

Part II. True or False: Read each statement carefully. Determine if the statement
is true or false.

16.HTML is used to style web pages.


17.An HTML document must start with a <!DOCTYPE html> declaration.
18.Attributes in HTML tags provide additional information about the elements.
19.The <body> element contains metadata about the HTML page.
20.HTML5 introduced semantic elements to improve the meaning of web
content.
21.HTML is a programming language.
22.The <footer> element is used to define the bottom section of a webpage.
23. An HTML document can have multiple <head> sections.
24. All HTML tags must be closed.
25. HTML5 introduced new semantic elements to improve web content structure.
26. A text editor is used exclusively for writing HTML documents.
27.HTML is a programming language that can perform calculations and logic.
28. HTML elements can have attributes that provide additional information about
the element.
29.The <img> tag in HTML is used to create hyperlinks.
30.HTML5 introduced semantic elements to enhance the meaning and structure
of web content.

You might also like