CBSE Class 10 Computer Science Working with Tables in HTML MCQs

Refer to CBSE Class 10 Computer Science Working with Tables in HTML MCQs provided below. CBSE Class 10 Computers MCQs with answers available in Pdf for free download. The MCQ Questions for Class 10 Computers with answers have been prepared as per the latest syllabus, CBSE books and examination pattern suggested in Class 10 by CBSE, NCERT and KVS. Multiple Choice Questions for Working with Tables in HTML are an important part of exams for Class 10 Computers and if practiced properly can help you to get higher marks. Refer to more Chapter-wise MCQs for CBSE Class 10 Computers and also download more latest study material for all subjects

MCQ for Class 10 Computers Working with Tables in HTML

Class 10 Computers students should refer to the following multiple-choice questions with answers for Working with Tables in HTML in Class 10. These MCQ questions with answers for Class 10 Computers will come in exams and help you to score good marks

Working with Tables in HTML MCQ Questions Class 10 Computers with Answers

Question. In order to add border to a table, border attribute is specified in which tag?
(a) <TH>
(b) <TABLE>
(c) <TD>
(d) <TR>

Answer : B

Question. Which attribute of the <TABLE> tag is used to set an image in the background of a table?
(a) bgcolor
(b) background
(c) frame
(d) rules

Answer : B

Question. Which of the following is an attribute of <TABLE> tag? 
(a) src
(b) cellpadding
(c) link
(d) bold

Answer : B

Question. Which of the following tag gives a caption to the table?
(a) <CAPTION>
(b) <SUMMARY>
(c) <FRAME>
(d) None of these

Answer : A

Question. The attribute used to specify the background color of a table is 
(a) color
(b) bgtable
(c) backcolor
(d) bgcolor

Answer : D

Question. Which attribute of <TD> tag is used to merge two or more columns to form a single column?
(a) colspan
(b) cellspacing
(c) cellpadding
(d) rowspan

Answer : A

Question. Which one of the following is not an option for aligning data in a table? 
(a) justify
(b) right
(c) left
(d) center

Answer : A

Question. Which of these tags belong to table?
(a) <THEAD>,<BODY>,<TR>
(b) <TABLE>,<HEAD>,<TFOOT>
(c) <TABLE>,<TR>,<TD>
(d) <TABLE>,<TR>,<TT>

Answer : C

Question. The attribute used to set the border color of a table is 
(a) border
(b) bordercolor
(c) color
(d) border color

Answer : B

Question. Choose the correct HTML code to right align the content inside a table cell.
(a) <TD align="right">
(b) <TD valign="right">
(c) <TD rightalign>
(d) <TD right = "align">

Answer : A

Question. The two common attributes of the <IMG> and the <TABLE> tags are 
(a) src and height
(b) height and width
(c) border and src
(d) they do not have any common attributes

Answer : B

Question. HTML tag for row is
(a) <COLSPAN>
(b) <TR>
(c) <ROWSPAN>
(d) <TD>

Answer : B

Question. border, frame, cellspacing, cellpadding and align are the attributes of
(a) <BODY> tag
(b) <IMG> tag
(c) <TABLE> tag
(d) None of these

Answer : C

Question. In the <TH> tag, TH stands for
(a) Table Heading
(b) Total Heading
(c) Table Header
(d) All of these

Answer : C

Question. In the <TD> tag, TD stands for
(a) Table Data
(b) Time Date
(c) Table Date
(d) None of these

Answer : A

Question. rowspan = n can be added to only which tag?
(a) <HR>
(b) <TABLE>
(c) <TD>
(d) <TR>

Answer : C

Question. Which of the following is not an attribute of <TABLE> tag?
(a) border
(b) background
(c) bgcolor
(d) src

Answer : D

Question. Which tag is used to add columns in the table?
(a) <COLSPAN>
(b) <TD>
(c) <TR>
(d) None of these

Answer : B

Question. The ……… attribute helps to align data vertically in a single cell.
(a) align
(b) valign
(c) halign
(d) Both (b) and (c)

Answer : B

Question. The frame attribute contains ……… types of values.
(a) 9
(b) 3
(c) 6
(d) 4

Answer : A

