0% found this document useful (0 votes)
5 views

AS QB V IntroductiontoHTML

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

AS QB V IntroductiontoHTML

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Question Bank(Answer Scheme)

Grade : V Subject: Computer Studies


Topic: Introduction to HTML

Q. I Select the correct option:

1. Choose the correct HTML tag to make a text italic. [Prev. Yr.
a. <ii> Ques.]
b. <italics>
c. <i>
d. <italic

2. Each list item in an ordered or unordered list has a ____ tag. [Prev. Yr.
a. <ol> Ques.]
b. <li>
c. <list>
d. <il>

3. HTML stands for - TB


a. HyperText Marking Language
b. HyperText Markup Language
c. HighlightText Markup Language
d. HyperText Machine Language

4. Which of the following can not be used as a HTML Texteditor ? TB


a. Notepad++
b. Atom
c. Wordpad
d. Brackets

5. Which of the following is the root element of an HTML document ? TB


a. <html>...</html>
b. <head>...</head>
c. <title>...</title>
d. <body>...</body>

6. What will be the output of the following HTML code? [Prev. Yr.
(a-b)<sup>2</sup> = a<sup>2</sup>-2ab +b<sup>2</sup> Ques.]
a. (a-b)2=a2+2ab+b2
b. (a+b)2=a2+2ab+b2
c. (a-b)2=a2-2ab+b2
d. (a+b)2=a2-2ab+b2
7. What will be the output of the following HTML code? [Prev. Yr.
<b><u>Saturn’s storms </b></u>are thought to originate in <u>water Ques.]
clouds</u>.
a. Saturn’s storms are thought to originate in water clouds.
b. Saturn’s storms are thought to originate in water clouds.
c. Saturn’s storms are thought to originate in water clouds.
d. Saturn’s storms are thought to originate in water clouds.
Ans. a. Saturn’s storms are thought to originate in water clouds.

8. A __________ is a program used to access and view websites. [Prev. Yr.


a. web client Ques.]
b. web server
c. web browser
d. webpage

9. Tags in HTML are also called __________. [Prev. Yr.


a. Elements Ques.]
b. empty tags
c. container tags
d. Functions

10. Anisha wants to change the background color of her website to blue. Which tag [Prev. Yr.
can she do the same? Ques.]
a. <body bgcolor=”blue”>
b. <font color=”#008000”>
c. <font color=blue>
d. <bgcolor=”blue”>

11. The _________ tag is used to begin a new line in HTML. [Prev. Yr.
a. <p> Ques.]
b. <b>
c. <center>
d. <br>

12. The ______________ tag is used to keep the content in the center of the page. [Prev. Yr.
a. <h1> Ques.]
b. <center>
c. <b>
d. <font>

13. What is the title of the given web page? [Prev. Yr.
Ques.]
a. file:///C:/Users/Admin/Desktop/HTML/Christmas.html
b. Christmas.html
c. .html
d. HTML/Christmas.html

14. ____________ tag is used to display text in a smaller size above the normal line. [Prev. Yr.
a. Superscript Ques.]
b. Subscript
c. Paragraph
d. Line break

15. _________ tag is used to create an ordered list. [Prev. Yr.


a. <ul> Ques.]
b. <dl>
c. <li>
d. <ol>

16. ______ tag is used to display text in a smaller size below the normal line. [Prev. Yr.
a. Superscript Ques.]
b. Subscript
c. Paragraph
d. Line break

17. _____ are used to change a specific feature /characteristics of a tag. [Prev. Yr.
a. Attributes Ques.]
b. Paired tags
c. Elements
d. Functions

18. ____ tag is used to create an unordered list. [Prev. Yr.


a. <ul> Ques.]
b. <dl>
c. <li>
d. <ol>
19. Paired tags are also known as ____ tags. [Prev. Yr.
a. Empty Tags Ques.]
b. Container Tags
c. Single Tags
d. Closed Tags

20. Which Tag can be used to separate text into smaller,more readable portions or to
create a visual break between paragraphs?
a. <h1> Tag
b. <hr> Tag
c. <br> Tag
d. <body> Tag

21. Ria’s teacher asked her to show Footnotes or Exponents using HTML Tags. Ria should CBQ
use which of the following Tags?
a. <Sub>
b. <Supp>
c. <Sup>
d. <Exp>

22. Which of the following is not an Attribute of hr Tag? CBQ


