Plus Two Computer Science Chapter Wise Previous Questions Chapter 5 Web Designing Using HTML

Kerala State Board New Syllabus Plus Two Computer Science Chapter Wise Previous Questions and Answers Chapter 5 Web Designing Using HTML.

Kerala Plus Two Computer Science Chapter Wise Previous Questions and Answers Chapter 5 Web Designing Using HTML

Question 1.
Considerthe following HTML statement. [MARCH – 2007]
<Table>
<TR>
<TH>Mark</TH>
<TD>90</TD>
</TR>
</Table>
What is the difference between the content displayed in the cells of the table? (2)
Answer:
<TH> means table heading
<TD> means table data
‘Mark’ is contained in <TH></TH>. It will displayed as Table Heads in Bold letter.
90 is contained in <TD></TD>. It will displayed as normal letters.

Question 2.
While designing a web page Raju wants to display a table which occupies the full browser window. Name the attribute which help him to do so. [MARCH – 2007] (1)
Answer:
The attribute is Width,it can be given in percentage of total window width.
Eg. <Table Border=1 Width= “100%”>

Question 3.
Complete the following table. [MARCH – 2007] (3)

HTML Tag Use
1. <B>
2. <HR>
3 Un ordered List
4. <DL>
5 It is the line break tag
6 To display Heading in the biggest size

Answer:

HTML Tag Use
1. <B> To display content in Bold
2. <HR> Draws a Horizontal Ruler
3. <UL> Un ordered List
4. <DL> ‘ Define Definition List
5. <Br> It is the line break tag
6, <H1> To display Heading in the biggest size

Question 4
Abhijith wishes to submit the data entered by him using a form. The amount of data is less and security of data is not a prime factor. Which method he may select to submit the data ? justify your answer. [MARCH – 2008] (4)
Answer:
Get method

Question 5
Match the following [MARCH – 2008]

<HTML>  HREF
<A>  SIZE
<BODY>  SRC
<BASEFONT>  START
<OL>  DIR
<IMG>  TOPMARGIN

Answer:

<HTML>  DIR
<A>  HREF
<BODY>  TOPMARGIN
<BASEFONT>  SIZE
<OL>  START
<IMG>  SRC

Question 6.
Some browsers do not support frameset. In such a situation which alternative is used. Explain? [FEBRUARY – 2008] (3)
OR
Mention how <NOFRAMES> tag can help us.
Answer:
It is true, some browsers do not support frameset. In such a situation the container tag <noframes> is the alternative for frameset. It specifies the content to be shown, if the browser cannot load the frames. The content is given in a body section placed within the <noframes> tag pairs.

Question 7.
Classify the HTML related words : [FEBRUARY – 2008] (2)
Align, Frame, Href, Font.
Answer:
Attribute-Align, Href. Tag-Frame, Font

Question 8.
Aji wants to create a form in HTML to do the following: [JUNE – 2008]
1) Input name using text box.
2) Two Radio Buttons to select Male or Female.
3) InputAddress.
4) Submit Button with caption ‘OK’
Write HTML program forthe above. (5)
Answer:
1) <inputtype=’’text>
2) <inputtype=”radio” name=”sex” value=”male”> <inputtype=”radio” name-’sex” value=”female”>
3) <input type=”textarea>
4) <inputtype=”Submit” value=”ok”>

Question 9.
Midhun wants to create a web page for passing information from the user to the web server. Name the HTML tag which provides this facility. [MARCH – 2009] (1)
Answer:
<form> tag

Question 10.
Which tag can be used to provide hyperlinks in HTML? [MARCH – 2009] (1)
Answer:
<A> Tag

Question 11.
Write an HTML code to create a form with controls to accept the Reg no. of a student and to submit it. [MARCH – 2009] (2)
Answer:
<Form Method=”Get”Action=”http://www.dhse.com/ det.asp”>
Regno<inputtype=”text”><br>
<input type=”submit” value=”Submit>
</form>

