NCERT Solutions for Class 10 Foundation of Information Technology – Inserting Images and Links in HTML

NCERT Solutions for Class 10 Foundation of Information Technology – Inserting Images and Links in HTML

Very Short Answer Type Questions [1 Mark each]

Question 1. How can text be displayed in place of image for users whose browser do not support images? CBSE 2007
Answer: The alt attribute of <img> tag is used to display the text in place of image for the users whose browser do not support images.

Question 2. Write a statement in HTML that inserts an image named ‘school.jpg’ found in the ‘images’ folder of the current folder. In case the image cannot be found, it should display ‘Schools in India’.
Answer: <img src =”images\school.jpg” alt=”Schools in India”>

More Resources for CBSE Class 10

Question 3.  The following code is written to align the image in center in the browser’s window.
However, the>desired result is not achieved. Mention the reason.
<img src = “image.jpg” align = “center”>
Answer: The reason for not getting the desired result is that center is not a value of align attribute in <img> tag.

Question 4. Why width and height attributes are used?
Answer: The width and height attributes are used, such that downloading of an image will be faster after knowing the dimensions of the images in the browser.

Question 5. What do you mean by hypertext?
Answer: Hypertext acts as a link on which you click to navigate to the desired content.

Question 6. In HTML, how linking can be done?
Answer: In HTML, linking can be done by using anchor <a> tag followed by href attribute.

Question 7. Explain linking.
Answer: When one Web page or a text fragment is connected to another Web page, then it is called linking. It is of two types— internal linking and external linking.

Question 8. What happens when we click on a hyperlink in a Web page? CBSE 2008
Answer: When we click on a hyperlink in a Web page, it provides a link that leads from one document to another.

Question 9. Give the expansion of the following

  1. alt
  2. <a>

Answer:

  1. alt is used for alternate text attribute.
  2. <a> is used for anchor tag.

Question 10. Write the HTML command to display the following in your Web page. A2 + B2 CBSE 2006
Answer: The HTML command is – A<sup>2</sup> + B<sup>2</sup>

Question 11. Write the output on the Web page for the following HTML command.
<u>Atomic weight of </u>O<sub>2</sub>
Answer: The output on the Web page will be Atomic weight of O2

Short Answer Type Questions [2 & 3 Marks each]

Question 1. Describe the use of alt attribute with <img> tag.
Answer: The alt attribute is used to define ‘alternate text’ for an image. It tells the Website visitor, what he/she is missing on the page if the browser cannot load images. The browser will then display the altertnate text instead of the image. It is good to include alt attribute for each image on a page to improve the appearance and usefulness of the document.

Question 2. Write the HTML code to display an image on the right side of the page. CBSE 2016
Answer:

<html>
<body>
<img src="image.jpg" align="right">
</body>
</html>

Question 3. Name the values that can be assigned to align attribute of <img> tag.
Answer: The values that can be assigned to align attribute of <img> tag are as follows:

  1. top
  2. bottom
  3. left
  4. right
  5. middle

Question 4. Write the HTML code to display an inline image named pencil.jpg located at C:\ in the center of your Web page. CBSE 2013
Answer:

<html>
<body>
<center>
<img src="C:\pencil.jpg">
</center>
</body>
</html>

Question 5. Define height and width attributes of <img> tag.
Answer: The width and height attributes tell the dimension of an image to the browser. Both (height and width) attributes require integer values (dimension of image in terms of either pixels or percentage of its actual size).
<img src=”picture.jpg” height = “50” width = “50”>

Question 6. Identify the errors in the following HTML code and write the correct code with each correction underlined. CBSE 2011

<html>
<title>IMAGES</head>
<body bgcolor="PICI.JPG">
<img href="ABC.JPG">
HERE IS MY IMAGE FILE
</bgcolor>
</html>

Answer:

Error 1 The <title> tag must be within <head> element.
Error 2 bgcolor attribute of body element supports a color like red, green or its color value.
Error 3 <img> tag needs a source attribute src to place an image.
Error 4 body element must be closed not bgcolor attribute.

The correct code is as follows:
<html>
<head>
<title>IMAGES</title>
</head>
<body bocolor = "yellow">
<imq src= "ABC.JPG">
HERE IS MY IMAGE FILE </body>
</html>

Question 7. Explain the need of linking between Web pages.
Answer: Linking between different Web pages is required, as when we create Websites, different html files (Web pages) are created. These files contain different modules and cannot be open individually. If we link between them, the Website becomes more productive and informative.

Question 8. How is external linking different from internal linking? CBSE 2004, 05
Answer: External link is a type of linking that goes to another Website. It is a linking of two different documents. While, internal linking is a type of linking that links pages within a single Website, various sections of same document or different document.

Question 9. Explain the given command
<a href =”wild.html”>Click Here for wild animals</a> CBSE 2006
Answer: In this command, anchor <a> tag and its href attribute is included. The text (Click Here for wild animals) will appear underlined and indicates that clicking the text activates the hypertext link. The address of the referenced document can be specified by an absolute or relative URL.
Thus, “wild.html” is an URL or Web page address and Click Here for wild animals is the hyperlinked text.

Question 10. Name the attributes of <a> tag which are used for internal linking in a Web page. CBSE 2014, 13
Answer:The attributes of <a> tag which are used for internal linking in a Web page as follows:

  1. href used to specify the URL of the segment the link goes to.
  2. name gives the name to the segment.

Question 11. What is the purpose of using the attribute href in <a> tag?
Answer: The href stands for Hypertext Reference. The href attribute is used with <a> tag to specify link to some other HTML page or Website.
e.g. <a href “”https://www.cbselabs.com”>
click here </a> to go to learncbse.
It will display like:
click here to go to learncbse.

Question 12. Write the HTML code to create a link for school .jpg located at C:\. CBSE 2014
Answer:

<html>
<body>
<a href = "C:\school. jpg">Image</a>
</body>
</html>

Question 13. Write an simple HTML code to show an example of internal linking.
Answer:

<html>
<head><title>Internal Linking</title>
</head>
<body>
<h1>It is <a name ="top">top</a> of the page </h1>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br>
<h1><a href ="#top">Top</a></h1>
</body>
</html>

Question 14. What is the purpose of mailto function?
Answer: The mailto function is used to send E-mail messages to multiple recipients. For this, we only need to type the E-mail address of the recipients in the same link separated by commas.

Question 15. Write an HTML code to show the use of mailto function.
Answer:

<html>
<head>
<title> Use of mailto </title>
</head>
<body>Send your views to
<a href= "mailto:[email protected]"> [email protected]< / a >
</body>
</html>

Question 16. Write the HTML code to send an E-mail to [email protected] from your Web page. CBSE 2013
Answer:

<html>
<body>
<a href="mailto:[email protected]">[email protected]</a>
</body>
</html>

Question 17. Distinguish between <sup> and <sub> tags with example.
Answer: Distinguishes between <sup> and <sub> tags are as follows:

<sup> Tag <sub> Tag
The <sup> tag is known as superscript tag. The <sub> tag is known as subscript tag.
It is used to define superscripted text. It is used to define subscripted text.
Tags that are used to specify superscripted written as
<sup> text </sup>
Tags that are used to specify subscripted written as
<sub> text </sub>

e.g. HTML command to display
(a+ b) 2 is
(a+ b) <sup>2</sup>

e.g. HTML command to display
log 2+log x is
log <sub>2</sub>+log <sub>x</sub>

Question 18. Write the full forms of: CBSE 2013

  1. <sup>
  2. <a>
  3. <img>
  4. <sub>

Answer:

  1. <sup>Superscript
  2. <a> Anchor
  3. <img> Image
  4. <sub> Subscript

Long Answer Type Questions  [5 Marks each]

Question 1. Explain various attributes of <img> tag.
Answer: 

Attributes of <img> Tag
An attribute is an extra piece of information associated with a tag that provides further details about the tag.
Following are the various attributes of <img> tag:

The src Attribute: The src (source) attribute takes URL (Universal Resource Locator) of an image file as value, which points to the direct location of an image to be displayed.
The image that you specify in your <img> tag should be in your computer otherwise the image will not be displayed and in place of image a cross mark in a box 0 will appear.

The alt Attribute: This attribute of <img> tag is used to provide alternate text when an image on a Web page cannot be displayed.
The alternative text is the text associated with an image that serves the same purpose and conveys the same essential message. As per HTML standard, alt attribute is optional but is highly recommended.

The align Attribute: This attribute is used to set the position of an image in a Web page according to the user’s requirements. In HTML, images appear inline with a single line of the text. But, HTML standard does not define a default alignment for the images with respect to other text and images in the same line.
There are some values of image alignment attribute as follows:

  1. Top Alignment
  2. Middle Alignment
  3. Bottom Alignment
  4. Left Alignment
  5. Right Alignment

The width and height Attributes: When an image is added to a Web page, it is not mandatory to specify width and height of the image. At the time of loading an image, a box will appear on the place where the image will be loaded.

The border Attribute: You can set the border of an image that you want to use in your Web page. The border attribute of the <img> tag specifies the width of the border around an image. By default, an image has no border in HTML.

Question 2. Which attribute is used to specify the location of an image file in <img> tag? Explain.
Answer: The attribute you need to get an image to display on a Web page is the src attribute.
In the src attribute of the <img> tag, you can specify the path of the image that you want to add to the Web page. This may be an image in the same directory, an image somewhere else on the same server, or an image stored on another server.
The syntax for src attribute is <img src =”imagel. jpg”>

Question 3. Define various alignments of align attribute with example.
Answer: There are some values of image alignment attribute as follows:

Middle Alignment
This alignment is different in both Internet Explorer and Mozilla Firefox. In Internet Explorer, this alignment aligns the image to the middle of the tallest item in the current line. While in Mozilla Firefox, this alignment aligns the image to the baseline of the current line in which it is placed.

Example: To show middle alignment of an image.
<html>
<head>
<title> Alignment </title>
</head>
<body>
<h1> Middle Alignment </ h1>
<img src="flower2.jpg" align="middle">
A flower, sometimes known as a b'oom or blossom, is the reproductive structure found in flowering plants. The biological function of a flower is to effect reproduction, usually by providing a mechanism for the union of sperm with eggs.
</body>
</html>

Bottom Alignment
This alignment aligns the bottom edge of the image, to the same horizontal plane as the baseline of the text. Both Internet Explorer and Mozilla Firefox treat this alignment in the same manner.

Example: To show bottom alignment of an image.
<html>
<head> <title> Alignment </title> </head>
<body>
<h1> Bottom Alignment </h1>
<img src="flower2.jpg" alt="flower" align="bottom">
A flower, sometimes known as a bloom or blossom, is the reproductive structure found in flowering plants. The biological function of a flower is to effect reproduction, usually by providing a mechanism for the union of sperm with eggs.
</body>
</html>

Left Alignment
This alignment aligns the image to the left on the Web page respectively of the browser window.

Example: To show left alignment of an image.
<html>
<head> <title> Alignment </title> </head>
 <body>
<h1> Left Alignment </h1>
<img src="flower2.jpg" align="left">
A flower, sometimes known as a bloom or blossom, is the reproductive structure found in flowering plants. The biological function of a flower is to effect reproduction, usually by providing a mechanism for the union of sperm with eggs.
</body>
</html>

Right Alignment
This alignment aligns the image to the right on the Web page respectively of the browser window.

Example: To show right alignment of an image.
<html>
<head> <title> Right Alignment </title> </head>
<body>
<h1> Right Alignment </h1>
Cimg src="flower2.jpg" align="right">
A flower, sometimes known as a bloom or blossom, is the reproductive structure found in flowering plants. The biological function of a flower is to effect reproduction, usually by providing a mechanism for the union of sperm with eggs.
</body> 
</html>