a. Align
b. Color
c. width
d. bgcolor

23. By default list items in the unordered list are marked with a ____ symbol CBQ
a. Circle
b. Square
c. Disc
d. Dots

24. Zara wants to show the hierarchical structure of Employees in her Organizations CBQ
Web Page. What type of list can she use for the same?
a. Definition List
b. Nested List
c. Ordered List
d. Unordered List

Q. II Answer the following question in short.

1. Write an HTML code to display the formulas given below on a web page. [Prev. Yr.
(a+b)³ = a³+3a²b+3ab²+b³ Ques.]
Ans:
(a+b)<sup>3</sup>=a<sup>3</sup>+3a<sup>2</sup>b+3ab<sup>2</sup>+b<s
up>3</sup>
2. What is Intellisense in Notepad++ ?
Ans : As soon as you start typing a tag in a file, Notepad+ + will suggest some
tag names that you may require. This is known as IntelliSense.

3. Rocky has downloaded an image of the National Flag on his computer. He has CBQ
used this file as background for his Webpage. Identify the reason why the
background is not showing on Browser.
Ans: Rocky has not saved the Flag image in the same folder as the HTML file
location.

4. Write an HTML code to display: [Prev. Yr.


a. A paragraph aligned to the center of the web page. Ques.]
Ans: <p align=center>

b. A background image.
Ans: <body background=”rose.jpg”>

c. The color of the text should be other than the default color.
Ans: <body text=”blue”>

5. What are unpaired tags? Give one example. [Prev. Yr.


Ans: An unpaired tag does not have a corresponding closing tag. It is also called Ques.]
an empty tag.
Example: <br> , <hr>

6. Identify the appropriate attributes for the blank spaces given below [Prev. Yr.
a. <body _________ =” yellow”>...</body>, what attribute will be used in Ques.]
the blank space to add a yellow color to the background in HTML?
Ans: bgcolor

b. <body _________ =” mango.jpg”>...</body>, what attribute will be


used in the blank space to add the image file mango for the background
in HTML?
Ans: background

7. What are paired tags? Give one example. [Prev. Yr.


Ans: A paired tag has an opening tag and a closing tag. The text is placed Ques.]
between them.
Example:
<i>This text is in italics. </i>

8. List the tag names used in the basic structure of an HTML document.
Ans:
<html>...</html>
<head>...</head>
<title>...</title>
<body>...</body>

9. What are header tags? Given one example.


Ans: Header tags are used to display headings and subheadings in a web page.
Example: (Any one)
<h1> heading 1</h1>
<h2> heading 2</h2>
<h3> heading 3</h3>
<h4> heading 4</h4>
<h5> heading 5</h5>
<h6> heading 6</h6>

10. What is the purpose of the <!-- --> tags in an HTML document? WB
Ans: The <!-- --> tags in an HTML document are used to add personal notes or
descriptions by the coder. These are treated as comments that are not displayed in
the web page.

11. What is the purpose of the !DOCTYPE declaration in HTML? WB


Ans: The !DOCTYPE declaration is used to specify the version of HTML that the web
page is written in.

12. Shriya has created a file in Notepad using HTML tags. She is unable to open it on the CBQ
Google Chrome Browser, Why?
Ans: Shriya has not saved the file with .htm/.html extension, She should save the
file with .htm/.html extension then it will appear with the Browser icon.

Q.III Answer the following questions.

1. Explain tags in HTML along with examples. [Prev. Yr.


Ans: • Tags are used to tell the browser to display text in a particular format. Ques.]
It consists of opening Tag and closing Tag and contains an element inside it.
For example, <H1>...</H1>

2. What will be the output of the following HTML codes? [Prev. Yr.
a. (a-b)<sup>2</sup> = a<sup>2</sup> -2ab +b<sup>2</sup> Ques.]
Ans: (a-b)2=a2-2ab+b2

b. (a+b)<sup>3</sup> = a<sup>3</sup>+3a<sup>2</sup>b+3ab<sup>2
</sup>+b<sup>3</sup>
Ans: (a+b)3=a3+3a2b+3ab2+b3

c. Average of a<sub>1</sub> + b<sub>1</sub> =c<sub>1</sub> +


d<sub>1</sub>
Ans: Average of a1 + b1 = c1 + d1

3. Explain any two attributes of the body tag.


Ans: • background: It is used to specify the image file for the background.
• bgcolor: It is used to specify the background color.
• text: It is used to specify the color of the text
(Any two)