Question. Combining two or more cells in a table on a web page is called 
(a) merging
(b) spanning
(c) combining
(d) None of these

Answer : B

Case Based MCQs :

Tables can be divided into three portions as a head, a body and a foot. The head and foot are rather similar to headers and footers in a word processor document that remain the same for every page, while the body is the main content holder of the table.
The three elements for separating the head, body and foot of a table are as follows
(i) <THEAD>
(ii) <TBODY>
(iii) <TFOOT>
Browsers can use these elements to enable scrolling of the table body independently of the header and footer. Also, when printing a large table that spans multiple pages, these elements can enable the table header and footer to be printed at the top and bottom of each page.

Question. Which tag is used to indicate the footer rows?
(a) <THEAD>
(b) <TBODY>
(c) <TFOOT>
(d) None of these

Answer : C

Question. A table may contain several .................... elements to indicate different pages or groups of data.
(a) <THEAD>
(b) <TBODY>
(c) <TFOOT>
(d) All of these

Answer : B

Question. Which tag indicates the header rows in a table?
(a) <THEAD>
(b) <TBODY>
(c) <TFOOT>
(d) All of these

Answer : A

Question. Which attribute(s) is/are contained in <TBODY> tag?
(a) align
(b) bgcolor
(c) valign
(d) All of these

Answer : D

Question. Which tag is used to show the main body of the table?
(a) <THEAD>
(b) <TBODY>
(c) <TFOOT>
(d) All of these

Answer : B

Short Answer Type Questions :

Question. Name the attributes of <TABLE> tag, which are used for specifying its dimensions in a web page.
Answer : width and height attributes of <TABLE> tag, which are used for specifying its dimensions in a web page. width and height are specified in terms of pixel or percentage of the browser window.

Question. Saroj, a student of Class X, wants to represent a table in web page but she is unaware about the table tag. Explain her the role of <TH>, <TR> and <TD> tags. Write HTML code of a table and show the use of <TH>, <TR> and <TD> tags.
Answer : <TR> tag defines the table row which is used to create a new row of data in a table.
<TH> tag defines the table header which is used for specifying a table’s header.
<TD> tag defines the table data which is used to specify a cell or table data within a table.
e.g. <TABLE>
<TR>
     <TH>Name</TH>
     <TH>Subject</TH>
</TR>
<TR>
     <TD>Rahul</TD>
     <TD>Mathematics</TD>
</TR>
<TR>
    <TD>Muskan</TD>
    <TD>Science</TD>
</TR>
</TABLE>

Question. Name the attributes used for following.
(i) Setting the cell width
(ii) Setting cell’s background image
(iii) Setting cell’s background color
(iv) Changing the cell span
Answer : (i) width (ii) background
(iii) bgcolor (iv) rowspan and colspan

Question. Explain the width attribute of <TABLE> tag.
Answer : The width attribute is used to set the absolute width of the table. The values in width attribute can be either in pixel or in percentage of the browser window. e.g.
<TABLE width = "150">
  <TR><TD>Cell1</TD><TD>Cell2</TD></TR>
  <TR><TD>Cell3</TD><TD>Cell4</TD></TR>
</TABLE>

Question. What is the function of summary attribute?
Answer : summary attribute of <TABLE> tag is used to provide the detailed information about a table. It enables a user to know the type of information that a table contains. It is useful to provide access to non-visual browsers, which are used by users with visual impairment. e.g. <TABLE summary="text">

Question. What are the roles of rowspan and colspan attributes? Explain with suitable HTML example.
Answer : colspan attribute allows the user to stretch a cell to span multiple columns (merge two or more columns). rowspan attribute is used to span multiple rows (merge two or more rows).
e.g. <TABLE border = '1'>
<TR>
<TD> Row-1 Column-1 </TD>
<TD colspan = "2">Row-1 Column-2 and 3
                                                                   </TD>
<TD rowspan = "2">Row-1 and 2 Column-4
                                                          </TD> </TR>
<TR>
<TD> Row-2 Column-1 </TD>
<TD> Row-2 Column-2 </TD>
<TD> Row-2 Column-3 </TD>
        </TR>
</TABLE>

Question. Which attributes can you use with <TABLE> tag but not with <TR> tag?
Answer : summary, rules, frame, border, cellpadding, cellspacing, height, width and bordercolor are the attributes that you can use with <TABLE> tag but not with <TR> tag.