Question 4. Write HTML code to illustrate

  1. listed hyperlinks
  2. image hyperlinks

Answer:

Listed Hyperlinks: It is noticeable that <a> tag can also be used for more complex task (as with images or with lists etc.)

Example: To show listed hyperlinks.
<html>
<head> <title> List </title> </head>
<body> <h1>List </h1>
<ul>
<li> <a href="linkl.html"><img src ="F:Fruits-wallpaper-91.jpg" align="middle" height="75" width="75">
Fruit Chart </a></li><br><br>
<li> <a href= "link2.html">
<img src="F:\vegetable.jpg" align="middle" width="75" height="75">
Vegetable Chart </a> </li > </ul>
</body>
</html>

Output:
NCERT Solutions for Class 10 Foundation of Information Technology - Inserting Images and Links in HTML 1

Image Hyperlinks: Images can also be used as hyperlinks. To create image as a link, following syntax is used:
<a href = “URL”> <img src=”image1.jpg”> </a>

Example: To show image as link.
 <html>
 <head>
 < title>Image as Link</title)
 </head>
 <body>
 <a href "http://en.wikipedia.org/wiki/Tweety")
 <img src="D:\Class10\computer\tweetyl.jpg"></a>
 </body>
 </html>

Output:
NCERT Solutions for Class 10 Foundation of Information Technology - Inserting Images and Links in HTML 2

Question 5. Explain the following (with example):

  1. linking on same Web page.
  2. linking on different Web page.

Answer:

Linking on the Same Web Page

To create an internal link, you need to use a pair of <a> tags. The first <a> tag is used to specify the name of the target location for identification purpose. It is known as target fragment. You can use the <a> tag with its name or id attribute to identify a fragment. This type of anchor is commonly called as named anchor.
The first step is to make the target fragment. The simple syntax to do so is written below:
<a name =”aa”> Part A </a>
Where, “aa” is the name of fragment/segment you want to refer (like top, bottom etc.). The second <a> tag is used to create a link to the target fragment. The simple syntax to link to the target segment is written below:
<a href = “#aa”> ClickHere </a>
In the second <a> tag, the value of href attribute with # symbol is to be specified.

Example: To show the internal linking in an HTML document.
<html>
<head><title>Internal Linking<title></head>
<body>
<h1>Linking in a page </h1>
<h3>Click here to go to the
<a href="#bottom">bottom</a> of the page.</h3>
<br>><br><br><br><br><br><br><br><br> 
<br>><br><br><br><br><br><br><br><br>
<br>><br><br><br><br><br><br><br><br>
<a name="bottom"><h3> You are at the bottom of the page.</h3></a>
</body>
</html>

Output:
NCERT Solutions for Class 10 Foundation of Information Technology - Inserting Images and Links in HTML 3

Linking Sections of Different Web Pages

Internal linking enables us to link sections of different Web pages also. It can be done by specifying the name of the Web page and the section which is to be linked. To link two Web pages, you first need name to the section by using name attribute of <a> tag that you want to link. Suppose, we need to link a section of HTML1.html to HTML2.html. Create a named anchor in HTML1.html.
The syntax is given below:
<a name =”link”> Different Page </a>
After this, you have to write the code to refer to it, from Web page HTML2.html. Following is the code to do so:
<a href =”HTML1.html#link”>
Here, HTMLl.html is the name of html file to the section of which you want to link and # link is the segment name you want to link in that html file.

Multiple Choice Questions [1 Mark each]

Q1. Web browsers display images in the following format
(a) XBM
(b) JPEG
(c) GIF
(d) All of these
Answer: (d) All of these

Q2. Which tag is used to insert an image in Web page?
(a) <a>
(b) <table>
(c) <img>
(d) <p>
Answer: (c) <img> tag is used to insert inline image in a Web page.

Q3. The correct HTML code for inserting an image is CBSE 2012
(a) <img href=”image.gif”>
(b) <img> image.gif</gif>
(c) <img src = “image.gif”>
(d) <image src = “image.gif” >
Answer: (c) <img src=”image.gif “>

Q4. src attribute used with <img> tag stands for CBSE 2013
(a) screen (b) screen resolution count
(c) source (d) structure
Answer: (c) source

Q5. …………. attribute is used to specify the location of an image file.
(a) alt
(b) src
(c) align
(d) name
Answer: (b) src attribute is used to specify the location of an image file.

Q6. The text specified in the alt attribute is displayed as tooltip in
(a) Internet Explorer
(b) Google Chrome
(c) Both (a) and (b)
(d) None of these
Answer: (a) The text specified in alt attribute is displayed as tooltip in Internet Explorer only.

Q7. The alternate text of an image can be displayed by using attribute of the <img> tag.
(a) src (b) alt
(c) align (d) None of these
Answer: (b) alt attribute of the <img> tag is used to display the alternate text of an image.

Q8. alt attribute allows CBSE 2016
(a) addition of an alternate hyperlink
(b) addition of a border to image
(c) use of an alternative image in place of the specified image
(d) addition of alternative text about an image
Answer: (d) alt attribute allows addition of alternative text about an image.

Q9. The default alignment of images, that are inserted in Web page, is
(a) left
(b) right
(c) inline with text
(d) middle
Answer: (c) An image which is inserted in Web page by default placed inline with text.

Q10. Which is not a valid value in the align attribute of <img> tag? CBSE 2014,2013
(a) top
(b) center
(c) bottom
(d) right
Answer: (b) center is not a valid value in the align attribute of <img> tag. To align in center, <center> tag can be used.

Q11. Why is it important to specify width and height attribute in <img> tag? CBSE 2013
(a) To ensure that image is not copied
(b) The image will not render without these
(c) To stop the image from loading
(d) Helps the browser to load the Web page faster
Answer: (d) Helps the browser to load the Web page faster.

Q12. When creating a Web document, which unit is used to express an image’s height and width? CBSE 2013
(a) Centimetres
(b) Pixels
(c) Dots per inch
(d) Inches
Answer: (b) Image’s height and width unit are expressed in pixels or in per cent form.

Q13. The <a> tag is
(a) a container tag
(b) an empty tag
(c) a closing tag
(d) None of these
Answer: (a) <a> is a container tag, which requires starting as well as matching ending tag.

Q14. ………… is the default color of a hyperlink.
(a) Red
(b) Blue
(c) Green
(d) Black
Answer: (b) Blue

Q15. The tag used in HTML to link a Web page with other Web page is CBSE 2013
(a) <a> (b) <h> (c) <u> (d) <l>
Answer: (a) <a> anchor tag is used to create links.

Q16. Which tag tells, where a link starts? CBSE 2014
(a) <1> (b) <start>
(c) <a> (d) None of these
Answer: (c) <a> tag specify that a link starts, in which, href create a hyperlink.

Q17. Which command should be use to link a page with HTML page? CBSE 2013
(a) <a link = “page.htm” > </a>
(b) <a href = “page.htm”>page</a>
(c) <a connect = “page.htm”></a>
(d) <a attach = “page.htm”></a>
Answer: (b) <a href=”page.htm”>page</a>

Q18. With which code you .can make an image works as link? CBSE 2016
(a) <a href = “URL”>Text</a>
(b) “<a href=”ABC.html”><img src =”graphic.gif”>Click Here</a>
(c) <a ref=mailto:<img src = graphic.gif>Click Here</a>
(d) None of the above
Answer: (b) With <a href=”ABC.html”><img src= “graphic.gif >Click Here</a> image works as link.

Q19. To create a hyperlinked image
(a) the image tag should be within anchor tag
(b) the anchor tag should be within image tag
(c) the image tag should be before the anchor tag
(d) the image tag should be after the anchor tag
Answer: (a) The image tag should be within anchor tag to create hyperlinked image.

Q20. For internal linking, the section names are provided by attribute of <a> tag.
(a) title
(b) href
(c) name
(d) None of these
Answer: (c) For internal linking, section names are provided by name attribute.

Q21. Is it possible to link within the current page?
(a) No
(b) Only in framesets
(c) Yes
(d) None of these
Answer: (c) Yes, it is possible to link within the current page, which is called internal linking.

Q22. ………. attribute of the <a> tag is used to name a section in a Web page to create an internal link.
(a) href
(b) name
(c) align
(d) link
Answer: (b) name attribute is used to create an internal link.

Q23. …………….. attribute is used to set the color of a link while it is active.
(a) vlink
(b) alink
(c) Both
(a) and (b)
(d) None of these
Answer: (b) alink attribute is used to set the color of link while it is active.

Q24. The attribute which is used to send E-mails through a Website.
(a) tomail
(b) mailto
(c) Both
(a) and (b)
(d) None of these
Answer: (b) mailto attribute is used to send E-mails through a Website.

Q25. Choose the correct syntax to create an E-mail link. CBSE 2014
(a) <a href = “[email protected]”>
(b) <a href = “mailto:[email protected]”>
(c) email = “[email protected]”>
(d) <amail = “[email protected]”>
Answer: (b) <a href = “mailto:[email protected]”>

Q26. To display (X+Y)2, correct HTML code is         CBSE 2013
(a) <sub>(X+Y)2</sub>
(b) X+Y< sup > 2 </sup >
(c) (X+Y)<sup>2</sup>
(d) <sup>(X +Y)2</sup>
Answer: (c) (X+Y) <sup>2</sup> code is correct because superscript have to be placed in between <sup> and </sup> tags.

Fill in the Blanks [1 Mark each]

Q1. The <img> tag is an ………… tag, that means it has no closing tag.
Answer: empty

Q2. <img> tag is used for …………. images. CBSE 2014
Answer: displaying

Q3. …………… tag is used to create inline images. CBSE 2013, 2012
Answer: <img>

Q4. ……………. is an attribute of the <img> tag which specifies the location or URL of the image to be displayed.
Answer: src

Q5. An attribute is an extra piece of information associated with a …………….
Answer: tag

Q6. The ait attribute provides …………… for an image.
Answer: alternative information

Q7. The value for alt attribute is a text string of upto ………….. characters.
Answer: 1024

Q8. An image to be displayed in a Web page has to cover 25% of the browser window horizontally and 50% vertically. The attributes ………… and ………….of the <img> tag would be used for achieving this.
Answer: height, width

Q9. attribute is used to give border to an image. CBSE 2016
Answer: border

Q10. ………… is a word or image that when clicked take us to another Web page. CBSE 2013
Answer: Hyperlink

Q11. ………… tag is used to connect Web pages. CBSE 2014
Answer: <a>

Q12. ……. are used to connect Web pages. They are created with <a> tag. CBSE 2016
Answer: Hyperlinks

Q13. The …………. tag is considered to establish a hypertext relationship between the current document and another URL.
Answer: <a>

Q14. The ………….. attribute is used for specifying the URL of the anchor tag.
Answer: href

Q15. An ……….. link allows a link to another Web page or another Website. CBSE 2011
Answer: external

Q16. The …………….. attribute of <a> tag is used to provide information or a title for the linked document or Web page.
Answer: title

Q17. An link allows a link to another section on the same or different Web page.
Answer: internal

Q18. A visited link on a Website is generally underlined and …………… in color.
Ans. purple

Q19. The default color of alink attribute is ………… .
Answer: red

Q20. ………… is used to change the color of a visited link. CBSE 2016
Ans. vlink

Q21. Using the ………… type URL, you can create the E-mail hyperlink.
Answer: mailto

Q22. The tag ……….. is used to create superscripts and …………. tag is used to create subscripts on a Web page.
Answer: <sup>, <sub>