Question 12.
Varun is creating a web page. He wants to create a link on the text ‘sample’ to a file named sample, htm which resides in a subdirectory named Exam of the D drive. Write the HTML command for this purpose. [MARCH – 2009] (2)
Answer:
<A Href = “D:\Exam\sample.htm”> Sample</A>

Question 13.
The default align value for a table is _________ [February – 2009]
(a) left
(b) right
(c) top
Answer:
left

Question 14.
Shabeer wants to divide the browser wondow into two sections. Which option of HTML can be used for this? [June – 2009] (1)
Answer:
<frameset>

Question 15.
Write an HTML code to create a select box with three list options low, medium and high with medium as default item. [June – 2009] (2)
Answer:

<html>
<head>
<title>
select box
</title>
</head>
<body>
<select>
<option>low
<option selected>medium
<option>high
</select>
</body>
</html>

Question 16.
Find out the output forthe following HTML statements and describe the tags using. [March -2010] (5)

<HTML>
<BODY>
<TABLE BORDER=1>
<TR>
<TD Colspan=2>College</TD>
</TR>
<TR>
<TR Rowspan=3>
</TR>
<TR>
<TD>Department1</TD>
</TR>
<TR>
<TD>Department 2</TD>
</TR>
<TR>
<TD>Department 3</TD>
</TR>
</TABLE>
</BODY>
</HTML>

Answer:
<HTML> tag is used to start the program.
<Body> Here contents are to be written.
<TABLE> is used to create a table.
<TR> is used to create a row.
<TD> is used to give table column data.

College
Departments Department 1
Department 2
Department 3

Question 17.
Write the HTML code for creating the following Webpage: [March -2010] (3)
ABC Pvt. Ltd.
HYDERABAD
1 .Health Care
2. Baby Products
a. Toys
b. Dress
3. Men’s Wear
* Casuals
* Formals
Answer:

<HTML>
<HEAD>
<TITLE> ABC Pvt.Ltd</TITLE>
<1HEAD>
<BODY>
<HI> ABC Pvt. Ltd. <Br>HYDERABAD</HI>
<OL>
<LI>HealthCare
<LI>Baby products
<OLType=”a”>
<L>Toys
<LI>Dress
</OL>
<LI> Mens Wear
<UL>
<LI>Casuals
<LI>Formals
</UL>
</OL>
</BODY>
</HTML>

Question 18.
Write the HTML code for the following table. [June – 2010] (3)

Subject Mark
Science Physics 40
Chemistry 35
Biology 48

Answer:

<html>
<head>
<title>
</title>
</head>
<body>
<table border=”1 ">
<tralign=”center”>
<td colspan=2>Subject
<td>mark
</tr>
<tralign=”center”>
<td rowspan=3>Science
<td>Physics
<td>40
</tr>
<tr align=”center”>
<td>Chemistry
<td>35
</tr>
<tralign=”center”>
<td>Biology
<td>48
</tr>
</table>
</body>
</html>

Question 19.
The tag used to create a menu in HTML is ……………… . [June – 2010] (2)
Answer:
<SELECT>

Question 20.
Write HTML tag to create a form with a text box and a submit button. [June – 2010] (2)
Answer:

<html>
<head>
<title>form
</title>
</head>
<body>
<form>
<input type=”text”>
<input type=’submit”>
</Body>
</HTML>

Question 21
List the steps for creating a hyperlink with an example. [June – 2010] (2)
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 webpages.
<A> Anchor tag is used for External Linking.
<A href= “c:\main. html”>Main</A>

2) Internal Linking- Internal Links are given to a section in the same document.
<HTML>
<HEAD>
<Title>lnternal 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”> computergroup</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 Commerce</A>
</p>
</Body>
</HTML>

Question 22.
Write a HTML code for displaying the following table. [March -2011] (3)

Object  Property  Value
Form 1  Caption  First Form
Command 1  Caption  Show Next
Command 2  Caption  Exit

Answer:

