This section contains carefully selected MCQs and Previous Year Questions with explanations to help students understand concepts and prepare effectively for examinations, interviews, and competitive tests.
Q: 1How many basic types of lists are there in HTML?
Option B
In HTML, a list is used to group related items so that content becomes more organized and readable. HTML provides three basic types of lists, each with its own semantic meaning and tags.
Unordered List (<ul>):
Ordered List (<ol>):
Description List or Definition List (<dl>, <dt>, <dd>):
Q: 2The main container for the HTML tags <tr>, <td>, and <th> is ________.
Option D
In HTML, the tags <tr> (Table Row), <td> (Table Data), and <th> (Table Header) are all used to define the structure of a table, and they must be enclosed within the <table> tag.
The <table> tag acts as the main container, inside which rows and cells are created to organize data in tabular form.
Q: 3Consider the following HTML code
<table>
<tr><td>Name</td></tr>
<tr><td>Class</td></tr>
</table>
What will it print?
Option C
In HTML:
In the given code, there are two <tr> tags, which means two rows.
Each row contains only one <td> tag, which means each row has only one column.
So the table structure becomes:
| Name |
| Class |
Q: 4The correct sequence of HTML tags for starting a webpage is –
Option D
The correct and standard sequence of HTML tags to start a web page is:
This sequence ensures proper structure and rendering of the web page in browsers.
<html>
<head>
<title>Page Title</title>
</head>
<body>
<!-- Displayable Content -->
</body>
</html>
Q: 5Which of the following values has to be assigned to the <target> tag in the <base> tag to open the link page in a new window?
Option A
In HTML, the <base> tag is used to define a default target for all hyperlinks on a page. The target attribute specifies where the linked document will open. When the value is _blank, the link opens in a new window or new tab.
| TARGET VALUE | MEANING |
|---|---|
| _blank | Opens in a new window or tab. |
| _self | Opens in same window. This is default. |
| _parent | Opens in parent frame. |
| _top | Opens in full window, replacing all frames if the page is inside a frameset or iframe. |
Q: 6How many forms can we have on a webpage at the maximum?
Option D
In HTML, a form is used to collect input from users such as name, password, email, feedback, etc. Forms are created using the <form> tag.
<form>
Name: <input type="text">
</form>
A webpage can contain multiple forms depending on the requirement of the website. HTML does not define any fixed maximum number of forms on a webpage. For example, a webpage may contain:
All these forms can exist on the same webpage.
Q: 7Which tag is used to create a drop-down menu in website using HTML?
Option B
The <select> tag in HTML is used to create a drop-down list. It is usually combined with <option> tags which define the options available in the menu.
<select name="Course">
<option value="BCI">Basic Computer Instructor</option>
<option value="SCI">Senior Computer Instructor</option>
<option value="Patwar">RSSB Patwar Exam</option>
<option value=”IA”>DOITC Informatics Assistant</option>
</select>
Q: 8Which element is used to embed a multimedia object in an HTML document?
Option B
The <embed> tag in HTML is used to embed multimedia content such as audio, video, or interactive applications. It is a self-closing tag and requires attributes like src, type, width, and height to define the media.
<embed src="video.mp4" type="video/mp4" width="400" height="300">
The <embed> tag differs from <audio> and <video> tags in modern HTML5.
Q: 9What is tag in HTML?
Option C
HTML (HyperText Markup Language) is used to create web pages. In HTML, tags are special keywords enclosed within angle brackets < >. Tags tell the browser how to display content on a webpage.
HTML tags provide information or instructions about different parts of the webpage. They help the browser understand the structure and content of the page.
Q: 10The language used to design web pages for a website is?
Option A
HTML stands for HyperText Markup Language. It is the standard language used to create and design web pages. HTML is used to structure the content of a webpage such as headings, paragraphs, images, links, tables, and forms.
HTML is a markup language, not a programming language. It uses tags to define the structure and layout of web content.
Q: 11What is image map in HTML?
Option B
In HTML, an image map is a special type of image where different parts (areas) of the same image can act as different hyperlinks. When the user clicks on different regions of the image, different web pages or locations open.
Image maps are created using:
Suppose a webpage contains an image of a computer system with different parts such as keyboard, monitor, and mouse. Using an image map, each part of the image can open a different webpage.
<img src="computer.jpg" usemap="#computerparts">
<map name="computerparts">
<area shape="rect"
coords="50,50,250,200"
href="monitor.html"
alt="Monitor">
<area shape="rect"
coords="60,220,260,300"
href="keyboard.html"
alt="Keyboard">
<area shape="circle"
coords="320,250,40"
href="mouse.html"
alt="Mouse">
</map>
Q: 12Which of the following statement(s) is/are correct regarding <title> tag in HTML?
I. This tag always goes outside to the <head> tag.
II. This tag is used to indicate the title of the website.
III. It is also used by search engines.
Option B
HTML (HyperText Markup Language) is used to create web pages. In HTML, different tags are used for different purposes.
The <title> tag is an important tag that defines the title of a web page. The title appears on the browser tab and helps users identify the page easily.
The <title> tag is written inside the <head> section of an HTML document.
<html>
<head>
<title>Suraku Academy</title>
</head>
<body>
Welcome to Website Suraku Academy
</body>
</html>
Statement I:
“This tag always goes outside to the <head> tag.”
This statement is incorrect because the <title> tag must always be placed inside the <head> tag, not outside it.
Statement II:
“This tag is used to indicate the title of the website.”
This statement is correct because the <title> tag specifies the title shown on the browser tab.
Statement III:
“It is also used by search engines.”
This statement is also correct. Search engines use the title tag to understand the page content and display the page title in search results.
Q: 13Which is the most appropriate HTML tag to create a numbered lists.
Option D
In HTML, different tags are used to create different types of lists. A numbered list (ordered list) displays items with numbers like 1, 2, 3, etc., and is created using the <ol> tag.
Q: 14Which tag is used for bullet list in HTML?
Option A
In HTML, lists are used to group items together.
| TAG | TYPE | DESCRIPTION |
|---|---|---|
| <UL> | Unordered List | Creates a bullet list where order does not matter. |
| <OL> | Ordered List | Creates a numbered list where order matters. |
| <DD> | Description Definition | Used inside <DL> for descriptions. |
Q: 15Which HTML tag is used to create and define link between two html pages?
Option C
In HTML, a link between two web pages is called a hyperlink. Hyperlinks are created using the anchor tag, written as <a>. The <a> tag uses the href attribute to specify the destination page, for example:
<a href="surakumcq.html">Suraku MCQ</a>
So whenever you want to create a clickable link from one HTML page to another, you use the <a> tag.
Thank you so much for taking the time to read my Computer Science MCQs section carefully. Your support and interest mean a lot, and I truly appreciate you being part of this journey. Stay connected for more insights and updates! If you'd like to explore more tutorials and insights, check out my YouTube channel.
Don’t forget to subscribe and stay connected for future updates.