4. Write an HTML code to display the following in a webpage. [Prev. Yr.


a. A background image Ques.]
Ans: <body background=”rose.jpg”>

b. A paragraph aligned to the center of the web page.


Ans: <p align=center>

c. X4+Y4
Ans: X<sup>4</sup> + Y<sup>4</sup>

d. A background color
Ans: <body bgcolor=”Green”> or <body bgcolor=”#008000”>
(Any color or hexadecimal code)

e. A paragraph aligned to the right of the web page.


Ans: <p align=right>

f. X4 + Y4
Ans: X<sub>4</sub> + Y<sub>4</sub>

5. Name the tags for following statements. [Prev. Yr.


a. To specify the beginning of a paragraph. Ques.]
Ans: <p> tag

b. To make the text underlined.


Ans: <u>......</u>

c. To insert a single line break.


Ans: <br>

6. State any four features of HTML. [Prev. Yr.


Ans: • HTML is platform-independent. This means it can be used on any operating Ques.]
system or device with a web browser.
• HTML has a simple syntax and is easy to learn, understand and modify.
• HTML can be used with other languages such as JavaScript to create interactive
and dynamic web pages.
• It allows us to connect web pages using hyperlinks thereby enhancing the user's
browsing experience.
• HTML has features that allow you to create web pages that adapt to different
screen sizes and devices.
• It can be used to add pictures, audio and videos to web pages making them more
attractive and interactive.
• HTML is not case-sensitive. You can type tags in lower case or upper case.
• HTML is supported by all modern web browsers, which means that web pages
created using HTML can be viewed on any browser.

7. Aliya has created a web page in HTML. It displays an article on various parts of the WB
human body. She wants to visually separate each article by adding a line. Describe
the HTML tag that will help her do the same.
Ans: She can use <hr> horizontal ruler tag. It is used to insert a horizontal line on a
web page to visually separate the content on a web page. It can also be used to
separate different sections of an article or to separate a header from the rest of the
page content.

8. List any two limitations of block-based coding? WB


Ans:
● It has a limited set of predefined blocks that can be used, so it is difficult to
create complex HTML pages.
● It can get difficult to read and follow long pages of HTML code created
using blocks.
● It also becomes difficult to find and fix errors in block-based code.
(Any two)

9. Write the basic structure of an HTML document. TB


Ans : <!DOCTYPE html>
<html>
<head>
<title>This is my first Web Page</title>
</head>
<body>
Welcome to Grade 5 HTML document. This is our basic structure file.
</body>
</html>

10. What are attributes in HTML? Explain their use. TB


Ans: Attributes in HTML are used to change specific features of a tag. The tags give
instructions for doing something , white its attributes state how it should be done.
Attributes are added in the opening tag and are written in the form of name-value
pair.
Example- <hr align=right color=red size=10> will draw a red color,right aligned
Horizontal Line of thickness 10 on the web page.

11. What is the use of the 'start' and 'type' attributes in a list? TB
Ans : In an ordered list ,attributes start and type can be used.
Type- it defines the numbering style for each item of the ordered list. Ex- 1,i,a etc
Start - it specifies the starting value of the first list item.
12. Raj has created a web page about 'Mountains in India' using HTML. Now he wants to TB
test a specific part of his web page without affecting the rest.
How can he modify his HTML code to achieve this?
Ans : Raj can keep the specific part of the web page as it is and the rest of the lines
can be converted into Comment line using <!-- – > Tag.

13. Complete the following HTML codes. WB


a. To display a heading with the text "Welcome to My Website".
<html>
<head>
<title>My Website </title>
</head>
<body>
—-----------------------------------
</body>
</html>
Ans:
<html>
<head>
<title>My Website </title>
</head>
<body>
<h1> Welcome to My Website </h1>
</body>
</html>
b. To create an ordered list with three items: "Apple", "Banana", and
"Orange".
<html>
<head>
<title>Fruits </title>
</head>
<body>
<h1>Fruit List</h1>
—--------------------------
—--------------------------
—--------------------------
—--------------------------
—--------------------------
</body>
</html>
Ans: <html>
<head>
<title>Fruits </title>
</head>
<body>
<h1>Fruit List</h1>
<ol>
<li>Apple</li>
<li>Banana</li>
<li>Orange</li>
</ol>
</body>
</html>

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

You might also like