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.

1.

The default colour of A link is .......... (a) Blue (b) Green (c) Red (d) Yellow

Answer»

The default colour of A link is Green.

Default color of a link is Blue.
2.

Which among the following tools is used for easy formatting and defining style of a document written in HTML? (a) Ajax (b) CSS (c) JSP (d) JavaScript

Answer»

Correct answer is (b) CSS

3.

Explain the different types of hyperlinks.

Answer»

The two types of Hyper Links are 

1. External HyperLink: This is used two connect the locations of two different web pages 

2. Internal HyperLink: This is used to connect the different locations of the same web page

4.

“An HTML document requires a structure”. Justify tLIs statement.

Answer»

HTML page has a well defined structure. The main sections of the HTML document are given below.-

<HTML>-</HTML>

The entire HTML document is bounded with <HTML>and</HTML>

<Head>-</Head>TLIs defines the head section. The head section includes information such as document title, general style definition etc.

<Title>-</Title>TLIs encloses a Title. Title is given in head section. Text given in<TITLE>-</TITLE>will displayed in the Title Bar.

<Body>-</Body>.Content of the document is written witLIn<Body> and </Body>

Eg.

<HTML>

<Head>

<Title>First Page</Title>

</Head>

Hello

</BODY>

</HTML>

5.

Write the HTML code to display the following list: Form Text Box Label Command Button

Answer»

<html>

<head>

<title>

list

</tittle>

</head>

<body bgcolor="vbcyan">

<ul type="circle">

<li>Form

<li>TextBox

<li>Label

<li>commandButton</ul>

</body>

</html>

6.

Write the HTML code required to display the following in a web page(use list tags).ListBox A ListBox control displays a list of items from which a user can select one or more items ComboBoxA ComboBox control combines the features of a textbox and a ListBox.FrameA frame provides grouping for controls

Answer»

<html>

<head>

<title>

Definition list

</title>

</head>

<body>

<dI>

<dt>ListBox

<dd>A ListBox control displays a list of item

<dt>ComboBox

<dd>A ComboBox control combines the fea

<dt>Frame

<dd>A frame provides grouping for controls

</dI>

</body>

</html>

7.

Running of ____ scripts can be blocked by the user (a) Client side (b) Server side . (c) Both client side and server side. (d) None of these

Answer»

Correct answer is (a) Client side

8.

Choose the odd one out, and justify your answer(a) Shared hosting (b) Dedicated hosting (c) DNS (d) Virtual Private Server

Answer»

(c) DNS others are types of web hosting.

9.

Suresh is designing a web page. He wants to display an image in the right side of text. Write the HTML code for it.

Answer»

<img SRC=”home.jpg” Align=”Right”>

10.

Gopal wants to set letter type for a paragraph of text in one of LIs web pages with following properties. Anal font with size 5 and colour red.

Answer»

<BASEFONT Face=”Arial” size=5 color=”red”>

11.

Write HTML statement for displaying the following text items: 1. A2 B3 2. A&gt;B

Answer»

1. A 2 B 3

2. A & gt; B

12.

If you analyse web pages you can see different colors to links, visited links, background etc. Suggest how tLIs can be done in HTML with example.

Answer»

We can use the attributes of <Body>tag

(1) Bgcolor-species 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:/page1 .jpg”>

(3) Text- Specifies the color of the text content of the page

Eg. <BODYTEXT= “Blue”>

(4) Link Specifies colour of the hyperlinks that are not visited by the viewer 

(5) Alink Specifies the colour of hyperlinks 

(6) Vlink- Specifies the color of hyperlinks wLIch are already visited by the viewer.

Eg. <BODY ALINK = "Blue" VLINK="cyan"VLINK="Yellow">

13.

Categorise the following tags in HTML and write the criterian for the categorisation.&lt;BR&gt;,&lt;P&gt;,&lt;BODY&gt;,&lt;B&gt;,&lt;HR&gt;,&lt;IMG&gt;

Answer»

1. Empty tag:

<BR>

<HR>

<IMG>