True or False [1 Mark each]

Q1. You can have inserted an image in your Web page which is physically present in your computer.
Answer: True With the help of <img src=”image URL”>, we can insert an image in Web page which is present in our computer.

Q2. If the image you are loading in the Web page is not available, then you want a text to appear in the image placeholder, text attribute lets you define this text.
Answer: False The alt attribute is used to define text to appear in the image placeholder, if image is not visible for any reason.

Q3. No value is specified with alt attribute of <img> tag. CBSE 2012
Answer: False alt attribute provides alternate text for an image if the image is not visible on Web page for any reason.

Q4. String as a value of alt attribute must be enclosed in quotation marks.
Answer: True alt attribute contains string which must be enclosed in quotation marks.

Q5. The general syntax for inline image is <img src = “file name” >.
Answer: True At the place of file name, path of the image is specified. If the image is in the same folder as HTML file, it is not needed to specify full path of an image.

Q6. The default alignment of image is right. CBSE 2014
Answer: False There is no default alignment of image with respect to text in HTML.

Q7. It is not important to specify an integer value as the width of the border of an image.
Answer: False Width takes an integer values that are in pixels.

Q8. The align attribute of the <img> tag is used to specify the text that is to be displayed in case the browser that does not support graphics.
Answer: False alt attribute is used to specify the text that is to be displayed in case the browser which does not support graphics.

Q9. We can put a border around an image by using width attribute. CBSE 2013
Answer: False We can put a border around an image by using border attribute.

Q10. border is an attribute of <a> tag. CBSE 2012
Answer: False border is an attribute of <img> tag.

Q11. The <a> tag is called the align tag. CBSE 2011
Answer: False The <a> tag is called anchor tag.

Q12. The anchor tag <a> signals the beginning of the text.
Answer: False Anchor tag is used to create hyperlinks not text.

Q13. The color of the hyperlinks in an HTML document can be changed.
Answer: True We can change the color of hyperlinks in HTML document.

Q14. Hyperlinks can also be created for links within the same document. Linking within the same document is called external linking.
Answer: False Linking within the same document is called internal linking.

Q15. It is not possible to create link within current document. CBSE 2012
Answer: False You can link various sections of the current document together, which is called internal linking.

Q16. The name attribute of the <a> tag allows the user to create links within the same document. CBSE 2011
Answer: True Because name attribute defines a name of a section in a document.

Q17. You should include a mailto function in the body of your document to allow user to respond to your Web page.
Answer: True The mailto function is used to send E-mails from the Website.

NCERT Solutions for Class 10 Foundation of Information Technology – Internet Basics

NCERT Solutions for Class 10 Foundation of Information Technology – Internet Basics

Very Short Answer Type Questions [1 Mark each]

Question 1. Why is Internet is so popular? CBSE 2004
Answer: Due to its extensible use and sharing of data, Internet becomes so popular.

Question 2. Mention any two major uses of Internet. CBSE 2003
Answer: The two major uses of Internet are as follows:

  1. For the students and educational purposes, Internet is widely used to gather information so as to do the research.
  2. We can send/receive the mail all over the world.

More Resources for CBSE Class 10

Question 3. Write two advantages of using Internet. CBSE 2006
Answer: Advantages of using Internet are as follows:

  1. It is used for communication, entertainment, searching information and for providing many types of services.
  2. It provides the facility of E-mail.

Question 4. Name the protocol, which helps you to communicate between a Web server and a Web browser.
Answer: HTTP

Question 5. Write the name of any two Internet Service Provider(ISP) in India. CBSE 2004,02
Answer: MTNL and Airtel.

Question 6. Name any two ways of wireless connections of Internet.
Answer: Wi-Fi and WiMax.

Question 7. Name any two Internet protocols used by Web.
Answer: HTTP and FTP.

Question 8. Name any five DSL broadband service providers in India.
Answer: BSNL, Airtel, Reliance, MTNL and Tata Indicom.

Question 9. What can a user do with WWW?
Answer: Using WWW, a user can download files, listen to music view video files and jump to other documents or websites by using hypertext links.

Question 10. Name any two major services provided by Internet.
Answer: E-mail and WWW.

Question 11. Can we use URL to access a Web page? How?
Answer: Yes, as a location on a Web server, which is called a Website and each Website has a unique address known as URL. So, an URL can be used to access a Web page.

Question 12. Which language is helpful to create Web pages?
Answer: HTML is used for designing Web page.

Question 13. Mr. Lai owns a factory which manufactures automobile spare parts. Suggest him the advantages of having a Web page for his factory.
Answer: The Web page provides the information to the clients about his factory of spare parts. Moreover, he can receive the order on the Internet from the clients using the Web page.

Question 14. Write the relationship between a Website and a Web server.
Answer: Web server is a computer on which a Website is hosted.

Question 15. Write the Web extensions (top level domain names) given to a Websites of the following types of organisations. CBSE 2008

  1. educational
  2. government

Answer:

  1. .edu
  2. .gov

Question 16. Write Web extensions given to sites of the following types of organisations. CBSE 2007

  1. network organisation
  2. government agencies

Answer:

  1. .net
  2. .gov

Question 17. Name two Web browsers of Internet.
Answer: Internet Explorer and Google Chrome.

Question 18. Identify Web addresses and E-mail addresses from the following CBSE 2009

  1. www.scrapbook.com
  2. [email protected]
  3. www.countrywide.co.in
  4. [email protected]

Answer:

  1. and
  2. and
  3. are Web address
  4. are E-mail address

Question 19. Expand the following Web extensions using with Web addresses.

  1. .org
  2. .in

Answer:

  1. Organisation
  2. India

Question 20. Write any two Web extensions used with Web addresses.
Answer: .org and .com

Question 21. Identify Web addresses and E-mail addresses from the following CBSE 2009

  1. www.kool.com
  2. [email protected]
  3. www.hotspider.co.in
  4. [email protected]

Answer:

  1. and
  2. Web address
  3. and
  4. E-mail address

Question 22. What is URL?
Answer: URL means Uniform Resource Locator. It is a full unique address of a Web page on the Internet. It specifies the Internet address of a file stored on a host computer connected to the Internet.

Short Answer Type Questions [2 & 3 Marks each]

Question 1. How did the Internet begin?
Answer: The Internet has gained popularity and emerged as an important and efficient means of communication. The term Internet is derived from the words ‘interconnection’ and ‘networks’. A network is a collection of two or more computers, which are connected together to share information and resources. The Internet is a worldwide system of computer networks, i.e. network of networks. Through Internet, computers become able to exchange information with each other and find diverse perspective on issues from a global audience. Most of the people uses Internet for sending and receiving E-mail and net surfing for retrieving information.

Question 2. Many organisations use both Internet and Intranet. Give some differences between Intranet and Internet.
Answer: Differences between Intranet and Internet are as follows:

  1. Internet is a Wide Area Network (WAN), while Intranet is a Local Area Network (LAN).
  2. Greater amount of information is available on Internet, while on Intranet specific amount of information is available.
  3. Internet is not safe as Intranet can be safely privatised as per the need.

Question 3. Write three disadvantages of using Internet.
Answer: The three disadvantages of using Internet are as follows:

  1. Cyber frauds
  2. Information misuse
  3. Computer virus circulation

Question 4. How do Internet help us?
Answer: Internet can be useful for us in following ways:

  1. Allows organisations to advertise their products.
  2. Provides information.
  3. Easily communicate with other people.
  4. Save paper as we can publish documents on the Internet.

Question 5. What is MODEM? CBSE 2006
Answer: MODEM stands for MOdulator/DEModulator. It is a hardware device that enables a computer to send and receive information over telephone lines by converting the digital data used by your computer into an analog signal used on telephone lines and the converting back once received on the other end.

Question 6. Define home page. Give two advantages of home page.
Answer: A home page is the first page of a Website.
The two advantages of home page are as follows:

  1. It helps viewers to find out what they can find on that site.
  2. Publicity of an individual or community.

Question 7. Write a note on IP address and give its characteristics.
Answer: Internet internally follows number based addressing system. Numeric address of a computer is called IP address by a scheme called Domain Name System (DNS). The IP address consists of four numbers from 0 to 255, separated by dots.
The characteristics of an IP address are as follows:

  1. IP addresses are unique.
  2. IP addresses are global and standardised.

Question 8. How do you differentiate between a Web address and an E-mail address?
Answer: The basic differences between a Web address and an E-mail address are as follows:

  1. E-mail address is a network address whereas Web address is the Internet address.
  2. An E-mail address always contains the ‘at the rate’ sign (@) whereas, a Web address never does.

Question 9. What is the significance of HTTP?
Answer: HTTP is a protocol used on Internet. It works in combination with WWW. It allows us to access hypertext documents on WWW. Since, WWW allows us to access or use multimedia files on the Internet and the hypertext files support multimedia.

Long Answer Type Questions  [5 Marks each]

Question 1. Why is Internet called ‘Network of Networks’?
Answer:

  • Internet is called ‘Network of Networks’ because it is global network of computers that are linked together by cables and telephone lines making communication possible among them. It can be defined as a global network over a million of smaller heterogeneous computer networks.
  • The network which consists of thousands of networks spanning the entire globe is known as Internet.
  • The Internet is a world wide collection of networked computers, which are able to exchange information with each other very quickly.
  • Mostly people use the Internet in two ways, E-mail and World Wide Web. In Internet, most computers are not connected directly, they are connected to smaller networks, which in turn are connected through gateways to the Internet backbone.
  • A gateway is a device that connects dissimilar networks. A backbone is central interconnecting structure that connects one or more networks.

Question 2. What is DNS and also explain its functions? CBSE 2013
Answer: DNS stands for Domain Name System. It is a hierarchical distributed naming system for computers, services or any resources connected to the Internet or a private network. It associates various information with domain names assigned to each of the participating entities.
The different functions of DNS are as follows:

  • It translates meaningful domain names into the numerical IP addresses, which is needed for the purpose of locating computer services and devices world wide.
  • It serves as the phone book for the Internet by translating human friendly computer host names into IP addresses.
  • The DNS can be quickly updated, allowing a service’s location on the network to change without affecting the end users.
  • It distributes the responsibility of assigning domain names and mapping those names to IP addresses by designating authoritative names servers for each domain.
  • It also specifies the technical functionality of database service. It defines the DNS protocol, a detailed specification of the data structure and data communication exchanges used in DNS, as part of the Internet Protocol Suite (IPS).

Question 3. Give an example of E-mail address and explain each part of it.
Answer: The example of an E-mail address is [email protected].
The format of E-mail address is username@hostname or domain name. So, as per the above example of E-mail address abc is the username and gmail.com is the name of hosting server or host (domain) name. Thus, we can say that E-mail address has two parts separated by symbol.

  1. Username: On the left side of separator @ is the user name. A user name cannot have blanks.
  2. Domain name for the host server: The portion to the right of @ identifies the server or host network that services your E-mail. It is also known as E-mail server.

Application Oriented Questions