Question. Write HTML code to display a table with border of 5px. 
Answer : <HTML><BODY>
<TABLE border = "5">
<TR><TD>1</TD></TR>
<TR><TD>2</TD></TR>
</TABLE>
</BODY></HTML>

Question. What is header cell? Name the <TABLE> tag, which is used as header cell.
Answer : The header cell specifies the header of the table and displays the content of a table in heading style. The content in the table header cell is rendered in bold and centered horizontally within the cell. The table header cell is coded with <TH> tag.

Question. What is data cell? Name the <TABLE> tag, which is used as data cell.
Answer : The data cell defines a cell of a table that contains data.
The table data cell is coded with <TD> tag of <TABLE> tag. Here, TD stands for Table Data. The content in the table data cell is normal and left-aligned by default.

Question. Differentiate between cellpadding and cellspacing in HTML table.
Answer : Differences between cellpadding and cellspacing are as follows
Q.3 p.50

Question. Name the attributes that are used to do the following in HTML.
(i) Merge two or more rows
(ii) Change the background color of the cells in a table
(iii) Vertically align cell content
(iv) Merge two or more columns
Answer : (i) rowspan
(ii) bgcolor
(iii) valign
(iv) colspan

Question. Define the <TH> and <TR> tags. Are these two tags similar? If yes, how?
Answer : <TH> stands for Table Header. It is used to give headings to the various columns in our table. <TR> stands for Table Row. It is used to create a row in a table. <TH> and <TR> tags are not similar. <TH> tag is similar to <TD> tag. Since, <TH> tag also defines a data cell, which is taken as heading to the columns and the data is bold faced.

Question. What is table? Name the basic commands for creating a table.
Answer : Tables are made up of rows and columns. In HTML, tables are used to display tabular data in web pages. The basic commands for creating tables are as follows:
Table tag <TABLE> </TABLE>
Row tag <TR> </TR>
Cell tag <TD> </TD>, <TH> </TH>
Caption tag <CAPTION> </CAPTION>

Question. Mr. Ayush, Sports Captain of the school, has to display sequence of events of the upcoming Annual Sports Day on the school website. Help him in writing HTML code to create a table in HTML as shown in the given screenshot. 
Q.13 p.51
Answer : <HTML>
<BODY>
<TABLE border = "1">
<TR>
<TH colspan ="3" align ="center"> ANNUAL
SPORTS DAY-SEQUENCE OF EVENTS</TH>
</TR>
<TR align ="center">
<TD>8:00 AM - 9:00 AM</TD>
<TD>9:00 AM-1:00 PM</TD>
<TD>1:00 PM-2:00 PM</TD>
</TR>
<TR align ="center">
   <TD>CULTURAL EVENTS</TD>
   <TD>TRACK EVENTS</TD>
   <TD>PRIZE DISTRIBUTION</TD>
</TR>
</TABLE>
</BODY>
</HTML>

Long Answer Type Questions :

Question. Observe the following web page and write HTML code to generate it. 
Q.26 p.55
Note The following points while generating the web page:
• Background color of page is yellow.
• Link color is black and visited link color is green.
• Font style for the page is arial.
• Heading of the page is maroon.
• Image used is mainrhino.jpg.
• Table border is 2px.
Answer : The HTML code is
<HTML>
<BODY bgcolor="yellow" link="black" vlink="green">
<BASEFONT face="arial">
<H1 align="center">
<FONT color="maroon">INDIAN
RHINOCEROS</FONT></H1>
<IMG src="mainrhino.jpg" align="right" height="100"
width="110">
The Indian rhinoceros lives primarily in northern India and Nepal. These massive beasts have some noticeable physical differences from their African relatives. Their segmented hide looks like a formidable coat of natural body armour. It functions a bit like one also. Flexible skin between the thicker hide "plates" allows them to shift as the rhinoceros moves.
<BR><BR>
Other Endangered Animals:
<UL>
<LI>
Whooping Crane
</LI>
<LI>
White Rhino
</LI>
<LI>
Sumatran Rhino
</LI>
<LI>
Toucan
</LI>
</UL>
<TABLE border="2" align="center">
<CAPTION>Fast Facts</CAPTION>
<TR><TD>Type</TD>
<TD>Mammal</TD>
</TR>
<TR>
<TD>Diet</TD>
<TD>Herbivore</TD>
</TR>
<TR>
<TD>Average life span in the wild</TD>
<TD>40 years</TD>
</TR>
<TR>
<TD>Size</TD>
<TD>Length 12.5 ft; Height up to 6 ft</TD>
</TR>
<TR>
<TD>Weight</TD>
<TD>4,400 lbs (2,000 kg)</TD>
</TR>
</TABLE>
<BR>
For more Details
</BODY>
</HTML>