2. Container tag

<P>

<BODY>

<B>

14.

Differentiate between &lt;FONT&gt;  and &lt;BASEFONT&gt; tags

Answer»

<BASEFONT>tag sets the normal font for the entire document text. The font specified will be taken as the default font for the entire document. The main attributes are size, face, and color. The <FONT>  tag denes the font characteristics of the text enclosed. tag change the font property of the text enclosed within and whereas tag species the default font characteristics.

15.

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.

16.

Write the use of Border and Alt attribute of &lt;IMG&gt;tag.

Answer»

Border: This attribute is used forgiving border to an image Alt: This attribute is sued for giving an alternate text. When there is no image in the specified location or the browser doesn’t support the image them this text will be displayed.

17.

What are the two types of hyperlinks available in HTML.

Answer»

The power of HTML lies in the ability to provide hyperlinks. <A> tag is used for this. There are two types of Linking. 

(1) External Linking.

External links are hyperlinks given to another page. By clicking on hypertext we can link or go to other web pages.

<A>Anchor tag is used for External Linking.

<Ahref=“c:\main.htmF>Main</A>

(2) Internal Linking

Internal Links are given to a section in the same document.

<HTML>

<HEAD>

<TItle> Internal linking </Title>

</HEAD>

<Body>

<p><A name=”Bio”>Biology Group</A><BR>

Subject combinations are Physics, Chemistry, Mathematics and Biology.<p>

<p><A Name =“comp”>computer group</A><BR>

Subject combination are Physics, Chemistry, Mathematics and Computer Science.<p>

<p><A name=“Comm”>Commerce Group</A><BR>

The subject combination are Business studies, Economics, Accountancy and Computer Application

<br><A href=”#Bio”>Go Biology</A>

<br><A href=”#comp">Go Computer </A>

<br><A href=”#Comm">Go Commence </A>

</p>

</Body>

</HTML>

18.

The DIR attribute of &lt;HTML&gt;tag is used to indicate .....

Answer»

The DIR attribute of tag is used to indicate Direction

19.

Differentiate empty tags and container tag with example.

Answer»

1. Empty tags: It has opening tag only, no closing tag 

Eg: <hr>,<br> etc

2. Container tag: It as both opening and closing tag.

Eg: <html></html>

<body><\body> etc.

20.

A student created a web page about his school. The school name is displayed in the page. He wanted to change the style, colour, and size of the school name. Identify the most appropriate tag in HTML needed for that.

Answer»

<FONT> tag is the most appropriate tag in HTML

21.

Name the software used to view a web page.

Answer»

Web Browser- Microsoft Internet Explorer, Netscape Navigator

22.

Differentiate container tag and empty tag.

Answer»

Container tag : It has both opening tag and closing

tag Ex:<html>,<head>,<body>, .........

Empty tag : It has only opening tag no closing tag Ex:<br>,<hr>, .......

23.

Write the HTML code for creating the following Web page:ABC Pvt. Ltd.HYDERABAD.1. Health Care 2. Baby Productsa. Toysb. Dress3. Men’s Wear* Casuals* Formals

Answer»

<HTML>

<HEAD>

<TITLE>ABC Pvt.Ltd</TITLE>

<HEAD>

<BODY>

<LI> ABC Pvt.Ltd.

<Br>HYDERABAD

</LI>

<OL>

<LI>Health Care

<LI>Baby products

<OLType="a">

<L>Toys

<LI>Dress

</OL>

<LI>Mens Wear

<UL>

<LI>Casuals

<LI>Formals

</UL>

</OL>

</BODY>

</HTML>

24.

Which of the following is not a browser program.(a) MOSAIC (b) Windows Explorer(c) Internet Explorer (d) Netscape Navigator

Answer»

(b) Windows Explorer

25.

The following code intends to centralize the image mypic.gif in browser window however, the desired result is not coming. Can you point out the reason for it and a solution for it ?

Answer»

The attribute align has no value center. It can take values left, right, top, middle and bottom.