Question 1. Read the following paragraph. Find six network and communication related abbreviations and give their expanded form alongwith a single-line definition of each of them. CBSE 2011
The RBI is planning to expand its connectivity with all major banks of India. The plan includes providing TCP connectivity through HTTP for easy access points and seeks help from some ISPs to join hands in this venture.
Also, there is a plan to set-up IIS and SMTP servers. Some banks will go for ADSL line while others will use leased line connectivity to access these services.
The RBI is also taking help of IIT professors in this venture.
Answer: Six network and communication related abbreviations are as follows:

  1. TCP (Transmission Control Protocol) A protocol developed for the Internet to get information from one network device to another.
  2. HTTP (HyperText Transfer Protocol) A protocol that transmits hypertext over networks. This is the protocol of the Web.
  3. ISP (Internet Service Provider) An organisation that provides access to the Internet through various connectivity methods.
  4. IIS (Internet Information Server) It is a Microsoft proprietary Web server software.
  5. SMTP (Simple Mail Transfer Protocol) It distributes E-mail messages and attached files to one or more electronic mail boxes.
  6. ADSL (Asymmetrical Digital Subscriber Line) A data communication technology that enables faster data transmission over copper telephone lines than a conventional voice band modem can provide.

Question 2. The following sentences describe the term Web browser.
Web browsers are programs used to explore the (1) ………… . A Web browser is an interface that helps a computer user gain access to all the content that is on the Internet and the hard disk of the computer. It can view (2) …………, text documents, audio and video files, games etc. More than one (3) …………. can also be installed on a single computer. The user can navigate through files, folders and (4) ………… with the help of a browser. When the browser is used for browsing (5) …………, the pages may contain certain links which can be opened in a new browser. Multiple tabs and windows of the same browser can also be opened. An example of Web browser is (6) ……….. .
Fill in the blanks with words from the list given below:
Internet, TCP, Images, Web browser, Photos, Websites, SMTP, Web pages, Google Chrome
Answer:

  1. Internet
  2. Images
  3. Web browser
  4. Websites
  5. Web pages
  6. Google Chrome

Question 3. Laluma Chakradhar wants a broadband connection to access her mails and stay informed about the latest happening in the field of Biotechnology. Can you suggest two Internet Service Providers (ISPs) of India to be approached for the same? CBSE 2011
Answer: BSNL and Airtel

Multiple Choice Questions [1 Mark each]

Question 1. What can you do with the Internet? CBSE 2011
(a) Exchange information with friends and colleagues
(b) Access pictures, sounds, video clips and other media elements
(c) Find diverse perspective on issues from a global audience
(d) Internet exchange information, access pictures, find diverse perspective on issue from a global audience.
Answer: (d) Internet exchange information, access pictures, find diverse perspective on issues from a global audience.

Question 2. Each computer connected to the Internet must
(a) be-a pentium machine
(b) have an unique IP address
(c) have a Web browser
(d) have a modem connection
Answer: (b) Each computer connected to the Internet must have an unique IP address.

Question 3. A set of rules that governs data communication is
(a) protocol
(b) information
(c) HTML
(d) E-mail
Answer: (a) A protocol is a set of rules that governs the communication between computers on a network.

Question 4. Which communication protocol is used by Internet?
(a) TCP/IP
(b) WWW
(c) HTML
(d) W3C
Answer: (a) TCP/IP manages the transmission of uata/file document on the Internet.

Question 5. Which part of TCP/IP is responsible for dividing a file or message into very small parts, at the source computer?
(a) TCP
(b) IP
(c) Both (a) and (b)
(d) None of these
Answer: (a) TCP part breaks the messages into smaller packets that are transmitted over the Internet.

Question 6. In Internet Protocol (IP), data is organised in the form of
(a) bundles
(b) packets
(c) switches
(d) parts
Answer: (b) IP has the task of delivering packets from the source host to the destination host.

Question 7. Internet E-mail is based on standards known as
(a) protocols
(b) networks
(c) Both (a) and (b)
(d) hardware
Answer: (a) Internet uses all its services like E-mail service through standard protocols.

Question 8. To joint the Internet, the computer has to be connected to a
(a) Internet architecture board
(b) Internet society
(c) Internet service provider
(d) None of the above
Answer: (c) Internet service provider is used to joint the Internet.

Question 9. The first network was
(a) ARPANET
(b) Internet
(c) NSFnet
(d) NET
Answer: (a) The Advanced Research Projects Agency NETwork (ARPANET) was the world’s first operational packet switching network.

Question 10. Digital information is converted into analog information by the modem at      CBSE 2011
(a) destination computer
(b) source computer
(c) Both (a) and (b)
(d) Neither (a) nor (b)
Answer: (b) Digital information is converted into analog information by modem at source computer.

Question 11. An organisation responsible for providing Internet services to customer is commonly known as
(a) Government
(b) ISP
(c) TCP/IP
(d) HTTP
Answer: (b) ISP are the companies that register themselves under the government domain according to the copyright law.

Question 12. Nick connects to the Internet at home using a laptop computer with a wireless connection. Nick is going to change to a desktop computer using a 1 Gbps ethernet cable connection.
Which of these should be the result of making the changes?
(a) Increased portability and decreased speed.
(b) Decreased portability and increased speed.
(c) Increased portability and increased speed.
(d) Decreased portability and decreased speed.
Answer: (b) Decreased portability and increased speed will be the result.

Question 13. Combination of multimedia and hyperlink is called
(a) hypermedia
(b) E-mail
(c) hypertext
(d) None of these
Answer: (c) Hypertext refers to the combination of text, graphic images, audio and video tracks and hyperlinks.

Question 14. In URL, http://www.cbse.coin/index.htm, which component identifies the path of a Web page?
(a) http
(b) www.cbse.com
(c) /index.htm
(d) All of these
Answer: (c) /index.htm, because path name identifies the path of a Web page.

Question 15. A collection of Web pages linked together in a random order is CBSE 2014
(a) a Website
(b) a Web server
(c) a search engine
(d) a Web browser
Answer: (a) A Website is a collection of Web pages linked together in a random order and displays related information on a specific topic.

Question 16. In URL, http://www.cbse.com/index.htm, which component identifies the Website?
(a) http
(b) www.cbse.com
(c) /index.htm
(d) All of these
Answer: (b) www.cbse.com, because domain name identifies the Website.

Question 17. Home page helps viewers to find out what they can find on the particular site? Home page is the
(a) first page of a Website
(b) index page
(c) about page
(d) None of these
Answer: (a) Home page refers to the initial or main or first Web page of a Website, sometimes called the front page.

Question 18. ………… is an example of text-based browser, which provides access to the Internet in the text-only mode.
(a) Mozilla Firefox
(b) Lynx
(c) Internet Explorer
(d) All of these
Answer: (b) Lynx is a highly configurable text-based Web browser.

Question 19. Which client software is used to request and display Web pages?
(a) Web server
(b) Multimedia
(c) FTP
(d) Web browser
Answer: (d) A Web browser is a program that your computer runs to communicate with Web servers on the Internet, which enables you to download and display the Web pages that you request.

Question 20. Google Chrome is an example of
(a) Web browser
(b) Web server
(c) HTTP
(d) WWW
Answer: (a) Web browser is the program that is used to explore the Internet. Thus, Google Chrome is an example of Web browser.

Question 21. Programs that ask servers for services are called
(a) users
(b) hosts
(c) clients
(d) programs
Answer: (c) In client server model, client is a piece of hardware/software that ask servers for services.

Question 22. A Web page is located using a
(a) Universal Record Linking
(b) Uniform Resource Locator
(c) Universal Record Locator
(d) Uniformly Reachable Links
Answer: (b) URL (Uniform Resource Locator) specifies the location of a specific Web page on the Internet.

Question 23. Kirti, a student, has written some points about Web pages and URL. CBSE 2015

  1. Which of the following statements are true about Web pages?
    (a) You cannot E-mail a link of Web page.
    (b) You cannot create a Web page.
    (c) Web pages are written in HTML.
    (d) Web pages are viewed through browser.
  2. Which of the following statements are true about URL?
    (a) URL means Uniform Resource Locator.
    (b) You can enter URL into address bar.
    (c) An example of URL is [email protected].
    (d) It is not necessary for URL to be unique.

Answer: 1. (c) and (d) 2. (a) and (b)

Question 24. An IP address is a string of ……….. numbers separated by periods. CBSE 2011
(a) 3
(b) 4
(c) 2
(d) 5
Answer: (b) An IP address consists of 4 numbers separated by periods.

Question 25. Domain names always have two or more parts, separated by
(a) commas
(b) periods (called dots)
(c) semicolon
(d) None of these
Answer: (b) A domain name is a hierarchical series of character strings representing different levels of domains separated by dot/period.

Question 26. A domain name ending with .org belongs to
(a) an educational institution
(b) an organisation
(c) a site that is highly organised
(d) a commercial Website
Answer: (b) On the Internet, all Websites owned and operated by an organisation are part of the .org domain.

Question 27. IP addresses are converted into        CBSE 2013
(a) a binary string
(b) alphanumeric string
(c) a hierarchy of domain names
(d) a hexadecimal string
Answer: (c) DNS translates domain names into their IP addresses and vice-versa.

Question 28. In all computers on the Internet, owned and operated by education institution form part of the
(a) .com domain
(b) .edu domain
(c) .mil domain
(d) .org domain
Answer: (b) The domain name edu provides domain registration at no cost to educational institutions.

Question 29. Which of these services will not be provided by a typical Internet Service Provider (ISP)?
(a) An E-mail address
(b) Modem
(c) A connection to the Internet
(d) Technical help
Answer: (a) ISP refers to a company that provides Internet services, modem, connection and technical help. It does not provide an E-mail address.

Question 30. A blog consists of
(a) images
(b) text
(c) links
(d) All of these
Answer: (d) A blog consists of images, text and links.

Question 31. Online discussion through posts about various topics is called
(a) E-Discussion
(b) Newsgroup
(c) E-mail
(d) Chat
Answer: (b) Newsgroup helps for online discussion.

Question 32. On Internet, to go to other Web page through button, the user should use CCE 2012
(a) Search tools
(b) Find and replace
(c) Search engine
(d) hyperlink
Answer: (d) On Internet, to go to other Web page available through button, the user should use hyperlinks.

Question 33. HTML is a markup language for describing Web document. HTML uses
(a) pre-specified tags
(b) user defined tags
(c) tags only for linking
(d) fixed tags defined by the language
Answer: (d) HTML uses fixed tags defined by the language.

Fill in the Blanks

Q1. Internet is a network of …………. .     CBSE 2011
Answer: networks

Q2. In Internet, …………. is responsible for handling the address of destination computer.
Answer: Internet protocol

Q3. A …………..  is a temporary connection that uses the Public Switched Telephone Network (PSTN) to connect to the Internet.
Answer: dial-up connection

Q4. ………… allows delivery of voice communications over IP networks.
Answer: VoIP

Q5. In WWW a client is called ……….. and a server is called ………
Answer: Web browser, Web server

Q6. Web pages on a site are linked together through a system of ………..
Answer: hyperlinks

Q7. Safari is a Web browser developed by ………..
Answer: Apple

Q8. ………. is a computer program that provides services to other computer programs.
Answer: Server

Q9. ………… refers to the amount of data that a signal or a circuit can carry. CBSE 2013
Answer: Bandwidth

Q10. The address of location of the document on WWW is called ……….. .
Answer: URL

Q11. The character based naming system by which server are identified is known as ……….. . CBSE 2013
Answer: domain name system

Q12. [email protected] represents an ………… .
Answer: E-mail address

Q13. Blogging is the act of posting content on a …….. .
Answer: blog

Q14. The bulletin board which produces news over Internet is known as ………… .
Answer: Newsgroup

Q15. In URL http://www.cbse.nic.in/ is a …………. protocol.
Answer: http

True or Folse

Q1. TCP helps in converting the digital signal to analog signal and vice-versa.
Answer: False The process of converting digital signal into analog signal is called modulation and is done by a modem.

Q2. WWW is an Internet service.
Answer: True The World Wide Web (WWW) is a set of programs, standards and protocols that allows the multimedia and hypertext files to be created, displayed and linked on the Internet.