Question. Write the HTML code to generate the following table on a web page with the contents and alignment exactly as shown below. 
Q.19 p.52
Answer : The HTML code is
<HTML>
<BODY>
<TABLE border="1" width = "400">
<TR align="right">
<TH>MOVID</TH>
<TH>MOVNAME</TH>
<TH>ACTORS</TH>
</TR>
<TR align="left">
<TD>M001</TD>
<TD>HIT FACTORY</TD>
<TD>4</TD>
</TR>
</TABLE>
</BODY>
</HTML>

Question. What is the use of <TR> tag in an HTML table?
Give a suitable example.
Answer : The <TR> tag creates a table row in an HTML table. A table must have atleast one row and also, it can have as many table rows as you want. A table row is divided into table cells. A table must have atleast one table cell per table row.
e.g.
<HTML>
<HEAD><TITLE> TR Tag </TITLE></HEAD>
<BODY>
<TABLE border = "1" cellpadding ="3">
<TR>
<TH> Head 1 </TH>
<TH> Head 2 </TH>
<TH> Head 3 </TH>
</TR>
<TR>
<TD> A </TD>
<TD> B </TD>
<TD> C </TD>
</TR>
<TR>
<TD> D </TD>
<TD> E </TD>
<TD> F </TD>
</TR>
</TABLE>
</BODY>
</HTML>
Output
Q.17 p.52

Question. Write names of two attributes each for the following tags. 
(i) <HR>
(ii) <BODY>
(iii) <IMG>
(iv) <TABLE>
(v) <A>
Answer : Tag                   Attributes
(i) <HR>                  align, width
(ii) <BODY>             bgcolor, text
(iii) <IMG>              src, alt
(iv) <TABLE>           border, rules
(v) <A>                   href, name

Question. Observe the following table and write the HTML code to generate it. 
Q.18 p.52
Answer : The HTML code is
<HTML>
<BODY>
<TABLE cellpadding = "10" cellspacing="0"
border="1">
<TR align = "center">
<TH>Period1</TH>
<TH>Period2</TH>
</TR>
<TR align = "center">
<TD>Math</TD>
<TD>Science</TD>
</TR>
<TR align="center">
<TD>English</TD>
<TD>SST</TD>
</TR>
<TR align="center">
<TD>Science</TD>
<TD>SST</TD>
</TR>
</TABLE>
</BODY>
</HTML>

Question. Write the HTML code to generate the following web page.
Q.24 p.54
NoteThe following points while generating the web page:
• Link color is green, active link color is blue and visited link color is red.
• Title of the page is "Eat healthy, live healthy".
• Heading of the page is maroon.
• Image used is "Restaurant.jpg".
• Caption of table is blue.
• Table border is blue and of size 2. 
Answer : The HTML code is
<HTML>
<HEAD>
<TITLE>Eat healthy, live healthy</TITLE>
</HEAD>
<BODY link="green" alink="blue" vlink="red">
<CENTER>
<H1>
<FONT color="maroon">KHAO PIYO
RESTAURANT </FONT>
</H1>
</CENTER>
<IMG src="Restaurant.jpg"
align="right"height ="255" width="250">
Collect Information for
<UL>
<LI> Menus </LI>
<LI> Reservation </LI>
<LI> Catering </LI>
<LI></LI>
</UL>
<CENTER>
<TABLE border="2" bordercolor="blue">
<FONT color="blue">
<CAPTION> Menus available are </CAPTION>
</FONT>
<TR>
<TD> 1 </TD> <TD> INDIAN </TD>
</TR>
<TR>
<TD> 2 </TD> <TD> ITALIAN </TD>
</TR>
<TR>
<TD> 3 </TD> <TD> CONTINENTAL </TD>
</TR>
<TR>
<TD> 4 </TD> <TD> THAI </TD>
</TR>
</TABLE>
</CENTER>
<BR>
For further queries and reservation
Contact Us
</BODY></HTML>

