0% found this document useful (0 votes)
6 views12 pages

Computer Question Paper Fa 2

The document contains multiple-choice questions, fill-in-the-blank questions, true/false statements, and short answer questions related to HTML and web development. It covers topics such as HTML tags, attributes, document structure, and basic web design principles. Each question is accompanied by the correct answer and reasoning for clarity.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views12 pages

Computer Question Paper Fa 2

The document contains multiple-choice questions, fill-in-the-blank questions, true/false statements, and short answer questions related to HTML and web development. It covers topics such as HTML tags, attributes, document structure, and basic web design principles. Each question is accompanied by the correct answer and reasoning for clarity.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Multiple Choice Questions

Question 1

The ............... contain elements which define how the information on a web page is formatted or
displayed.

1. Editors

2. Tags

3. Attributes

4. None of these

Answer

Tags

Reason — The tags contain elements which define how the information on a web page is formatted
or displayed.

Question 2

The ............... tag contains the content of your document which gets displayed on the web page of
your browser window.

1. <HEAD>

2. <BODY>

3. <HTML>

4. None of these

Answer

<BODY>

Reason — The <BODY> tag contains the content of our document which gets displayed on the web
page of our browser window.

Question 3

Which special property provides additional information about an HTML element?

1. Tag

2. Element

3. Attribute

4. None of these

Answer

Attribute

Reason — The attribute property provides additional information about an HTML element.
Question 4

The ALIGN attribute of <P> tag cannot take ............... value.

1. Right

2. Left

3. Justify

4. None of these

Answer

None of these

Reason — The ALIGN attribute of <P> tag can take right, left and justify as value.

Question 5

Which of the following tags helps in retaining the spacing of text or displaying the preformatted
spaces on a webpage in an HTML document?

1. <SPACE>

2. <PRE>

3. <SPC>

4. None of these

Answer

<PRE>

Reason — The <PRE> tag helps in retaining the spacing of text or displaying the preformatted spaces
on a webpage in an HTML document.

Question 6

Which tag adds a line horizontally on your web page?

1. <HR>

2. <LINE>

3. <LINE Direction="horizontal">

4. <TR>

Answer

<HR>

Reason — The <HR> tag adds a line horizontally on your web page.

Question 7

Choose the correct HTML tag to make the text italic.

1. <ii>
2. <Italics>

3. <Italic>

4. <I>

Answer

<I>

Reason — The <I> tag is used to make the text italic.

Question 8

What is the correct HTML tag for inserting a line break?

1. <BR>

2. <LB>

3. <Break>

4. <Newline>

Answer

<BR>

Reason — The <BR> tag is used for inserting a line break.

Question 9

An HTML ............... consists of an ON tag, the content, and an OFF tag.

1. Element

2. Tag

3. Attribute

4. None of these

Answer

Element

Reason — An HTML element consists of an ON tag, the content, and an OFF tag.

Question 10

Which character is used with the OFF tag?

1. end

2. /

3. \

4. <

Answer
/

Reason — The / character is used with the OFF tag.

Question 11

The default colour of LINK attribute is ............... .

1. Red

2. Black

3. Green

4. Blue

Answer

Blue

Reason — The default colour of LINK attribute is blue.

Question 12

The entity which displays an '&' sign on the browser is ............... .

1. &

2. <&AMP>

3. &AMP

4. None of these

Answer

&AMP

Reason — The entity which displays an '&' sign on the browser is &AMP.

Question 13

Which entity displays the ">" (greater than) sign on the browser?

1. <& GT>

2. &GT

3. & GRT

4. None of these

Answer

&GT

Reason — The &GT entity displays the ">" (greater than) sign on the browser.

Question 14

The HTML tag for the largest heading is ............... .


1. <H1>

2. <H6>

3. <HEAD>

4. None of these

Answer

<H1>

Reason — The HTML tag for the largest heading is <H1>.

Question 15

Which tag is used to define the basic font size for the whole document?

1. <BASEFONT>

2. <COLOR>

3. <FONT>

4. <SIZE>

Answer

<BASEFONT>

Reason — The <BASEFONT> tag is used to define the basic font size for the whole document.

Question 16

The default value of Type attribute for an unordered list is ............... .

1. Disc

2. Square

3. Circle

4. None of these

Answer

Disc

Reason — The default value of Type attribute for an unordered list is disc.

Question 17

Which of the following tags is suitable for creating a numbered list?

1. <BL>

2. <OL>

3. <UL>

4. None of these
Answer

<OL>

Reason — The <OL> tag is suitable for creating a numbered list.

Question 18

To display (X+Y)2, the correct HTML code is:

1. <SUB> (X+Y)2 </SUB>

2. X+Y<SUP> 2 </SUP>

3. (X+Y) <SUP> 2 </SUP>

4. <SUP> (X+Y) 2 </SUP>

Answer

(X+Y) <SUP> 2 </SUP>

Reason — To display (X+Y)2, the correct HTML code is (X+Y) <SUP> 2 </SUP>.

Question 19

What is the full form of DTD?

1. Document To Definition

2. Dynamic To Definition

3. Document Type Definition

4. Direct Type Definition

Answer

Document Type Definition

Reason — The full form of DTD is Document Type Definition.

Question 20

Anything written between ............... is taken as a comment.

1. <?-->

2. <?- --?>