Q3. Web pages and Websites are same.
Answer: False Website is the collection of Web pages .

Q4. Website can be accessed by URL.
Answer: True Each Website is accessed by its own address known as URL.

Q5. Home page is the server page of a Website.
Answer: False Home page is the first Web page of a Website. When a Website is opened, its home page is displayed.

Q6. Firefox is a Web server.
Answer: False Firefox is a Web browser.

Q7. URL is an Internet machine.
Answer: False L’RL is the Web address for a Website or a Web page.

Q8. IP address is given to every computer for its unique identification.
Answer: True An IP address serves two principal functions:

  1. Host or network interface identification
  2. Location addressing

Q9. Domain name .mil describes military address.
Answer: True It is according to domain names.

Q10. .edu is an education domain.
Answer: True .edu is a top level domain for education.

Q11. HTML is used to create Web pages.
Answer: True HTML is a markup language which is used to create Web pages.

NCERT Solutions for Class 10 Foundation of Information Technology – Working with Tables in HTML

NCERT Solutions for Class 10 Foundation of Information Technology – Working with Tables in HTML

Multiple Choice Questions [1 Mark each]

Question 1. 
Which of these tags belong to table? CBSE 2016
(a) <thead>,<body>,<tr>
(b) <table>,<head>,<tfoot>
(c) <table>,<tr>,<td>
(d) <table>,<tr>,<tt>
Answer: (c),<table>,<tr>, <td> tags are used with table.

Question 2. 
Which of the following tags gives a caption to the table?
(a) < caption >
(b) < summary >
(c) < frame >
(d) None of these
Answer:(a) <caption> tag is used to give caption to the table.

More Resources for CBSE Class 10

Question 3.
Which of the following is used to specify the beginning of a table’s row?
(a) <table>
(b) <tr>
(c) <row>
(d) <begin>
Answer:(b) <tr> tag indicates the beginning of a table’s row.

Question 4. 
HTML tag for row is
(a) <colspan>
(b) <tr>
(c) <rowspan>
(d) <td>
Answer:  (b) HTML tag for row is <tr>.

Question 5. 
Which tag is used to add columns in the tables?
(a) <colspan>
(b) <td>
(c) <tr>
(d) None of these
Answer: (b) <td> is used to add columns in the tables.

Question 6. 
The tag is used to specify the individual table data in a table.
(a) <tr>
(b) <td>
(c) <th>
(d)<table>
Answer:(b)The <td> tag is used to specify the individual table data in a table.

Question 7. 
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) border attribute is specified in <table> tag.

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

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

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

Question 11. 
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) justify option is not used for aligning data in a table.

Question 12. 
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) background attribute is used to set an image in the background of a table.

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

Question 14. 
The two common attributes of the <img> and the <table> tag are
(a) src and height
(b) height and width
(c) border and src .
(d) they do not have any common attributes.
Answer:(b) height and width are common attributes of the <img> tag and the <table> tag. 

Question 15. 
border, frame, cellspacing, cellpadding, align are the attributes of
(a) <body> tag
(b) <img> tag
(c) <table> tag
(d) None of these
Answer: (c) border, frame, cellspacing, cellpadding, align are the attributes of <table> tag.

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

Question 17. 
In the <td> tag, td stands for
(a) Table Data
(b) Table Time and Date
(c) Table Date
(d) None of these
Answer:(a) td stands for Table Data.

Question 18. 
What is the correct HTML code to left align the content inside a table cell?
(a) <td valign = “left”>
(b) <td align = “left”>
(c) <td left align >
(d) <td left>
Answer:(b) <td align = “left”>

Question 19. 
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) <td align =”right”>

Question 20. 
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) Combining two or more cells in a table on a Web page is called spanning.

Question 21. 
Which attribute tells, how many rows a cell should span?
(a) colspan = n
(b) rowspan = n
(c) Both (a) and (b)
(d) None of these
Answer:(b) rowspan = n will tell how many rows a cell should span.

Question 22. 
rowspan = n can be added to only which tag?
(a) <hr>
(b) <table>
(c) <td>
(d) <tr>
Answer: (r) rowspan = n can be added to only <td> tag.

Question 23. 
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) colspan attribute is used to merge two or more columns to form a single column.

Question 24. 
colspan = n can be added to tag.
(a) <hr>
(b) < table >
(c) <td>
(d) <tr>
Answer:(r) colspan = n can be added to <td> tag.

Question 25. 
The attribute helps to align data vertical in a single cell.
(a) align
(b) valign
(c) halig
(d) Both (b) and (c)
Answer:(b) valign attribute is used to align data vertically in a single cell.

Question 26. 
In the <th> tag, th stands for
(a) Table Heading
(b) Total Heading
(c) Table Header
(d) All of the above
Answer: (c) th stands lor Table Header

Very Short Answer Type Questions [1 Mark each]

Question 1. 
Name the tags which are used with <table> tag.
Answer: <tr>,<td>,<th> and <caption> tags are used with <table> tag.

Question 2. 
Describe the border attribute of <table> tag.
Answer: The border attribute is used to define- the thickness of the border, which surrounds the table.

Question 3. 
Why bordercolor attribute is used?
Answer: The bordercolor attribute is used to specify the color of the table’s border

Question 4. 
Name any two values specified in frame attribute.
Answer: The values that can be specified for frame attribute are void and above.

Question 5. 
Which attribute lets you control the display of select border sides of a table?
Answer: frame attribute displays the selected border sides of the table.

Question 6. 
How many values can be specified in rules attribute of <table> tag?
Answer: There are total five values that can be specified for rules attribute.

Question 7. 
Define cellspacing.
Answer: The cellspacing is used to create space between different cells in a table.

Question 8. 
Name two table attributes, which are used to set spacing in and between table cells.
Answer: The cellspacing and cellpadding are the attributes, which are used to set spacing in and between the table celts.

Question 9. 
What is the use of align attribute in < table > tag?
Answer: The align attribute defines the center, right or left alignment of the <tabie> tag.

Question 10. 
Name the values that can be used in valign attribute.
Answer:  The values that can be used in valign attribute are top, middle and bottom.

Question 11.
Why valign attribute is used? CBSE 2005
Answer: 
The valign attribute is used with <td> tag which helps to align data in a single cell if the cell span in more than one row.

Question 12. 
With which tag) align attribute is used?
Answer: 
The align attribute is used with both <td> tag and <table> tag.

Question 13. 
Which tag is used for giving heading to the columns?
Answer: The <th> tag is used to display the table heading only once for a table column.

Question 14. 
Which tags divide HTML tables in multiple section?
Answer: <thead>, <tfoot> and <tbody>

Question 15. 
What is the difference between <thead> and <tfoot> tags?
Answer: The <thead> tag is used to add a header in a table while <tfoot> tag is used to add a footer in a table.

Question 16. 
Can you insert hyperlinks inside table cells?
Answer: Yes, in spite of text we just have to insert the anchor tag between the <td> and </td> tags.
e.g.
<td>
<a href = “www.google.com”>link </a></td>.

Short Answer Type Questions

Question 1. 
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 tags <table> </table>
Row tags <tr> </tr>
Cell tags <td> </td>, <th> </th> and Caption tags <caption> </caption>.

Question 2. 
What do you mean by the border attribute?
Answer:Refer to text on page no. 156.

Question 3. 
Write HTML code to display a table with border of 5px.
Answer:

 <html><body>
 <table border = "5">
 <tr><td>l</td></tr>
 <tr><td>2</td></tr>
 </table> „
 </body></html >

Question 4. 
Describe the various values of rules attribute.
Answer:Refer to text on page no. 157.

Question 5. 
Differentiate between cellspacing and cellpadding in HTML table.
Answer:Differences between cellpadding and cellspacing are as follows:
NCERT Solutions for Class 10 Foundation of Information Technology - Working with Tables in HTML 1

Question 6. 
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 are used for specifying its dimensions in a Web page, width and height are specified in terms of pixels or percentage of the browser window.

Question 7. 
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 pixels or in percentage of the browser window, e.g.

 <table width = " 150">
 <tr><td>Celll</td><td>Cell2</td></tr>
 <tr><td>Cell</td><td>Cell4</td></tr>
 </tab1e>

Question 8. 
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 9. 
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.

Question 10. 
Why rowspan and colspan attributes are used?
Answer:Sometimes, a table cell is bigger than other. Its span is spread to more rows or columns. Such cells can be created with the help of rowspan and colspan attributes.

Question 11. 
Which attributes can you use with < table > tag but not with <tr> tag?
Answer:summary, rules, frame,*, border, cellpadding, cellspacing, height, width and bordercojor are the attributes that you can use with <table> tag but not with <tr> tag.

Question 12. 
Define the <th> and <tr> tags. Are these two tags similar? If yes, how?
Answer: <th> tag stands for Table Header. It is used to give headings to the various columns in our table. <tr> tag 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> also defines a data cell, which is taken as heading to the columns and the data is bold faced.

Question 13. 
What is header cell? Name the < table > tag, which is used as header cell.
Answer: The table header cell is coded with <th> tag. It 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.

Question 14. 
What are table sections? How can they be created?
Answer: In HTML tables, there are three different sections: header, body and footer. These sections can be created using <thead> (header section), <tbody> (body section) and <tfoot> (footer section) tags.
e.g

 <table>
 <thead>
 <tr> <th> Month</th><th>Savings</th></tr> </thead>
 <tbody>
 <tr><td>January</td><td>$100</td></tr>
 <tr><td>February</td><td>$80</td></tr>
 </tbody>
 <tfoot>
 <tr><td>Sum</td><td>$180</td></tr>
 </tfoot>
 </tab1e>

Question 15. 
Name the attributes that are used to do the following in HTML:

    1. merge two or more rows.
    2. change the background color of the cells in a table.
    3. vertically align cell content.
    4.  merge two or more columns.

Answer:

      1. rowspan
      2.  bgcolor
      3. valign
      4. colspan

Question 16. 
Name the attributes used for following:

      1. setting the cell width.
      2. setting cell’s background image.
      3. setting cell’s background color.
      4. changing the cell span.

Answer:

      1. width
      2.  background
      3. bgcolor
      4.  rowspan and colspan

 

Long Answer Type Questions [5 Marks each]

Question 1. 
Write the HTML code to create the exact table which is given below:
NCERT Solutions for Class 10 Foundation of Information Technology - Working with Tables in HTML 2
Answer:The HTML code is

 <html>
 <body>
 <table border="3">
 <tr align = "center" val i gn = "middle"> <th> ADMNO </th>
 <th>SNAME</th>
 <th>NAME</th>
 <th>DOB</th>
 </tr>
 <tr align="left" valign="bottom">
 <td>1110</td>
 <td>MANJIT</td>
 <td>RANJIT</td>
 <td>4-MAR-1998</td>
 </tr>
 </table>
 </body>
 </html>

Question 2. 
Explain the frame attribute and the various values of it.
Answer:Refer to text on page no. 157.

Question 3. 
Write an HTML code to create the following table:
NCERT Solutions for Class 10 Foundation of Information Technology - Working with Tables in HTML 3
Note:First row has Green background
Answer:The HTML code is

 <html>
 <body>
 <table border="2" align="left"> <thead bgcolor="green">
 <tr>
 <td>Roll Number</td>
 <td>Name</td>
 <td>Class</td>
 </tr></thead>
 <tbody>
 <tr>
 <td> 100 </td>
 <td> Amit </td>
 <td> 10 A </td>
 </tr>
 <tr>
 <td> 101 </td>
 <td> Ankit </td>
 <td> 10 B </td>
 </tr>
 </tr>
 <td> 102 </td>
 <td>Arnab </td>
 <td> 10C </td>
 </tr>
 </tbody>
 <tfoot>
 <tr>
 <td> Footer 1 </td>
 <td> Footer 2 </td>
 <td> Footer 3 </td>
 </tr>
 </tfoot>
 </table>
 </body>
 </html>