Question. Write the HTML code to generate the following table with the contents exactly in the same format as shown within the table. 
Q.20 p.53
Answer : The HTML code is
<HTML><BODY>
<TABLE border="1">
<TR>
<TH colspan="4" align="center">
Shopping Mall</TH>
</TR>
<TR align = "center">
<TD>Floor</TD>
<TD>No. of Toy<BR>Shops</TD>
<TD>No. of Food<BR>Shops</TD>
<TD>No. of Sports<BR>Shops</TD>
</TR>
</TABLE>
</BODY>
</HTML>

Question. Write the HTML code to create the exact table which is given below. 
Q.16 p.52
Answer : The HTML code is
<HTML>
<BODY>
<TABLE border="3">
<TR align="center" valign="middle">
<TH> ADMNO </TH>
<TH> SNAME </TH>
<TH> NAME </TH>
<TH> DOB </TH>
</TR>
<TR align="left" valign="middle">
<TD> 1110 </TD>
<TD> MANJIT </TD>
<TD> RANJIT </TD>
<TD> 4-MAR-1998 </TD>
</TR>
</TABLE>
</BODY>
</HTML>

Question. Carefully study the web page given below. Identify 8 tags (structural as well as formatting tags) that have been utilised in creating this web page and write the usage of each of them. 
Q.25 p.55
Answer : (i) <TITLE> to specify the title of the web page.
(ii) <BODY> contains all the content that is to be displayed on web page and all the various formatting and structural tags.
(iii) <UL> used to create an unordered list.
(iv) <LI> to specify the various list items in a list.
(v) <CAPTION> to provide caption to the table.
(vi) <TABLE> used to create table in HTML document.
(vii) <TR> stands for table row, used to create a table row.
(viii) <TD> stands for table data, helps to create cells in HTML table.

Question. Observe the following table and write the HTML code to generate it. 
Q.21 p.53
Answer : The HTML code is
<HTML>
<BODY> <BASEFONT face="cambria">
<TABLE border="1" bordercolor="black"
cellspacing="0" width="320">
<CAPTION> Activities </CAPTION>
<TR>
<TD rowspan="3"> Sr School </TD>
<TD> Maths Club </TD>
</TR>
<TR>
<TD> Robotics Club </TD>
</TR>
<TR>
<TD> Photography </TD>
</TR>
<TR>
<TD rowspan="3">Middle School </TD>
<TD> Gymnastic </TD>
</TR>
<TR>
<TD> Yoga </TD>
</TR>
<TR>
<TD> Computer Club </TD>
</TR>
<TR>
<TD rowspan="3"> Primary School </TD>
<TD> Dance </TD>
</TR>
<TR>
<TD> Vocal Music </TD>
</TR>
<TR>
<TD> Swimming </TD>
</TR>
</TABLE>
</BODY>
</HTML>

Question. Write an HTML code to print the following table.
Q.23 p.54
Note • Background color of a table is pink.
• Caption of a table is in red color.

Answer : The HTML code is
<HTML>
<HEAD>
<TITLE>Student</TITLE>
</HEAD>
<BODY>
<TABLE border="4" bgcolor="pink"
height="50%" width="70%"align="center">
<CAPTION>
<B>
<FONT size="4" color="red">
Student Data
</FONT>
</B>
</CAPTION>
<TR>
<TH>Student Name</TH>
<TH>Roll No</TH>
<TH>Address</TH>
<TH>Marks</TH>
</TR>
<TR>
<TD>Amrita</TD>
<TD>1</TD>
<TD>Shastri Nagar</TD>
<TD>483</TD>
</TR>
<TR>
<TD>Taruna </TD>
<TD>2</TD>
<TD>T.P Nagar</TD>
<TD>418</TD>
</TR>
<TR>
<TD>Priyanka</TD>
<TD>3</TD>
<TD>Saket</TD>
<TD>489</TD>
</TR>
</TABLE>
</BODY>
</HTML>

