Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

51.

Pick the Odd one from the following list and give reason. (IMG, FONT, BR, ALIGN, PRE)

Answer»

ALIGN which is an attribute, all others are tags.

52.

A platform-independent server-side scripting language is ......

Answer»

A platform-independent server-side scripting language is PHP

53.

Two of the following HTML tags have same attribute Align’. Identify them. (<IMG>,<MARQUEE>,<B>,<P>,<BODY>

Answer»

<IMG> AND <P>

54.

Write the HTML code to display the following list1. Form2. TextBox 3. Label 4. Command Button

Answer»

<html>

<head>

<title>

list

</title>

</head>

<body bgcolor="vbcyan">

<ul type="circle">

<li>Form

<li>TextBox

<li>Label

<li> CommandButton

</ul>

</body>

</html>

55.

John visited a website, it is found that when clicking on a particular text the browser open a new web page. Name the feature and Identify the tag used for this purpose. Write the HTML code to link to a file name “main.html”.

Answer»

1. Hyper Linking. By clicking on hypertext we can see or go to other webpages or to other section of same document.

2. <A> tag is used

3. <A href=”main.htmr>Main</A>

56.

Every web browser has default colors to display text and hyperlink. How can we change this default colour?

Answer»

Attribute of BODY tag is used for this. 

(1) TEXT Specifies the color of the text content of the page

Eg. <BODY TEXT = "Red">

(2) LINK Specifies colour of the hyperlinks that are not visited by the user

(3) ALINK Specifies the colour of hyperlinks

(4) VLINK Specifies the color of hyperlinks which are a I ready visited by the viewer.

Eg. < BODYALINK= “Cyan” LINK-’ Magenta” VLINK= “Orange”>

57.

Two HTML tags are given. They are &lt;BODY&gt;and &lt;FONT&gt;. Identify and write the attribute of each from the following list. (Size, Text, Link, Bgcolor, Color).

Answer»

The attributes of <BODY> tag are Text, Link and Bgcolor The attributes of <FONT> tag are size and color.

58.

Write HTML code to display as follows. The &lt;IMG&gt; tag is used for placing images.

Answer»

The & lt IMG & gt tag is used for placing images.

59.

A student developed a web page about India. He wanted to display a scrolling text moving from right side to left side with a background colour blue. The text is “I Love My Country”. 1. Identify the tag needed for it. 2. Write the HTML statement to do the task.

Answer»

1. <MARQUEE>

2. <MARQUEE direction-’left” bgcolor=”blue”>I Love My country

</MARQUEE>

60.

How client side scripting differs from server side scripting?

Answer»

Following are the differences

    Client Side Scripting      Server Side Scripting
Script is copied to client browserto the web server
Executed by the clientExecuted by the server and result is get back to the browser window
Used for Client level validationConnect to the database in the server
It is possible to block by the userCannot possible
Client side scripts depends the type and version of the browserIt does not depend the type and version of the browser
61.

Match the following:        A       B      C&lt;H2&gt;&lt;MARQUEE&gt;&lt;IMG&gt;Inserting pictureHeadingScrolling textBgcolorSrcAlign

Answer»

Correct match as given below

<H2> - Heading-Align
<MARQUEE> – Scrolling text – Bgcolor
<IMG> – Inserting picture – Src.

62.

Write and explain any four text formatting tags in HTML.

Answer»

Text formatting tags are given below.

1. <B> - This tag is based to make the text Bold

Eg: <B>Computer application</B>

2. <I> - This tag is used to make the text in italics 

Eg: <I> computer application </I>

3. <U> - This tag is used to underline the text Eg: <U> computer application </U>

4. <S> -  This tag is used for striking out the text 

Eg: <S> computer application </S>

63.

Write True or False1. Text is an attribute of &lt;BODY&gt; tag to insert a text matter in the web page.2. &lt;EM&gt; tag functions similar to &lt;I&gt; tag.

Answer»

1. False 

2. True.

64.

Explain the Main attributes of font tag.

Answer»

<FONT> tag denes the font properties of text enclosed 

The main attributes are

1. Face-This species the type of font.

2. Color-This species the colour of the text enclosed.

3. Size- This species the font size.

Eg. <FONT Face="Arial" size="3" color= "magenta">

65.

Complete the following table.  RGB code  Colour Name #0000FF - - Yellow #FF0000 - #00FF00 - - White -  Black

Answer»
RGB code Colour Name
 #0000FF Blue
 #FFFF00 Yellow
 #FF0000 Red
 #00FF00 Green
 #FFFFFF White
 #000000 Black
66.

PHP is a popular scripting language. 1. Write whether it is client side or server side. 2. Write a brief note on PHP.

Answer»

1. Server side 

2. PHP (PHP Hypertext Preprocessor) 

  • It is an open-source, general purpose scripting language. 
  • It is a server side scripting language 
  • Introduced by Rasmus Lendorf 
  • A PHP le with extension .php 
  • It support data base programming the default DBMS is MySQL 
  • It is platform-independent 
  • PHP interpreter in Linux is 
  • LAMP(Linux, Apache, MySQL, PHP)
67.

While designing a webpage Neena wants to explain the meaning of each step. Can you help her?

Answer»

Neena can use Comments while writing the code. It is a good programming practice. Comments improve readability. It is not the part of a program. Comments <! - and - >

Eg. <!-This is used to display an information->

<HTML>

<!-head section->

<HEAD>

<TITLE>Subscript</TITLE>

</HEAD>

<!-BODY section->

<Body>

<B> 'The symbol H <SUB>2</SUB>O represents water</B>

</Body>

</HTML>

68.

John visited a website, it is found that when clicking on a particular text the browser open a new web page. Name the feature and Identify the tag used for this purpose. Write the HTML code to link to a le name “main.html”.

Answer»

1. Hyper Linking : By clicking on hypertext we can see or go to other webpages or to other section of same document.

2.<A> tag is used

3. <Ahref="main.html">Main</A>

69.

Give HTML tag to display the sentence “WELCOME TO HTML” as centralized heading, having red colour.

Answer»

<HTML>

<HEAD><TITLE>My page</TITLE></HEAD>

<BODY>

<FONT COLOR="RED">

<H1 ALIGN= "CENTER">WELCOME TO HTML</H1>

</FONT>

</BODY>

</HTML>

70.

Explain the main list tags in HTML?

Answer»

HTML provides three basic types of lists-unordered, ordered and definition list.

1. Unordered list:

Unordered list arranges the list items with bullet symbols in front. <UL> and </UL> tag encloses as Unordered list. List items are specified by <LI> tag. The tag <UL> can take value square, circle or disc. The default type is disc.

Eg : <UL>

<LI> COMPUTER

<LI>BIOLOGY

</UL>

2. Ordered list:

In Ordered list, the list items are numbered in sequence. <OL> and </OL> tag encloses an Ordered list. List items are specified by <LI> tag.

The <OL> tag can take values as follows

  • type = 1 for 1, 2, 3,….
  • type = i for i, ii, iii,……
  • type = I for I, II, III,……
  • type = a for a, b, c,…
  • type = A for A, B, C,…..

Eg : <OL>

<LI> COMPUTER

<LI>BIOLOGY

</OL>

3. Definition List:

It is formed by a group of definitions and their descriptions. No bullet symbol or number is provided for the list items. The <DL> and </DL> tags enclose the definition list. The <DT> tag contains the definition term and <DD> tag species the description.

Eg : <DL>

<DT>Eeheque

<DD>Electronic cheque

</DL>

71.

Explain the use of &lt;BODY&gt; tag and list any four of its attributes.

Answer»

Web page contents are given in the body section. 

Attributes of body tag are:

1. BGCOLOR - Specifies background color for the document Body

Eg. <BODY BGCOLOR="RED">

2. BACKGROUND - Sets the image as background for the document body

Eg. <BODY BACKGROUND="C\result.jpg">

3. TEXT- Specifies the color of the text content of the page

Eg. <BODYTEXT ="Red">

4. LINK- Specifies colour of the hyperlinks that are not visited by the user 

5. ALINK- Specifies the colour of hyperlinks

6. VLINK- Specifies the color of hyperlinks which are already visited by the viewer.

Eg. <BODY ALINK="Cyan" LINK="Magenta" VLINK="Orange">*

7. Left margin and Right margin- Sets margin from left and top of the document window.

72.

Suppose you want to display a picture named school.jpg located in the ‘Photos’ sub directory of the directory ‘My documents’ of C drive in your web page. 1. Name the tag used for this purpose.2. Write HTML code for the web page.

Answer»

1. <IMG> tag: It is used to display images in webpage.

2. <HEAD><TITLE>

</HEAD>

<Body>

<IMG SRC= 'C;/My documents/Photos/School.jpg'>

</Body>

<html>