Exploring Programming Fundamentals: A Comprehensive MCQ Guide for Class 9 Chapter 3
Class 9 Computer Science MCQs: Practice important MCQs on HTML and basic programming with answers and explanations. Ideal for exams and revision. Start learning now!
Q1: Everything in HTML is identified on the basis of
- a) Brackets
- b) Title
- c) Tags
- d) Image
Answer: c) Tags
Tags are used to structure and identify elements in HTML.
Q2: The output of HTML code is visible in
- a) Notepad
- b) File
- c) Browser
- d) Spreadsheet
Answer: c) Browser
HTML code is rendered and displayed in a web browser.
Q3: A web page's name can be given using the
- a) Body tag
- b) Title tag
- c) Head tag
- d) Footer tag
Answer: b) Title tag
The <title> tag sets the name that appears in the browser tab.
Q4: The main parts of a document are arranged within the
- a) Head tag
- b) Title tag
- c) Body tag
- d) Line Break tag
Answer: c) Body tag
The <body> tag contains the visible content of the HTML page.
Q5: The heading tag-pair for the 5th level heading is
- a) <h5 .. h5>
- b) <h5 .. </h5>
- c) h5> .. </h5
- d) <h5> .. </h5>
Answer: d) <h5> .. </h5>
Proper syntax for an HTML heading is opening and closing tag.
Q6: The <span> tag is used to provide
- a) Font
- b) Border
- c) Style
- d) Color
Answer: c) Style
The <span> tag is used for styling inline elements with CSS.
Q7: The first row of a table in HTML is called the
- a) Title row
- b) Top Row
- c) Header Row
- d) Upper Row
Answer: c) Header Row
Header rows use <th> tags and define column headings.
Q8: The <p> tag-pair is used for
- a) Print
- b) Page align
- c) Page break
- d) Paragraph
Answer: d) Paragraph
The <p> tag is used to define paragraphs in HTML documents.
Q9: A variable cannot start with a
- a) Alphabet
- b) Number
- c) Character
- d) String
Answer: b) Number
In programming, variable names cannot begin with digits.
Q10: The first value assigned to a variable after declaration is called
- a) Beginning value
- b) Starting value
- c) Initialization
- d) Substitution
Answer: c) Initialization
Initialization is the assignment of the first value to a variable.