Select the suitable answer for the following Multiple Choice Questions (MCQs).
1) Everything in HTML is identified on the basis of __.
a) Brackets
b) Title
c) Tags
d) Image
Answer: c) Tags
Explanation: HTML (HyperText Markup Language) uses tags to define the structure and content of a web page. Tags are enclosed in angle brackets (e.g., <p>, <h1>).
2) The output of HTML code is visible in __.
a) Notepad
b) File
c) Browser
d) Spreadsheet
Answer: c) Browser
Explanation: HTML code is interpreted by a web browser (e.g., Chrome, Firefox, Edge) to render the visual web page.
3) Name of a web page can be given using __ tag.
a) Body
b) Title
c) Head
d) Footer
Answer: b) Title
Explanation: The <title> tag, placed inside the <head> section, specifies the title of the web page, which appears in the browser tab or window title bar.
4) Main parts of a document are arranged in __ tag.
a) Head
b) Title
c) Body
d) Line Break
Answer: c) Body
Explanation: The <body> tag contains all the visible content of a web page, such as text, images, links, and tables.
5) The heading tag-pair for 5th level heading is __.
a) <h5 ... h5>
b) <h3 ... h5>
c) <h5> ... </h5>
d) <h5> ... </h5>
Answer: c) <h5> ... </h5> (Options c and d are identical and correct)
Explanation: HTML heading tags range from <h1> (largest) to <h6> (smallest). The 5th level heading is <h5>, and its closing tag is </ h5>.
6) Span is used to provide __ to a line.
a) Font
b) Border
c) Style
d) Color
Answer: c) Style
Explanation: The <span> tag is an inline container used to apply styles (e.g., color, font) to a specific portion of text without starting a new line.
7) First row of table in HTML is called __.
a) Title row
b) Top Row
c) Header Row
d) Upper Row
Answer: c) Header Row
Explanation: The first row of an HTML table, typically containing column headings, is defined using the <th> (table header) tag and is often referred to as the header row.
8) p tag-pair is used for __.
a) Print
b) Page align
c) Page break
d) Paragraph
Answer: d) Paragraph
Explanation: The <p> tag is used to define a paragraph of text in HTML.
9) A variable cannot start with a __.
a) Alphabet
b) Number
c) Character
d) String
Answer: b) Number
Explanation: In most programming languages (including JavaScript), a variable name cannot begin with a number. It must start with a letter, underscore, or dollar sign.
10) The first value assigned to a variable after declaration is called __.
a) Beginning value
b) Starting value
c) Initialization
d) Substitution
Answer: c) Initialization
Explanation: Initialization is the process of assigning an initial value to a variable when it is declared.