More Study Material

CBSE Class 10 Computers Working with Tables in HTML MCQs

We hope students liked the above MCQs for Working with Tables in HTML designed as per the latest syllabus for Class 10 Computers released by CBSE. Students of Class 10 should download the Multiple Choice Questions and Answers in Pdf format and practice the questions and solutions given in above Class 10 Computers MCQs Questions on daily basis. All latest MCQs with answers have been developed for Computers by referring to the most important and regularly asked topics which the students should learn and practice to get better score in school tests and examinations. Studiestoday is the best portal for Class 10 students to get all latest study material free of cost.

MCQs for Computers CBSE Class 10 Working with Tables in HTML

Expert teachers of studiestoday have referred to NCERT book for Class 10 Computers to develop the Computers Class 10 MCQs. If you download MCQs with answers for the above chapter daily, you will get higher and better marks in Class 10 test and exams in the current year as you will be able to have stronger understanding of all concepts. Daily Multiple Choice Questions practice of Computers and its study material will help students to have stronger understanding of all concepts and also make them expert on all critical topics. You can easily download and save all MCQs for Class 10 Computers also from www.studiestoday.com without paying anything in Pdf format. After solving the questions given in the MCQs which have been developed as per latest course books also refer to the NCERT solutions for Class 10 Computers designed by our teachers

Working with Tables in HTML MCQs Computers CBSE Class 10

All MCQs given above for Class 10 Computers have been made as per the latest syllabus and books issued for the current academic year. The students of Class 10 can refer to the answers which have been also provided by our teachers for all MCQs of Computers so that you are able to solve the questions and then compare your answers with the solutions provided by us. We have also provided lot of MCQ questions for Class 10 Computers so that you can solve questions relating to all topics given in each chapter. All study material for Class 10 Computers students have been given on studiestoday.

Working with Tables in HTML CBSE Class 10 MCQs Computers

Regular MCQs practice helps to gain more practice in solving questions to obtain a more comprehensive understanding of Working with Tables in HTML concepts. MCQs play an important role in developing understanding of Working with Tables in HTML in CBSE Class 10. Students can download and save or print all the MCQs, printable assignments, practice sheets of the above chapter in Class 10 Computers in Pdf format from studiestoday. You can print or read them online on your computer or mobile or any other device. After solving these you should also refer to Class 10 Computers MCQ Test for the same chapter

CBSE MCQs Computers Class 10 Working with Tables in HTML

CBSE Class 10 Computers best textbooks have been used for writing the problems given in the above MCQs. If you have tests coming up then you should revise all concepts relating to Working with Tables in HTML and then take out print of the above MCQs and attempt all problems. We have also provided a lot of other MCQs for Class 10 Computers which you can use to further make yourself better in Computers

Where can I download latest CBSE MCQs for Class 10 Computers Working with Tables in HTML

You can download the CBSE MCQs for Class 10 Computers Working with Tables in HTML for latest session from StudiesToday.com

Can I download the MCQs of Working with Tables in HTML Class 10 Computers in Pdf

Yes, you can click on the links above and download topic wise MCQs Questions PDFs for Working with Tables in HTML Class 10 for Computers

Are the Class 10 Computers Working with Tables in HTML MCQs available for the latest session

Yes, the MCQs issued by CBSE for Class 10 Computers Working with Tables in HTML have been made available here for latest academic session

How can I download the Working with Tables in HTML Class 10 Computers MCQs

You can easily access the links above and download the Working with Tables in HTML Class 10 MCQs Computers for each topic

Is there any charge for the MCQs with answers for Class 10 Computers Working with Tables in HTML

There is no charge for the MCQs and their answers for Class 10 CBSE Computers Working with Tables in HTML you can download everything free

How can I improve my MCQs in Class 10 Computers Working with Tables in HTML

Regular revision of MCQs given on studiestoday for Class 10 subject Computers Working with Tables in HTML can help you to score better marks in exams

What are MCQs for Class 10 Computers Working with Tables in HTML

Multiple Choice Questions (MCQs) for Working with Tables in HTML Class 10 Computers are objective-based questions which provide multiple answer options, and students are required to choose the correct answer from the given choices.