<html>
<head>
<title>
table
</title>
</head>
<body bgcolor=’ ’vbcyan”>
<table border=1>
<tr>
<th>Objectc/th>
<th>Property</th>
<th>Valu e<Ith>
</tr>
<tr>
<td>Form1</td>
<td>Caption</td>
<td>First Form</td>
</tr>
<tr>
<td>Command1 </td>
<td>Caption</td>
<td>Show Next</td>
</tr>
<tr>
<td>Command2</td>
<td>Caption</td>
<td>Exit</td>
</tr>
</body>
</html>

Question 23.
In HTML, FORM tag can accept user input and communicate it to a server program. [March -2011]
(a) Write the general format of FORM tag. (1)
(b) How will you Construct a ‘SUBMIT’ button and a RESET’ button within the FORM tag? (2)
Answer:
a) <form action=url/mailto method=get/post> </form>
b) <input type=”submit”>
<input type=”reset”>

Question 24.
HTML has the facility to provide External links as well as Internal links. [March -2011] (3)
a) Which tag is used to include an External link?(1)
b) How will you construct an Internal link? (2)
Answer:
a) Anchor Tag i.e. <a href=”filename”>
b) Internal link is used to linktwo places of the same web page

<html>
<head>
<title>
Internal link
</title>
</head>
<body bgcolor=”vbcyan”>
<a name=top href=#bottom>Goto Bottom</a>
<ultype=”circle”>
<li>Form
<li>TextBox
<li>Label
<li>CommandButton
</ul>
<a name=bottom href=#top>Goto top</a> </body>
</html>

Question 25.
Write the HTML code for creating the following table: [March – 2012] (3)
Item – Price – Qty.
Soap – 15 10
Book – 23 12
Pen – 10 14
Answer:

<html>
<head>
<title>
table
</title>
</head>
<body>
<table bonder=1> <tr>
<th>ltem</th>
<th>Price</th>
<th>Qty</th>
</tr>
<tr>
<td>Soap</td>
<td>15</td>
<td>10</td>
</tr>
<tr>
<td>Book</td>
<td>23</td>
<td>12</td>
</tr>
<tr>
<td>Pen</td>
<td> 10</td>
<td> 14</td>
</tr>
</table>
</body>
</html>

Question 26.
Suggest an alternate tag for a browser which do not support frames tag. [March – 2012] (1)
Answer:
<Noframes>

Question 27.
What is the importance of .NET technology? [March – 2012] (2)
Answer:
NET is one of the latest technologies introduced by Microsoft Corporation. With the help of .NET a de veloper can use a programming language of his choice to quickly and easily develop distributed ap plications. Distributed application means process ing take place in any processor is free in the net work. It Is similar to JVM. It is platform independent.

Eg:ASP.NET, VB.NET

Question 28.
The <DD> tag gives _________ [March 2016] (1)
Answer:
Data Description or Data Definition.

Question 29.
Create a table with 5 types of fruit names, use headings as serial number, name and cost.
OR
Create an ordered list of five fruits numbered using small Roman numerals. (5)
Answer:

<html>
<head>
<title>
table creation
</title>
</head>
<body bgcolor =“red”>
<table bonder = “1”>
<tr>
<th> Serial No</th>
<th> Name </th>
<th> cost</th>
</tr>
<tr>
<td>1</td>
<td> Banana </td>
<td> Rs. 49 </td>
</tr>
<tr>
<td>2</td>
<td>grapes</td>
<td>Rs.110</td>
</tr>
<tr>
<td>3</td>
<td>Apple</td>
<td>Rs.180<ftd>
</tr>
<tr>
<td>4</td>
<td>Orange</td>
<td>Rs.60</td>
<td>5</td>
<td>Mango</td>
<td>Rs. 40<ltd>
</tr>
</table>
</body>
</html>
<html>
<head>
<title>
Ordered list demonstration
</title>
</head>
<body bgcolor=red;
<H1> Fruits </H1>
<OLType= "i">
<li> Apple </ii>
<li>Grapes </li>
<li>Orange </li>
<li> Mangoc/li>
<li> Banana </li>
</OL>
</ Body>
</html>

