Q: 1 The main container for the HTML tags <tr>, <td>, and <th> is ________.
<body>
<group>
<data>
<table>
[ 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: 2 Consider the following HTML code
<table>
<tr><td>Name</td></tr>
<tr><td>Class</td></tr>
</table>
What will it print?
A table with ONE row and TWO columns.
A table with TWO rows and FOUR columns.
A table with TWO rows and ONE column in each row.
A table with ONE row and ONE column.
[ 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: 3 The correct sequence of HTML tags for starting a webpage is –
Head, Title, HTML, Body
HTML, Body, Title, Head
Head, Title, HTML, Body
HTML, Head, Title, Body
[ 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: 4 Which 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?
_blank
_new
_parent
_top
[ 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: 5 Which tag is used to create a drop-down menu in website using HTML?
<input>
<select>
<ul>
<menu>
[ 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: 6 Which element is used to embed a multimedia object in an HTML document?
<em> tag
<embed> tag
<emb> tag
<embedded> tag
[ 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: 7 The language used to design web pages for a website is?
HTML
C++
FORTRAN
ADA
[ 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: 8 Which tag is used for bullet list in HTML?
<UL>
<DD>
<OL>
<UI>
[ 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: 9 What is the correct HTML for creating a hyperlink?
<a name= : "">A</a>
<a> B </a>
<a href="http://www.example.com">example</a>
<a url= "http://www.example.com">example</a>
[ Option C ]
In HTML, a hyperlink is created using the <a> (anchor) tag. The href attribute specifies the URL of the page the link goes to. The text between the opening <a> and closing </a> tags is the clickable part that the user sees.
<a href="https://www.surakuacademy.com">Suraku Academy</a>
Q: 10 Closing tag is compulsory in all elements of
HTML
XML
Both of the above
None of the above
[ Option B ]
In XML (eXtensible Markup Language), every element must have a properly closed tag. XML is very strict about syntax rules. If a tag is opened, it must either be closed with a corresponding closing tag or be written as a self-closing tag.
E.g.:
If a closing tag is missing, the XML document becomes invalid.
In contrast, HTML is more flexible. Some HTML elements do not require closing tags, such as:
Browsers can often interpret HTML even if closing tags are missing. Therefore, closing tags are compulsory in XML, not in all HTML elements.
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.