Question 4. 
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>
 CheadXtitle> 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
NCERT Solutions for Class 10 Foundation of Information Technology - Working with Tables in HTML 4

Question 5. 
Can you perform event handling in HTML tables? If yes, explain it.
Answer:Yes, for explanation refer to text on page no. 36.

Question 6. 
Observe the following table and write the HTML code to generate it:
NCERT Solutions for Class 10 Foundation of Information Technology - Working with Tables in HTML 5
Note : 1st row has pink background.
Answer:The HTML code is

 <html>
 <body>
 <table border = "1">
 <tr bgcolor = "pink" align = "center">
 <th>question< /th >
 <th>marks</th></tr>
 <tr><td rowspan = "3">l</td>
 <td>2</td>
 </tr>
 <tr>
 <td>2</td>
 </tr>
 <tr>
 <td>5</td>
 </tr>
 </table>
 </body>
 </html>

Question 7. 
Observe the following table and write the HTML code to generate it:
NCERT Solutions for Class 10 Foundation of Information Technology - Working with Tables in HTML 6
Answer:The HTML code is

 <html>
 <body>
 <table cell padding = "10" 
 cell spacing="0" border="l"> 
 <tr align = "center">
 <th>Periodl</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 8. 

Write names of two attributes each for the following tags: CBSE 2013

  1. <hr>
  2.  <body>
  3.  <img>
  4.  <table>
  5.  <a>

Answer:
NCERT Solutions for Class 10 Foundation of Information Technology - Working with Tables in HTML 7

Question 9. 
Identify which of the following is a tag or an attribute ? CBSE 2014

  1.  link
  2.  table
  3.  align
  4.  href
  5.  br

Answer:

  1.  link — attribute
  2.  table — tag
  3.  align — attribute
  4.  href— attribute
  5.  br — tag

Question 10. 

Write the HTML code to generate the following table on a Web page with the contents and alignment exactly as shown below:
NCERT Solutions for Class 10 Foundation of Information Technology - Working with Tables in HTML 8
Answer:The HTML code is

 <html>
 <body)
 <table border="l" width = "400”>
 <tr align="right"> 
<th>MOVTD</th> 
<th>MOVNAME</th>
 <th>ACTORS</th>
 </tr>
 <tr align="1eft">
 <td>M001</td>
 <td>HIT FACTORY</td>
 <td>4</td>
 </tr></table></body>
 </html>

Question 11. 
Write the HTML code to generate the following table with the contents exactly in the same format as shown within the table:
NCERT Solutions for Class 10 Foundation of Information Technology - Working with Tables in HTML 9
Answer:The HTML code is

<html Xbody>
 <table border="l">
 <tr>
 <th colspan="4" align=”center">Shopping Mall/th ></tr>
 <tr align = "center"
 <td>Floor</td>
 <td>No. ofToyCbr>Shops</td>
 <td>No. of FoodCbr>Shops</td>
 <td>No. of SportsCbr>Shops</td>
 </tr>
 </table>
 </body></html >

Question 12. 
Write the complete <TABLE>…</TABLE> tags to create a table with the following contents. Ensure that the background of each data cell should have the color as specified in the corresponding column heading.
Answer:

 <table)
 <caption>Colors</caption)
 <tr>
 <th>red</th>
 <th>green</th>
 <th>blue</tl>
 <th>orange</th)
 <th>cyan</th>
 </tr>
 <tr)
 <td bgcolor="red" width="100" height="50"></td>
 <td bgcolor="green" width="100" height="50"></td>
 <td bgcolor="blue" width="100" hei ght="50"></td>
 <td bgcolor="orange" width="100" hei ght="50"></td>    .
 <td bgcolor="cyan" width="100" height="50"></td>
 </tr>
 </table>

Question 13. 
Observe the following table and write the HTML code to generate it:
NCERT Solutions for Class 10 Foundation of Information Technology - Working with Tables in HTML 10
Answer:The HTML code is:

 <html>
 <body> <basefont face="cambria">
 <table border="l" bordercolor="black" cel 1spacing="0" width="320">
 <caption> Acdvities </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>

 

Application Oriented Questions

Question 1. 
Write the HTML code to generate the following Web page:
NCERT Solutions for Class 10 Foundation of Information Technology - Working with Tables in HTML 11
Note: The following points while generating the Web page:

  1. Link color is green, active link color is blue and visited link color is red.
  2. Title of the page is “Eat healthy, live healthy”.
  3. Heading of the page is maroon.
  4. Image is used in “Restaurant.jpg”
  5. Caption of table is blue
  6. Table border is blue and of size 2.
  7. The links are one.html, two.html, three.html and four.html.
  8. The E-mail id for contact us is ‘[email protected]’.

Answer:The HTML code is

 <htm!>
 <head>
 <title>Eat healthy, live healthy</title>
 </head>
 <body link="green" alink="blue" vlink="red"> <center>
 <hl>
 <font color="maroon">KHAO PIYO RESTAURANT</font >
 </hl>
 </center>
 <img src=“Restaurant.jpg" a1ign ="right" height="255" width="250”>
 Collect Information for                                                .
 <ul>
 <li><a href=" one.html ">Menus</a></li > 
 <liXa href=”two.html ">Reservation</a>
 </li> <liXa href =" three.html ">Catering</a></li>
 <li>
 <a href="four.html ”>Tours</a>
 </li>
 </ul>
 <center>
 <table border ="2" bordered or=''bl ue”> <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>
 < /tab1e>
 </center>
 <br>
 For further queries and reservation
 <a href=''mai 1 to:[email protected]">
 Contact Us</a>
 </body></html>
 

Question 2. 
If you type

 <table border="2">
 <tr align="center”>
 <th> Sun
 <th> Mon
 <th> Tue
 <th> Wed
 <th> Thu
 <th> Fri
 <th> Sat
 </tr>
 <tr align = "1eft">
 <td col span = "3" >
 <td> 1 </td>
 <td> 2 </td>
 <td> 3 </td>
 <td> 4 </td>
 </tr>
 </table>
 How the ouput will look like?
 Answer:The output will look like
 NCERT Solutions for Class 10 Foundation of Information Technology - Working with Tables in HTML 12

Question 3. 
Write the HTML code to generate the following output:
NCERT Solutions for Class 10 Foundation of Information Technology - Working with Tables in HTML 13
Answer:The HTML code is

 <html>
 <head>
 <ti tl e>Table</title>
 </head>
 <body>
 <table border="4" cell spacing=''7” cell spacing="5">
 <tr>
 <td>A</td>
 <td rowspan="2">B</td>
 <td>D</td> <td>E</td>
 </tr>
 <tr>
 <td>G</td> <td col span="2">H</td>
 <td>I</td>
 </tr>
 </table>
 </body>
 </html>

Question 4. 
Write an HTML code to print the following table:
NCERT Solutions for Class 10 Foundation of Information Technology - Working with Tables in HTML 14
Answer:

 <caption>
 <b>
 <font size="4'' color="red">
 Student Data </font>
 </b>
 </caption>
 <tr >
 <th>Student Name</th>
 <th>Roli No</th>
 <th>Address</th>
 <th>Marks</th>
 </tr>
 <tr>
 <td>Amrita</td>
 <td>l</td>
 <td>Shastri Nagar</td>
 <td>483</td>
 </tr>
 <tr>
 <td>Taruna </td>
 <td>2</td>
 <td>T.P Nagar</td>
 <td>4l8</td>
 </tr>
 <tr>
 <td>Priyanka</td>
 <td>3</td>
 <td>Saket</td>
 <td>489</td>
 </tr>
 </table>
 </body>
 </html>

Question 5. Carefully study the Web page given below. Identify 10 tags (structural as well as formatting tags) that have been utilised in creating this Web page and write the usage of each of them.
NCERT Solutions for Class 10 Foundation of Information Technology - Working with Tables in HTML 15
Answer:

  1.  <title> to specify the title of the Web page.
  2.  <body> contains all the content that is to be displayed on Web page and all the various formatting and structural tag.
  3.  <ul> used to create an unordered list.
  4. <li> to specify the various list items in a list.
  5. <caption> to provide caption to the table.
  6.  <table> used to create table in HTML document.
  7. <tr> stands for table row, used to create a table row.
  8. <td> stands for table data, helps to create cells in HTML table.
  9. <img> used to insert an image in HTML document.
  10. <a> stands for anchor tag. Use the href attribute to provide the reference of the Web page that you want to hyperlink.

Question 6. 
Observe the following Web page and write HTML code to generate it:
NCERT Solutions for Class 10 Foundation of Information Technology - Working with Tables in HTML 16
Note: the following points while generating the Web page:

  1. Background color of page is yellow.
  2. Link color i^.black and visited link color is green.
  3. Font style for the page is arial.
  4. Heading of the page is maroon.
  5. Image used is mainrhino.jpg.
  6. Table border is 2px.
  7. Use links as: For Whooping Crane as one.html

For White Rhino as two.html
For Sumatran Rhino as three.html
For Toucan as four.html
8.E-mail id for bottom message is abc@ xvz.com
Answer:
The HTML code is <html>
<body bgcolor=”yel1ow” 1ink=”black” vlink=”green”>
<basefont face=”arial”>
<hl align=”center”>
<font col or=”niaroon”>INDIAN RHINOCEROS</fontX/hl>
<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>
 <1i>
 <a href="one. html ">Whooping Crane</a></li>
 <1i>
 <a href=" two. html ">White Rhino</a>/1i >
 <1i>
 <a href="three. html ">Sumatran Rhino</a>
 </li>
 <1i>
 <a href="four. html ">Toucan</a></1i>
 </ul>
 <table border="2" align="center">
 <capti on>Fast Facts</capti on><tr><td>Type</td>
 <td>Mammal</td>
 </tr>
 <tr>
 <td>Diet</td>
 <td > FIerbivore< /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>
 <a href="mailto:[email protected]">
 For more Details</a>
 </body>
 </html>

Question 7.
 Carefully study the Web page given below. Identify 10 tags (structural as well as formatting tags) that have been utilised in creating this Web page and write the usage of each of them.
NCERT Solutions for Class 10 Foundation of Information Technology - Working with Tables in HTML 17
Answer:

  1. .<title> to specify title of the Web page.
  2.  <body> contains all the text content that is to be displayed on Web page and all the various formatting and structural tag.
  3.  <hl> defines the most important and biggest heading.
  4. <hr> used to separate content (or define a change).
  5. <img> used to insert an image.
  6.  <b> used to bold the text.
  7. <table> used to create a table.
  8. <caption> used to provide caption to the table.
  9. <tr> used to create a table row.
  10. <td> used to define data cells.

Question 8.
Observe the following Web page and write HTML code to generate it.
NCERT Solutions for Class 10 Foundation of Information Technology - Working with Tables in HTML 18
Note: the following points while generating the Web page:

  1. Title of the page is “Cleanliness”
  2. Link color is green.
  3. Font style for the page is arial.
  4. Heading of the page is maroon.
  5. Image used is clean.jpg.
  6. Table border is 2px and border color is red.
  7. Link for bottom message is contact.html.