The right code is<IMG src-mypic.gif align =middle>

26.

Your school has a web site, www.myschool.otg. You want to create a link to this site from your website. Write the code for implementing this.

Answer»

<A href="WWW.myschool.org">MySchool</A>

27.

The defauK colour of A link is ______ (a) Blue (b) Green (c) Red (d) Yellow Green

Answer»

Correct answer is (b) Green.

28.

How will you distinguish a static web page from a dynamic web page?

Answer»
   Static web page    Dynamic web page
1. Content and layout is fixed1. Not fixed, may change during run time.
2. Never use databases2. It uses databases
3. Directly runs on the browse3. Runs on the server-side application program
4. Not interactive4. Interactive
29.

HTTPS stands for ......

Answer»

Hyper Text Transfer Protocol Secure

30.

Identify the port number which requests for the service of sending e-mail communication. (a) 22(b) 25 (c) 53 (d) 80

Answer»

Correct answer is (b) 25

31.

Following are steps for searching the IP address of a domain name by a browser. Rearrange them in proper order. (a) Look in the local memory of ISP (b) Look in the DNS servers starting from the root server (c) Look in the local memory of browser (d) Look in the local memory of Operating

Answer»

Correct order is c, d, a, b.

32.

Following are steps for searching the IP address of a domain name by a browser. Rearrange them in proper order.1. Look in the local memory of ISP 2. Look in the DNS servers starting from the root server . 3. Look in the local memory of browser 4. Look in the local memory of Operating System

Answer»

Correct order is 3, 4, 1, 2

33.

The IP address corresponding to a domain name is ______ presenting server.

Answer»

The IP address corresponding to a domain name is DNS presenting server.

34.

DNS stands for ........

Answer»

Domain Name System

35.

In server to server communication, authentication is done with help of..........(a) HTTP (b) Digital certificate (c) Client (d) DNS

Answer»

(b) Digital certificate

36.

TCP / IP stands for ..........

Answer»

Transmission Control Protocol/lnternet Protocol.

37.

The protocol which is responsible for the routing of data packets through the correct destination is ..........

Answer»

IP (Internet Protocol)

38.

The default colour of Vlink is .......... (a) Blue(b) Green (c) Red (d) Yellow

Answer»

The default colour of Vlink is Red.

39.

The IP address corresponding to a domain name is present in.......server.

Answer»

The IP address corresponding to a domain name is present in DNS server.

40.

Identify the port number which request for the service of sending e-mail communication. (a) 22 (b) 25 (c) 53 (d) 80

Answer»

25 port number

41.

Identify the name of a place where servers and networking systems are placed with high security, (a) Head office (b) DNS (c) Data centre (d) IIS

Answer»

(c) Data centre

42.

Programs embedded in HTML documents are termed as ........

Answer»

Programs embedded in HTML documents are termed as Scripts

43.

........ is an alternative for centralizing a paragraph other than using&lt;P&gt;tag (a) &lt;ALIGN&gt;(b) &lt;C&gt;(c) &lt;CENTER&gt;(d) &lt;CENTER

Answer»

(d) <CENTER>

44.

The default alignment of image in HTML is ........... (a) Left (b) Right (c) Center (d) Inline with content

Answer»

The default alignment of image in HTML is Left.

45.

The software used to view web page is.........(a) Notepad (b) Web Browser (c) Web server (d) Web Editor

Answer»

(b) Web Browser

46.

Which server acts between merchant server and bank server for transferring data in encrypted format?

Answer»

Payment Gateway.

47.

An HTML file is saved with ........ extension. (a) .vbp (b) .mdb (c) .htm (d) .fnm

Answer»

(c) .htm or .html

48.

HTML was developed by ........

Answer»

Tim Berners-Lee

49.

......... attribute of &lt;A&gt; tag species the URL of the hyper linked document. (a) Name (b) Target (c) HREF (d) SRC

Answer»

HREF attribute of <A> tag species the URL of the hyper linked document. 

50.

What are the two major sections of an HTML document?

Answer»

Head section and Body section.