Question 30.
Rahim wants to connect his webpage to www.yahoo.com. Write the tag and attributes required for these. [May – 2016] (2)
Answer:
<A> tag with href attribute is used for this
eg: <A href= “httpp://www.yahoo.com”>
Yahoo</A>

Question 31.
a) What are the difference between GET and POST methods in form submitting? [May – 2016] (2)
b) Study the following steps and determine the correct order:
(1) Open a connection to MySQL server
(2) Execute the SQL query
(3) Fetch the data from query
(4) Select database
(5) Close connection
(a) 4, 1,2, 3, 5
(b) 1,4, 2. 3, 5
(c) 1,5, 4, 2, 3
(d) 4,1,3, 2, 5 (1)
Answer:
a) Refer 3 Mark Question 12
b) (b) 1,4, 2, 3; 5

Question 32.
A link to a particular section of the same document is called …………….. [March – 2017] (1)
Answer:
Internal linking.

Question 33.
Create a web page using frames for Tourism department showing list of tourist places in Kerala. When a place is selected a detailed description should be available in a separate window.
OR
Create a form that accepts information regarding a student. Fields necessary are name, age, class, sex, roll number, hobbies and date of birth. Use appropriate form controls. [March – 2017] (5)
Answer:
By using target property , we can design like this. Considerthe following five files.
Step 1. Take a notepad and type the following and save it as main.html on C:\

<html>
<head>
<title>
Tourist places in Kerala
</title>
</head>
<body bgcolor=”cyan”>
<h1><u><b><center>Tourist Places in Keralac/ center></b></u></h1 >
<ol>
<li><a href=”tvm.html” target=”f2">Thiruvanathapur- am<7a></li>
<li><a href=”ekm.html” target=”f2">Emakulam</ a></li>
<li><a href=”clt.html” target=”f2">Calicut</ax/li>
</ol>
</body>
</html>

Step 2. Take a notepad and type the following and save it as tvm.html on C:\

<html>
<head>
<title>
Tourist places in Kerala
</title>
</head>
<body bgcolor=”cyan”>
<h1><u><b><center>Thiruvanathapuram</center></b></ux/h1><ul>
<li>Kovalam</li>
<li>Zoo</li>
<li>Padmanabha Swami Temple</li>
</ul>
</body>
</html>

Step 3. Take a notepad and type the following and save it as ekm.html on C:\

<html>
<head>
<title>
Tourist places in Kerala
</title>
</head>
<body bgcolor="cyan”>
<h1><u><b><center>Emakulam</center></b></ u></h1 >
<ul>
<li>Bolghatty Palace</li>
<li>ShipYard</li>
<li>Marine Drive</li>
</ul>
</body>
</html>

Step 4. Take a notepad and type the following and save it as clt.html on C:\

<html>
<head>
<title>
Tourist places in Kerala
</title>
</head>
<body bgcolor=”cyan”>
<h1 ><u><b><center>Calicut</center></b></u></ h1>
<ul>
<li>Kappad Beach</li>
<li>Planetorium</li>
<li>Mananchira</li>
</ul>
</body>
</html>

Step 5. Take a notepad and type the following and ‘ save it as frame.html on C:\

<html>
<head>
<title>
fiame
</title>
<frameset cols=”33% ,*”>
<frame src=”main.htmr>
<frame src=”tvm.htmr name=”f2">
</frameset>
</html>

Step 6. Execute frame.html we will get the output.
OR

<html>
<head>
<title>
form
</trtle>
</head>
<body bgcolor="cyan">
<form method=”post” action=”fa.php”>
<h1 ><u><center><b> Application Form</b></ center></u></h1>
Name &nbsp;&nbsp;
<input type="text” name="txtname”>
<br>
Age &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
Class &nbsp;&nbsp;&nbsp;
<input type=”text” name=”txtclass”>
<br>
Sex &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Male<input type=”radio” name=”optsex” value=”Male”>
Female<input type=”radio” name=”optsex” value=”Female”>
<br>
Roll No
<input type=”text” name=”txtroll” size=”1 ">
<br>
Hobbies
Reading<input type=”checkbox” name=”cbread”>
Singing<input type=”checkbox” name=”cbsing”>
Playing<input type=”checkbox” name=”cbplay”>
<br>
Date of Birth
<input type=”text” name=”txtdob” size=”1 ">
<br><br>
<in put ty pe=”subm it” val ue=”su bmit”>
<input type=”reset” value=”reset”>
</form>
</body>
</html>