3. <!-- and -->

4. </--->

Answer

<!-- and -->

Reason — Anything written between <!-- and --> is taken as a comment.

Question 21
To start a list with alphabet 'E', which line should be used?

1. <OL type="A">

2. <OL type="A" start= "5" >

3. <OL type="E" >

4. <OL start="E" >

Answer

<OL type="A" start= "5" >

Reason — To start a list with alphabet 'E', we write the following code:

<OL type="A" start= "5" >

Question 22

Which of the following is a text editor?

1. Notepad

2. Wordpad

3. Both 1 and 2

4. None of these

Answer

Both 1 and 2

Reason — Notepad and Wordpad both are text editors.

Fill in the Blanks

Question 1

The ............... section contains the content to be displayed on the web page.

Answer

The <BODY> section contains the content to be displayed on the web page.

Question 2

The ............... editor provides various tools and graphical interface where the web pages are
designed.

Answer

The WYSIWYG editor provides various tools and graphical interface where the web pages are
designed.

Question 3

............... and ............... are attributes of the <HR> tag.

Answer
Size and Width are attributes of the <HR> tag.

Question 4

The colour of the text in the HTML document can be changed using the ............... attribute of the
Font tag.

Answer

The colour of the text in the HTML document can be changed using the Color attribute of the Font
tag.

Question 5

The FACE attribute of the ............... tag is used to change the typeface or the name of the font.

Answer

The FACE attribute of the <FONT> tag is used to change the typeface or the name of the font.

Question 6

The ............... attribute of Body tag defines the colour of the visited links in a document.

Answer

The <VLINK> attribute of Body tag defines the colour of the visited links in a document.

Question 7

The ............... attribute of Body tag changes the colour of the Active link.

Answer

The <ALINK> attribute of Body tag changes the colour of the Active link.

Question 8

The three values that can be defined with ............... tag are disc, square, and circle.

Answer

The three values that can be defined with <UL> tag are disc, square, and circle.

Question 9

To specify the start value of the first item from which an ordered list should start, the ...............
attribute is used.

Answer

To specify the start value of the first item from which an ordered list should start, the Start attribute
is used.

Question 10

A list created within a list is called ............... list.

Answer
A list created within a list is called nested list.

Question 11

The default colour of a hyperlink on a web page is ............... .

Answer

The default colour of a hyperlink on a web page is blue.

Question 12

The ............... tag is used to create subscripts and ............... tag is used to create superscripts on a
web page.

Answer

The <SUB> tag is used to create subscripts and <SUP> tag is used to create superscripts on a web
page.

Question 13

The ............... attribute is used to define the thickness of horizontal rule.

Answer

The Size attribute is used to define the thickness of horizontal rule.

Question 14

The ............... tag is used to insert line break on a web page.

Answer

The <BR> tag is used to insert line break on a web page.

State True or False

Question 1

The title of a document can contain maximum 64 characters.

Answer

True

Reason — The title should be short and include only upto 64 characters.

Question 2

The Heading levels are part of the <HEAD> tag.

Answer

False

Reason — The Heading levels are part of the <BODY> tag.

Question 3

The Vlink tag defines the colour of the link after it has been visited.
Answer

True

Reason — The Vlink attribute defines the colour of the link after it has been visited.

Question 4

A list can be defined in different styles.

Answer

True

Reason — A list can be defined as a ordered list, unordered list or as a definition list.

Question 5

The default value for <OL> is a filled circle.

Answer

False

Reason — The default value for <UL> is a filled circle or disc.

Question 6

You can start the ordered list with a different number.

Answer

True

Reason — We can start the ordered list with a different number which we can specify using the start
attribute.

Question 7

The colour of the hyperlinks in an HTML document cannot be changed.

Answer

False

Reason — The Link, Alink and Vlink attributes of the body tag control the colours of the hyperlinks.

Question 8

There must be only one <title> tag in an HTML document.

Answer

True

Reason — There must be only one <title> tag in an HTML document and it is defined within
the <HEAD> tag.

Question 9

Unordered list type creates a bulleted list.


Answer

True

Reason — Unordered list type creates a bulleted list with bullets like disc, circle or square.

Question 10

Physical structure refers to different parts of a document, i.e., how a document is built.

Answer

True

Reason — Physical structure refers to the arrangement and organization of different parts of the
document, including elements like headings, paragraphs, lists, tables, images, and more.

Answer in One Word or a Sentence

Question 1

What does W3C stand for?

Answer

World Wide Web Consortium

Question 2

Which elements have both starting and ending tags?

Answer

Container elements

Question 3

How many heading levels can be defined in HTML?

Answer

Six heading levels starting from <H1> to <H6>.

Question 4

Write the tag which is used as a separator between blocks of text.

Answer

<HR>

Question 5

Which attribute of HTML tag specifies the language used within the document?

Answer

Lang attribute

Question 6
What is the utility of <P> tag?

Answer

Marks a block of text as a paragraph

Question 7

Which tag is used to set Font Face, Size, Color, and other attributes for the whole HTML document?

Answer

<BASEFONT>

Question 8

What type of lists are supported by HTML?

Answer

Unordered, Ordered and Definition

Question 9

Name any one software for each of the following categories:

a. Text Editor

b. Web Browser

Answer

a. Notepad

b. Google Chrome

You might also like