Answer: The HTML code is

 <html>
 <head> <title> Cleanliness </title> </head>
 <body 1ink="green"> <basefont face="arial">
 <hl><font col or="maroon"> <center> IMPORTANCE OF CLEANLINESS </'center></font></hl> <hr>
 <img src="clean.jpg" align="left” height="120" width="80"><p align="justify">
 Cleanliness is not a work which we should do forcefully. It is a good habit and healthy way of our healthy life. All type of cleanliness is very necessary for our good health whether it is personal cleanliness, surrounding cleanliness, environment cleanliness, pet animal cleanliness or work place cleanliness (like school, college, office, etc). We all should be highly aware about how to maintain cleanliness in our daily lives.
 </p> <br>
 <0l> Factors affecting the environment <hr width="240" a 1 i gn=” 1 ef t" >
 <1i> Industrial activities <1i> Vehicles <li> Rapid urbanization and industrialization <li> Population overgrowth
 </ol>
 <table border="2" align="center" borderedor="red" width="600">
 <caption> Effects </caption>
 <tr> <td> Water Pollution is leading to a number of incurable diseases. </td> </tr>
 <tr> <td> Because of Air Pollution there are increasing case of pulmonary tuberculosis and thromosis and various sorts of brain and heart complications. </td> </tr>
 <tr> <td> Digital Media < /td></tr>
 <tr> <td> Soil-pollution may have negative effects on farm output ratio. </td> </tr>
 <tr> <td> Noise-pollution have negative effects on hearing or auditory sense organs. </td> </tr>
 <tr> <td> Thermal pollution is raising the environment temperature. </td> </tr>
 </tab1e>
 <hr><center> For more details <a h ref=" contact.h tml"> ClickHere </a> </center>
 </body>
 </html>

 

Fill in the Blanks [1 Mark each]

Question 1.
To insert a table on a Web page, we use  ………………. tag.
Answer: <table>

Question 2.
The tag to start a table is
Answer:<table>

Question 3.
…………… tag is used to insert data into a table.
Answer: <td>

Question 4.
The <td> tag is a …………………
Answer: container

Question 5.
The……………. attribute is used to display a specific portion of a table border.
Answer: frame

Question 6.
frame attribute is used with…………attribute.
Answer: border

Question 7.
There are total………… values for rules attribute in <table> tag.
Answer: 5

Question 8.
In the rules attribute, the………… value helps to display a table border only between rows.
Answer: rows

Question 9.
Cellspacing is used to create space between different…………… in a table.
Answer: cells

Question 10.
The….. is an attribute of the < table > tag to set the distance between the cell content and its boundary.
Answer: cellpadding

Question 11.
To set image as background of an HTML table, you can use………………… attribute.
Answer: background

Question 12.
By default, color of a table is…………..
Answer: white

Question 13.
The height and width attributes of < table > tag are specified in terms of………….. or percentage.
Answer: pixels

Question 14.
The… attribute is used to provide information about a table.
Answer: summary

Question 15.
<td> tag can only be present inside……….
Answer: <tr>

Question 16.
The………………. attributes is used to combine the cells vertically.
Answer: rowspan

Question 17.
The……………… attribute is used to span two or more columns in a table.
Answer: colspan

Question 18.
The……………… attribute is used to align the data vertically within cells.
Answer: valign

Question 19.
The <tr> tag can only be present inside…………tag.
Answer: <table>

Question 20.
The <thead> tag is used to specify the………..part of the table.
Answer: header

True or False [1 Mark each]

Question 1.
A cell is an intersection of a row and a column.
Answer: True A cell is an intersection of a row and a column.

Question 2.
The cellpadding attribute is used with <td> tag.
Answer: False The cellpadding is used with <table> tag.

Question 3.
<caption> is placed just above the < table> tag.
Answer:False <caption> tag is placed inside the <table> tag.

Question 4.
<td> will make the text bold.
Answer:False <td> is a table data. It is used to define a cell of a table that contains data.

Question 5.
The border is an attribute of <a> tag.
Answer:F3lSB The border is an attribute of <table> tag.

Question 6.
The default value of border attribute is 1.
Answer:False The default value of border attribute is 0.

Question 7.
The cols value in the rules attribute, allows you to display table border only between columns.
Answer:True The cols value in the rules attribute is drawn between columns only.

Question 8.
The cellspacing attribute tells the browser how much space to include between the walls of the table.
Answer:False cellspacing attribute is used to create space between different cells in a table.

Question 9.
< caption > tag gives heading to a Web page.
Answer:False <caption> tag gives title or caption for the table.

Question 10.
cellpadding attribute is used with <body> tag.
Answer:False cellpadding attribute is used with <table> tag.

Question 11.
The rowspan attribute with < table > tag is used to merge more than one cells row wise.
Answer:True The rowspan attribute merges the cells row wise in a table.

Question 12.
The rowspan attribute is used to make a cell span multiple columns.
Answer:False The rowspan attribute is used to make a cell span multiple rows.

Question 13.
The align and valign are the attributes used with <td> tag to set the alignment of data in a cell.
Answer:True The align and valign attributes are used to set alignment of the data.

Question 14.
The <td> tag (column setting) have higher priority than <tr> tag (row setting).
Answer:True The <td> tag (column setting) have higher priority than <tr> tag (row setting).

Question 15.
Table row <tr> tag can accept one attribute.
Answer:False The <tr> tag can accept many attributes.

Question 16.
<th>‘tag is used to specify the column heading in a table.
Answer:True <th> tag is used to specify the column heading in a table.

NCERT Solutions for Class 10 Foundation of Information Technology – Database Concepts

NCERT Solutions for Class 10 Foundation of Information Technology – Database Concepts

Very Short Answer Type Questions [1 Mark each]

Question 1. What is database? Give example. CBSE 2010
Answer: A collection of related information organised as tables is known as database, e.g. INGRES, MySQL etc.

Question 2. Write the purpose of DBMS. CBSE 2007
Answer: DBMS is used to store logically related information at a centralised location. It facilitates data sharing among all the applications requiring it.

More Resources for CBSE Class 10

Question 3. Write the relationship between a database and a table. CBSE 2008
Answer: A database contains multiple tables whereas, a table cannot exist outside a database.

Question 4. Give any one use of database. CBSE 2003
Answer: A database is used to store logically related information in table.

Question 5. What is field in database? Give an example.
Answer: A field is an area, reserved for a specific piece of data. It is also known as attribute, e.g. Customer_Name.

Question 6. Define the term DBMS. CBSE 2010
Answer: The full form of DBMS is Database Management System. It is a computer based record keeping system.

Question 7. State the primary goal of a DBMS.
Answer: To provide a convenient and efficient environment in which we can store and retrieve information.

Question 8. Write any two uses of database management system. CBSE 2007
Answer:

  1. DBMS is used to store data at a centralised location.
  2. It is used to minimise data redundancy and data inconsistency.

Question 9. Give any two disadvantages of the database.
Answer:

  1. High complexity
  2. Database failure

Question 10. Write any two advantages of using database.
Answer:

  1. Can ensure data security.
  2. Reduces the data redundancy.

Question 11. What is a primary key? CBSE 2003
Or
Define primary key with an example. CBSE 2005
Or
What is primary key? Give an example. CBSE 2007
Or
What is a primary key in database? Give an example. CBSE 2010
Answer: A field which uniquely identifies each record in a table is known as primary key. e.g. empld is the primary key of the Employee table.

Question 12. Give one advantage of using primary key.
Answer: A primary key uniquely identifies the record in the table.

Question 13. What is the significance of a primary key?
Answer: A primary key cannot allow null values and must have a unique index.

Question 14. Name two possible primary keys for an Employee table. CBSE 2007
Answer: Possible primary keys for an Employee table are empcode, empphonenumber.

Question 15. Write the significance of a foreign key.
Answer: A foreign key is used to Establish relationship between any two tables of RDBMS.

Question 16. What is the default extension of OO.o not zero BASE database? CBSE 2005
Answer: The default extension of OO.o BASE database is .odb.

Short Answer Type Questions  [2 & 3 Marks each]

Question 1. What are the main purposes of a database system?
Answer:

  • Storage of information.
  • Retrieval of information quickly.
  • Sorting, selecting data that satisfies certain criteria (filtering).
  • Produce the report in some standardised and readable format.

Question 2. How are fields, record and a table related to each other? Explain with the help of an example. CBSE 2007
Answer: Fields are one type of information. A record contains logically related fields. A table Emp name contains logically related records.

EmpNo Name Salary
1. Shridhar 20000
2. Raghav 40000

Here EmpNo, Name and Salary are three different fields. 1, Shridhar, 20000 represents one complete record.

Question 3. What is the difference between ‘Rows’ and ‘Columns’ in a table? CBSE 2002
Answer: In a table, rows are called records and columns are termed as fields. A row stores complete information of a record whereas column stores only similar data values for all records.

Question 4. Distinguish between data and information. CBSE 2007
Answer: Distinguish between data and information are as follows:

Data Information
It is a raw facts. It is a process form of data.
It considers facts symbols, images for reference or analysis. It considers knowledge derived from study, experience or instruction.
e.g. 23 is a data. e.g. age = 23 is information.

Question 5. Define query in the context of database.
Answer: A query is an inquiry into the database using the SELECT statement.These statements give you filtered data according to your conditions and specifications indicating the fields, records and summaries which a user wants to fetch from a database.

Question 6. Define forms and what is the need of using them? CBSE 2006
Answer: In a database, a form is a window or a screen that contains numerous fields or spaces to enter data. Forms can be used to view and edit your data. It is an interface in user specified layout.
e.g. a user can create a data entry form that looks exactly like a paper form. People generally prefer to enter data into a well-designed form, rather than a table.

Question 7. What do you understand by report?
Answer: When you want to print those records which are fetched from your database, design a report. It is an effective way to present data in a printed format. It allows you to represent data retrieved from one or more tables, so that it can be analysed.

Question 8. What do you mean by DBMS? CBSE 2004
Answer: It is a collection of programs that enables users to create, maintain database and control all the access to the database. It is a computer based record keeping system. DBMS is a software package that manages database, e.g. MySQL, INGRES, MS-ACCESS etc.
DBMS is actually a tool that is used to perform any kind of operation on data in database.

Question 9. Define RDBMS.
Answer: RDBMS is a type of DataBase Management System that stores data in the form of relations (tables). Relational databases are powerful, so they require few assumptions about how data is related or how, it will be extracted from the database.

Question 10. A table named School (containing data of students of the whole school) is created, where each record consists of several fields including AdmissionNo (Admission Number), RollNo (Roll Number), Name. Which field out of these three should be set as the primary key and why? CBSE 2007
Answer: AdmissionNo should be set as primary key because admission numbers are unique for each and every students of the school, which is not possible in the case with RollNo and Name.

Question 11. What is the utility of primary key in database? Write distinct features of primary keys. CBSE 2013
Answer: Primary key is used to uniquely identify the record in a database. It can be a column or a set of columns in the table. Main features of primary key are as follows:

  1. It must contain a unique value for each record of table.
  2. It does not contain null values.

Long Answer Type Questions [5 Marks each]

Question 1. Discuss the components of a database.
Answer: A database consists of several components. Each component plays an important role in the database system environment.
The major components of database are as follows:

  • Data
    It is raw numbers, characters or facts represented by value. Most of the organisations generate, store and process large amount of data. The data acts as a bridge between the hardware and the software. Data may be of different types such as User data, Metadata and Application Metadata.
  • Software
    It is a set of programs that lies between the stored data and the users of database. It is used to control and manage the overall computerised database. It uses different types of software such as MySQL, Oracle etc.
  • Hardware
    It is the physical aspect of computer, telecommunication and database, which consists of the secondary storage devices such as magnetic disks, optical discs etc., on which data is stored.
  • Users
    It is the person, who needs information from the database to carry out its primary business responsibilities.