Question 34.
Which HTML tag is used to create ordered list? [May – 2017] (1)
Answer:
<ol>

Question 35.
Write an HTML code for a web page to show the following detailsin blue background: [May – 2017] (3)
Components of a Computer
* Hardware
1. RAM
2. ROM
3. Hard Disk

* Software
1. System Program
2. Application program
Answer:

<html>
<head>
<title>
list demo
</title>
</head>
<body bgcolor=”blue”>
Components of a Computer
<ul type=”disc”>
<li>Handware</li>
<ol>
<li>RAM</li>
<li>Rom</li>
<li>Hard Disk</li>
</ol>
<li>Software</li>
<ol>
<li>System Program</li>
<li>Application Program</li>
</ol>
</ul>
</body>
</html>

Question 36.
<FORM> tag contains some other tags to facilitate interaction between user and web page. Write any two control tags and explain their mode of interaction. [May – 2017] (2)
Answer:
<lnput> It is used to create input controls. Its type attribute determines the control type.
Main values of type attribute is given below.
1. Text – To create a text box.
2. Password – To create a password text box.
3. Checkbox – To create a check box.
4. Radio-To create a radio button.
5. Reset – To create a Reset button.
6. Submit-To create a submit button.
7. Button – To create a button

Question 37.
a) Write an HTML code for a web page for your supermarket named “HELPLINE SUPER MARKET’ with the following details and features. [May – 2017]
1) A heading followed by a paragraph of 2 sentences about the district using text formatting tags and attributes.
2) Give postal address of the supermarket with phone number and email id. .
3) Include a marquee that “Hurry up, 50% off for all purchase”. (5)
OR
b) Explain and compare the features of any four scripting languages. (5)
Answer:
a)

<html>
<head>
<title>
HelpLine Super Market
</title>
</head>
<body bgcolor=”cyan”>
<marquee bgcolop=”red” height=”40"> Hurry up, 50% offforall purchase</manquee>
<h1alig.n=”Center”>HELPLINE<br> SUPERMARKET </h1>
<h2 align=”left”><u><i>Trichur</i></u></h2>
<p>Our district is Trichur. It is situated in the central part of Kerala
</p>
Postal Address
<br>
HELPLINE SUPER MARKET,
<br>
Main Road,
Irinjalakuda.
<br>
Phone No.9999900000.
<br>
Email Id: info@helpline.com.
</body>
</html>

b) 1) JavaScript: Java script(developed by Brendan Eich for the Netscape browser) is a platform-independent scripting language. Means It does not require a particular browser. That is it runs on any browser hence it is mostly accepted scripting language.

2) VB Script: VB Script(developed by Microsoft) is a platform-dependent scripting language. Means it requires a particular browser(MS Internet Explorer) to work that is why it is not a widely accepted scripting language.

3) Active Server Pages (ASP)
1) ASP introduced by Microsoft
2) ASP stands for Active Server Page.
3) ASP’s are web pages that are embedded with dynamic contents, such as text.HTML tags and scripts.
4) An ASP file uses .asp extension.
5) In ASP, the script execute in the server and the effect will be sent back to the client computer.
6) Here a real time communication exists between the client and server.
7) ASP applications are very small.
8) The only server used is Microsoft Internet Information Server(IIS), hence it is platform dependant

4) Java Server Pages (JSP)
1) JSP introduced by Sun Micro System
2) JSP stands for Java Server Page.
3) An JSP file uses .jsp extension
4) It is platform independent
5) It uses Apache Tomcat web server
6) JSP binds with Servlets(Servlets are Java codes run in Server to serve-the client requests).