The various types of users which can access the database system are as follows:

  • Database Administrator (DBA)
    A person, who is responsible for managing or establishing policies for the maintenance and handling the overall database management system is called DBA.
  • Application Programmers
    The people, who write application programs in programming languages to interact and manipulate the database are called application programmers.
  • End-user
    A person, who interacts with the database system to perform different operations on the database like inserting, deleting etc., through menus or forms.

Question 2. Define database management system. Write two advantages of using database management system for school. CBSE 2007,05, 04
Answer: DataBase Management System (DBMS) is a collection of programs that enable users to create, maintain database and control all the access to the database. The primary goal of the DBMS is to provide an environment that is both convenient and efficient for user to retrieve and store information.

The advantages of using DBMS for school are as follows:

  1. In school, DBMS is used to store the data about students, teachers and any other related thing at a centralised location.
  2. It provides security to the personal information of the school, stored in it.

Question 3. Distinguish between a record and a field in a table, with an example. CBSE 2007,05
Answer: Distinguish between a record and a field in a table are as follows:

Record Field
It is a collection of data items, which represent a complete unit of information about a thing or a person. It is an area within the record reserved for a specific piece of data.
A record refers to a row in the table. A field refers to a column in the table.
Record is also known as tuple. Field is also known as attribute.
e.g. if Employee is a table, then entire information of an employee is called a record. e.g. if Empolyee is a table, then empld, empName, department, salary are the fields.

Question 4. Write the steps to design a database.
Answer: Steps to Design a Database
There are various steps to design a database which are as follows:

  • Step 1 Determine the purpose of your database The first step of designing a database is to determine the purpose and mechanism to design and use it.
  • Step 2 Determine the tables Tables are one of the most important elements of a database, consist of rows and columns. To create a well-defined database, you have to keep some conditions which are as follows:
    • A table should not contain duplicate information.
    • Each table should contain information about one subject.
      e.g. One table is used to contain the personal information of the students and the other is used to contain the marks scored by the student.
  • Step 3 Determine the fields After creating a table, you need to decide the type and number of fields required for the tables in your database. Each field in a table contains individual facts about the table’s subject.
    e.g. A customer table may include company name, address, city, state and phone number fields.
  • Step 4 Identify the primary key in a table From the fields of table, you need to identify a primary key which uniquely identifies each individual record of the table. The primary key helps you to reduce data duplication in the table.
  • Step 5 Determine the relationship between tables In this step, you need to determine relationship between two or more tables in your database. You can set-up a relationship between tables on the basis of common field between them. Establishing a relationship allows you to fetch any information from both the tables.
  • Step 6 Refine the design After you have designed the tables, fields and relationships, its time to study the design and detect any faults that might remain.
  • Step 7 Enter data and create other database objects When you are satisfied that the database structure meets the goals you needed, add all your existing data to the tables.

Application Oriented Questions

Question 1. Consider the following table
NCERT Solutions for Class 10 Foundation of Information Technology - Database Concepts Q1

  1. Which of the above field can be selected as a primary key?
  2. EmpName field also has unique values for all the records. Can it be made primary key? Give answer with reason.

Answer:

  1. EmpNo can be selected as a primary key.
  2. EmpName is having unique values, but there is no guarantee that if more employees are included then there would not be multiple people with similar names.
    So, in future its values may be duplicate. Thus, it cannot be made as a primary key.

Question 2. Sanchita is working for a nationalised bank and is in the process of creating a table to store the details of customers of the bank.
Find out, which of the following fields of table Bank can be selected as primary key, candidate key and alternate key? CBSE 2011
Account No, Customer Name, Date of Birth, PAN Number, Opening Balance
Answer:
Primary key AccountNo
Candidate key AccountNo and PAN Number
Alternate key PAN Number

Question 3. Consider the following database Student
NCERT Solutions for Class 10 Foundation of Information Technology - Database Concepts Q3

  1. The marks obtained by the student with RollNo. 1101 is?
  2. What is the name of the student, who has got the highest marks and what is the amount of scholarship awarded to him/her?
  3. How many records are there in the table?
  4. How many fields are there in the table?

Answer:

  1. 95.4
  2. Mohan Garg and scholarship awarded is 50000.
  3. 5
  4. 6

Question 4. The director of a company uses a database to store data about job title. This is a part of the database given below
NCERT Solutions for Class 10 Foundation of Information Technology - Database Concepts Q4

  1. How many records are there in this part of the database?
  2. How many fields are there in this part of the database?
  3. What is the job title of the employee with Payroll Number M421?
  4. Which department has maximum employees and what are their Payroll Numbers?

Answer:

  1. 6
  2. 6
  3. Secretary
  4. Finance department and their Payroll Numbers are A621 and M502.

Question 5. Identify the columns out of the given three, which should not be present in each of the following tables:
NCERT Solutions for Class 10 Foundation of Information Technology - Database Concepts Q5
Answer: (i) DateofBirth (ii) Admno (iii) Phonenumber

Multiple Choice Questions [1 Mark each]

Q1. Facilities offered by databases are
(a) The ability to store a large amount of data in a structured format, easy update, sort query, production of reports.
(b) Easy editing, spell check, perform calculations, library of mathematical functions, replication.
(c) The ability to rotate images, copy and paste, fill scale.
(d) None of the above
Answer: (a) Databases have ability to store a large amount of data in structured format, easy update, sort query, production of reports.

Q2. Which of the following is not an example of database? CBSE2011
(a) Cross knot game
(b) Employee payroll management
(c) Numeric calculator
(d) Customer management system
Answer: (c) Numeric calculator because it is used to calculate the numeric numbers only as it is unable to store data.

Q3. Database is a combination of CBSE 2011
(a) hardware and software
(b) hardware and operating system
(c) software and operating system
(d) utility programs
Answer: (a) A database consists of several components. These are data, software, hardware and user.

Q4. Operations performed on a database are controlled by
(a) user
(b) hardware
(c) DBMS
(d) RDBMS
Answer: (a) Users are those persons, who need the information from the database to perform operations.

Q5. Database is made up of all the following components except
(a) tables
(b) queries
(c) forms
(d) formula bar
Answer: (d) Database is made up of tables, queries and forms.

Q6. Data is stored in RDBMS in the form of
(a) table
(b) query
(c) report
(d) record
Answer: (a) Relational Database Management System stores data in the form of relation. As we know, relations are known as table.

Q7. Out of the following, which one is the most appropriate data field in context of employee table, if only one of these is required? CBSE 2011
(a) Age in years
(b) Date of birth
(c) Age in days
(d) Age in months
Answer: (b) Date of birth is the most appropriate data field in context of employee table.

Q8. All the information about a thing or a person is known as a
(a) database
(b) file
(c) field
(d) record
Answer: (d) A record refers to a raw of data, which represents a complete set of information in a table.

Q9. Which of the following is not the main building block of a database?
(a) Lists
(b) Queries
(c) Reports
(d) Forms
Answer: (a) The main building blocks of database are tables, queries, forms and reports.

Q10. Which of the following best describes a form? CBSE 2013
(a) Form enables people to enter or view data in a database easily
(b) Form summarises and prints data
(c) A form filters data from a database based on a criteria
(d) All of the above
Answer: (a) Form enables people to enter or view data in a database easily.

Q11. DBMS is a program that controls the creation, maintenance and use of database. Here, DBMS referred to
(a) Digital Base Management System
(b) Data Build Management System
(c) DataBase Management System
(d) DataBase Management Service
Answer: (c) Here, DBMS stands for Database Management System.

Q12. Computer based record keeping system is known as
(a) Data Manipulation System
(b) Computerised Data System
(c) Computerised Record keeping system
(d) DBMS
Answer: (d) DBMS is a collection of programs that enable user to create and maintain database. Also, it is a computer based record keeping system.

Q13. RDBMS provides relational operators to manipulate the data. Here, RDBMS refers to
(a) Record Database Management System
(b) Relational Database Management System
(c) Reference Database Management System
(d) None of the above
Answer: (b) RDBMS stands for Relational Database Management System, which provides operator to manipulate the data stored into the database table.

Q14. A database that contains tables linked by common fields is called a
(a) Centralised database
(b) Flat file database
(c) Relational database
(d) None of these
Answer: (c) Relational database stores data in the form of tables which are linked by common fields.

Q15. Duplication of data is known as CBSE 2013
(a) data security
(b) data incomplete
(c) data redundancy
(d) None of these
Answer: (c) Data redundancy means duplication of data. It eliminates replication of data item into different files from a large database.

Q16. Which of the following fields will not make a suitable primary key? CBSE 2011
(a) A customer’s account number
(b) A date field
(c) An auto number field
(d) A student’s admission number
Answer: (b) From the given options, data field can not be set as a primary key because it can’t be fixed for an object.

Q17. Key field is a unique identifier for each record. It is defined in the form of
(a) rows
(b) columns
(c) tree
(d) query
Answer: (b) Key is a data item that allows you to uniquely identify individual occurrences which is defined as the column or set of columns.

Fill in the Blanks [1 Mark each]

Q1. ………….. is a collection of related information. CBSE 2011
Answer: Database

Q2. In database, all the data are stored at a ……………. location.
Answer: centralised

Q3. Table is also known as ………… .
Answer: relation

Q4. A field in a table is also called as ………………… .
Answer: column

Q5. ………….. is the smallest part of a table in which one data item can be kept. CBSE 2011
Answer: Field

Q6. A set of related data item is called as ……………. .
Answer: record

Q7. The database is managed by a software package known as …………….. .
Answer: DBMS

Q8. Primary key is used to …………….. identify the record
Answer: uniquely

Q9. A foreign key is a reference of the ………….. key in another table.
Answer: primary

Q10. The candidate key, which is not used as primary key is called ………….. key.
Answer: alternate

True or False [1 Mark each]

Q1. Database is the collection of logically non-related data.
Answer: False A database is the collection of integrated and logically related data.

Q2. A relationship cannot be created with the help of a table.
Answer: False A relationship is a connection between two tables of data.

Q3. Field contains set of characters.
Answer: True It is the individual sub-component of one record. It contains set of characters, which have a proper meaning.

Q4. A report allows you to represent data retrieved from one or more tables so that, it can be analysed and printed if required.
Answer: True When you want to print those records which are fetched from your database then, reports are more useful for this purpose.

Q5. If a piece of data (field value) is stored in two places in the database, then storage space is wasted and changing the data in one place will not cause data inconsistency. CBSE 2011
Answer: False If a piece of data is stored in two places in the database, then storage space is wasted and changing the data in one spot will cause data inconsistency.

Q6. A database can have only one table. CBSE 2011
Answer: False No, database does not have a limit on number of tables. It depends on the disk space.

Q7. Primary key field gives us permission to record duplicate entry.
Answer: False A primary key is a key which identifies records uniquely in a table so it does not give us permission to record duplicate entry.

Q8. A primary key field does not allow numbers.
Answer: False Primary key has to identify a unique value which can be present in a table, in a number form also. It means, primary key field allow number too.

Q9. A primary key value can be NULL.
Answer: False The primary key of table is used to uniquely identify each and every row in the table. So, its all keys and columns must be defined as NOT NULL.

Q10. A table can have multiple primary keys. CBSE 2013
Answer: False If we create multiple primary keys in a table, then primary key will be unable to find the unique key value.

Q11. A foreign key is a primary key in another table.
Answer: True When a table’s primary key field is added to a related table in order to create the common field which relates two tables, it is called a foreign key in the related table.