Professional Documents
Culture Documents
MOBILE TECHNOLOGIES
Exercises
OBJECTIVE TYPE QUESTIONS
FILL IN THE BLANKS
1. Internet set of Computer Networks.
2. Internet works on packet switching.
3. The server on the internet is also known as host.
4. To access file from another computer on the internet is by File Transfer Protocol (FTP).
5. The name of the communication protocol used by the internet is TCP/IP.
6. Hypertext Transfer protocol will be used to access WWW.
7. A website is a collection of webpages.
8. SMTP is a simple mail transfer protocol.
9. E-mail address is made of two parts.
10. Telnet (Terminal network) is a protocol that facilitates remote login.
THEORETICAL QUESTIONS
A. SHORT ANSWER TYPE QUESTIONS
1. What do you mean by remote login?
Ans: Remote login gives access to an authorized person to login into a computer or network from a
geographical distance through a network connection.
7. What is chatting?
Ans: Chatting is one of the popular ways to communicate with each other via messages instantly.
8. Explain HTTPS.
Ans: HTTPS (Hypertext transfer protocol secure) is used for transferring data between the client
browser (request) and the web server (response) in the hypertext format, in an encrypted format.
So, it can be said that HTTPS stop hackers from interpretation or modification of data throughout
the transfer of packets. All financial transactions on web are done using HTTPS.
8. Define e-banking.
Ans: Electronic banking or e-banking is a universal term to define use of banking products and
services, by using electronic delivery channels. The services under e-banking includes funds
transfer, payment of bills, opening online bank accounts, etc. All services can be availed by
customers by filling e-banking registration form and submitting it to his/her bank. By doing this,
customers will receive login credentials to access their account online. In e-banking, the electronic
delivery channels are ATMs, mobile banking, telebanking, etc. All banking services can be availed
online. e-Banking is also known as virtual banking, online banking, doorstep banking, or internet
banking.
2. Mr. Rabindra wants to send money to his wife who is in another city. Tell him the easiest way
to transfer money through online banking.
Ans: e-Banking is the easiest way to transfer money through the bank.
3. Raman wants to participate in video conferencing. Suggest the hardware requirements for
this purpose.
Ans: To participate in video conferencing, the hardware requirements are:
High-resolution webcam
Sufficient network bandwidth
Laptop/desktop/mobile
Microphone, speaker
4. Janak wants to send an e-mail for the first time. Help her to create an e-mail account and then
send a mail.
Ans: To create an e-mail account and then send a mail below-mentioned steps should be
followed:
E-mail ID can be created using any free account provider such as Gmail or Yahoo.
While opening the e-mail account you will be required to fill an application form where you
will provide details, such as complete name, age, login id, set password, etc.
Once you submit the details, your account will be operational in few minutes.
For ending an e-mail, open Gmail.
On the left, click Compose.
(Optional) To change your window size, in the upper corner, click Maximize or Exit full
screen .
Add recipients and a subject.
Enter your message. E-mail, you start writing but don't send are automatically saved in
Drafts shown on the left.
(Optional) Add attachments, such as Drive files or photos .
Click Send.
CHAPTER 2: INTRODUCTION TO HTML
Exercises
OBJECTIVE TYPE QUESTIONS
A. MULTIPLE CHOICE QUESTIONS (MCQs)
1. The <HR> tag inserts on a webpage.
a) A straight line
b) A circle
c) A border
d) None of these
Ans: a) A straight line
2. To display “bullets” against list items we use:
a) <OL>
b) <UL>
c) Both of them
d) None of them
Ans: b) <UL>
3. Which tag leaves a blank line?
a) <Hr>
b) <Br>
c) <Line>
d) <empty>
Ans: b) <Br>
4. To assign the background image for the document, background attribute is used with which of
the following tags?
a) <BODY>
b) <HTML>
c) <P>
d) None of these
Ans: a) <BODY>
5. The number of levels HTML supports to tag headings in a document is
a) 4
b) 6
c) 8
d) 10
Ans: b) 6
6. Which HTML tag will be used to scroll a text in webpage?
a) <marquee> … </marquee>
b) <scroll> … </scroll>
c) <round> … </round>
d) <go> … </go>
Ans: a) <marquee> … </marquee>
7. How to set a picture as a background in webpage?
a) <body background= “bgimage.gif”>
b) <body background image= “bgimage.gif”>
c) <background= “bgimage.gif”>
d) <background image= “bgimage.gif”>
Ans: a) <body background= “bgimage.gif”>
8. Which tag is used to insert line break in HTML code?
a) <pr>
b) <lb>
c) <br>
d) <break>
Ans: c) <br>
9. HTML document is saved using extension.
a) .htl
b) .html
c) .hml
d) .htnl
Ans: b).html
10. The software that can read and render HTML documents is
a) Server
b) Compiler
c) Interpreter
d) Browser
Ans: d) Browser
11. HTML document can contain
a) Attributes
b) Tags
c) Plain text
d) All of these
Ans: d) all of these
12. HTML tags are surrounded by brackets
a) Angle
b) Square
c) Round
d) Curly
Ans: a) Angle
13. Opening tag of HTML is called
a) Ending tag
b) Starting tag
c) Closed tag
d) Pair tags
Ans: b) Starting tag
14. To create HTML document, you require a
a) Webpage editing software
b) High powered computer
c) Just a notepad can be used
d) None of the above
Ans: c) Just a notepad can be used
15. Which HTML tags cause browsers to render text as italics?
a) <text style = ‘‘italics’’></text>
b) <ital.></ital.>
c) <i></i>
d) <b></b>
Ans: c) <i></i>
16. Which attribute is not valid for <body> tag?
a) background
b) color
c) vlink
d) leftmargin
Ans: a) background
17. Which of the following code displays a less than symbol while loaded in browser?
a) <
b) >
c) ©
d)
Ans: a) <
18. What does stand for?
a) Non-blocked space
b) Non-breaking space
c) Non-baked space
d) Never-broken space
Ans: b) non-breaking space
19. Which of the following tag displays the content in the middle of browser horizontally?
a) <p alignment=”centered”>
b) <p text-align=”center”>
c) <p aligned=”center”>
d) <p align=”center”>
Ans: d) <p align=”center”>
20. Inserting <br> tag inside a paragraph
a) Adds a new paragraph
b) Breaks a paragraph into two
c) Adds a line break so that new line is started within same paragraph
d) Makes it an empty paragraph
Ans: c) Adds a line break so that new line is started within same paragraph
21. An ordered list is a list and an unordered list is a list.
a) bulleted & numbered
b) bulleted & tabular
c) tabular & numbered
d) numbered & bulleted
Ans: d) numbered & bulleted
22. Title tag is nested within the tag.
a) Body
b) Head
c) List
d) Table
Ans: b) Head
23. Which of the following is not a single tag?
a) <p> tag
b) <br> tag
c) <hr> tag
d) <img> tag
Ans: d) <img> tag
24. If a tag has its corresponding closing tag, such tags are called,
a) empty tag
b) container tags
c) self-closing
d) none of above
Ans: b) container tags
25. Which attribute is used to control the length of <hr> horizontal line?
a) length=value
b) width=value
c) height=value
d) none of above
Ans: a) length=value
26. A paragraph can be aligned left, right, center or justified using <p> tag with attribute
a) text-align
b) alignment
c) align
d) text-direction
Ans: c) align
27. Attribute for choosing type of font is
a) character
b) basefont
c) font
d) type
Ans: d) type
28. Which of the following is correct to change the text color to red?
a) <BODY Bgcolor = red>
b) <BODY text = red>
c) <BODY color = red
d) none of the above
Ans: b) <BODY text=red>
29. In HTML, each parameter in RGB (red, green, blue) defines intensity of color between?
a) 0-90
b) 0-255
c) 0-65536
d) 0-infinity
Ans: b) 0-255
30. Choose the correct HTML tag for largest heading
a) <heading>
b) <H6>
c) <head>
d) <h1>
Ans: d) <h1>
31. Choose the correct syntax to create an e-mail link
a) <A href = "abc@xyz.com">
b) <A href = "mailto:abc@xyz.com">
c) <mail = "abc@xyz.com">
d) <A mail = "abc@xyz.com">
Ans: a) <A href = "abc@xyz.com">
32. To create a link, we must use attribute with <A> tag
a) name
b) link
c) tag
d) href
Ans: d) href
33. In Internal linking, the sections names are defined by attribute of <A> tag.
a) href
b) title
c) name
d) none of the above
Ans: c) name
34. Which attribute of <A> tag is used to open a link in a new window?
a) name
b) target
c) HREF
d) none of these
Ans: b) target
35. Which option of <A> tag is used to send e-mail from the browser?
a) Mailto
b) E-mail
c) Name
d) Href
Ans: a) Mailto
B. FILL IN THE BLANKS
1. HTML stands for Hyper Text Markup Language.
2. An Html document has two distinct parts Head and Body.
3. In HTML, the tags that have both an ON tag and an OFF tag are called container elements.
4. vlink is used to change the color of a visited link.
5. ul tag creates a bulleted list.
6. Background tag is used for inserting a background image.
7. For displaying colored text, text tag is used.
8. HR tag is used for horizontal line.
9. bgcolor attribute of the BODY tag is used to set the color of the background.
10. Width attribute is used to define the thickness of horizontal rule.
THEORETICAL QUESTIONS
1. Write the HTML code to display a horizontal line of red color.
Ans:
<HTML>
<HEAD>
<TITLE>
RED HORIZONTAL LINE
</TITLE>
<HEAD>
<BODY>
<BR><H1> DISPLAY RED HORIZONTAL LINE</H1> <BR><BR>
<HR COLOR="red">
</BODY>
</HTML>
2. Write the HTML code to create a paragraph whose text color is Red.
Ans:
<HTML>
<HEAD><TITLE>A paragraph whose text color is Red </TITLE><HEAD>
<BODY>
<p style="color: red";> Paragraph text in red color </p>.
</BODY>
</HTML
7. Name the attribute used with <A> tag to specify the URL of link.
Ans: The href attribute is used to define hyperlink in the <a> element.
10. Identify the errors and write the correct HTML statements:
a. <BODY BGCOLOUR= “Red”>
b. <FONT TYPE = “Arial”>
Ans:
a. <body bgcolor= “Red”>
With HTML5 correct code will be:
<body style="background-color:red;">
b. <font type = “Arial”>
With HTML5 correct code will be:
<p style="font-family:Arial"
11. Write the html code to make background appear blue, text yellow, recently visited link green
and selected link as purple.
Ans: <BODY BGCOLOR = #0000FF TEXT = #FFFF00 LINK = 00ffff VLINK = 00FF00 ALINK = #800080>
13. Write down the correct syntax for creating a link on a webpage.
Ans:
<A HREF = " https://www.google.com/ "> is the correct syntax for creating a link to webpage.
Example
<A HREF = " https://www.google.com/ "> Open Google search engine </A>
Explanation:
<a> tag refers to hyperlink.
It is used to define a link among webpages.
<a> has an attribute named as href attribute.
The webpage which is to be linked is mentioned in href attribute.
By default, an unvisited link is visible underlined and blue.
14. Write the HTML code to set page title as “My First Webpage”.
Ans:
<HTML>
<HEAD>
<TITLE>My First Webpage</TITLE>
</HEAD>
</HTML>
15. Write the HTML code to set image favorite.gif on your webpage.
Ans: <img src="C:\Users\Desktop\favorite.gif">
16. Name the attributes of <A> tag used to create an internal link in a webpage.
Ans: Internal link is linked within the same webpage. In this type of linking, a particular section is
defined by an <a> tag, used as the anchor point name, and is referred to an internal link into the
same page
<HTML>
<HEAD>
<TITLE>Internal Linking</TITLE>
</HEAD>
<BODY>
<A NAME="first"> <B>Fossil Fuels</B></A>
<P>The growing demand for energy was largely met by the fossil fuels – coal and petroleum. Our
technologies were also developed for using these energy sources. But these fuels were formed
over millions of years ago and there are only limited reserves. The fossil fuels are non-renewable
sources of energy.</P><BR><BR><BR><BR>
<H2><B>Hydro Power Plants</B></H2>
<P>Hydro power plants convert the potential energy of falling water into electricity </P>
<A HREF="#first"> go to Fossil Fuels</A>
</BODY>
</HTML>
17. Write the HTML code to display text in a particular font type. For example
Font size=5
Font face=Arial
Font color=green
Ans: <font face = "Arial" color=green size=5>
18. Write the html code to display usage of comment.
Ans:
</title>
</head>
<body>
</body>
</html>
23. A website on the topic ‘Green House Effect’ is to be set, which tags are used to give title and
headings of webpage.
Ans:
A <title> tag is an HTML element that specifies the title of a webpage. Heading is a text that is
separated from the other contents on a webpage. There are six heading levels in HTML, i.e., <H1>
to <H6>. As we increase through the heading levels, i.e., from H1 to H6, the size of the heading will
be decreased.
<HTML>
<HEAD>
<TITLE>Green House Effect</TITLE>
</HEAD>
<BODY BGCOLOR="yellow">
<H1>Heading 1</H1>
<H2>Heading 2</H2>
<H3>Heading 3</H3>
<H4>Heading 4</H4>
</BODY>
</HTML>
24. Name the two attributes of the body tag used to specify backgrounds.
Ans: Two attributes of body tag are:
• bgcolor - specifies the background color of a document.
• text - specifies the color of the text in a document.
<BODY BGCOLOR ="yellow" text="blue">
CODE
<HTML>
<HEAD>
<TITLE>Green House Effect</TITLE>
</HEAD>
<BODY bgcolor = #00cccc text=#009922>
<H1 style="color:#0033cc;>
<Font face="arial"><b><P ALIGN="center">Working of Thermal Power Plant</b></Font></H1></p>
<hr width=100% color="gray" size="3"><Font color = #990000">
<h2>Thermal Power Plant is a plant in which electricity is produced from fossil fuel mainly
coal.</Font><br><br></h2>
<h3>
Large amount of fossil fuels is burnt every day in power station to heat up water to produce stem
which further runs the turbine to generate electricity.
<br><br>
The transmission of electricity is more efficient than transporting coal or petroleum over the same
distance. Therefore, many thermal power plant is used since fuel is burnt to produce heat energy
which is converted into electrical energy.
</h3>
</BODY>
</HTML>
2. Consider the following webpage and answer the given questions.
a. Write the HTML code to display the first heading of the webpage.
Ans: <H1 style="color:#0033cc;><Font face="Arial"><b> <P ALIGN="center">Wind
Energy</b></Font> </H1></p>
b. Write the HTML tag to display line in blue color.
Ans: <hr width=95% color="blue" size="2"><Font color = #990000">
c. Write down the HTML code to display an ordered list as shown in page.
Ans:
<OL>
<LI>No Pollution</LI>
<LI>Renewable</LI>
<LI>No recurring cost</LI>
d. Write the HTML code to display an unordered list as shown in page.
Ans:
<uL type ="disc">
<LI>high set up cost</LI>
<LI>Wind farms can be established at those places where windspeed is greater than 15 km/hr</LI>
<LI>Requires large area around 1 MW-2 hectare land</LI>
</UL>
e. Write the HTML code to change round bullet of unordered list to square bullet.
Ans: <uL type ="square">
f. Is there a nested list in given example?
Ans: Yes
3. Observe the given webpage and write HTML code to generate it.
The kinetic energy possessed by huge waves near the seashore can be trapped in a similar
manner to generate electricity. The waves are generated by strong winds blowing across the
sea.
</Body>
</HTML>
CHAPTER 3: ADVANCED HTML
Exercises
OBJECTIVE TYPE QUESTIONS
A. MULTIPLE CHOICE QUESTIONS (MCQs)
1. Which tag is used to insert an image in a webpage?
a) <A>
b) <IMG>
c) <UL>
d) <DL>
Ans: b) <IMG>
2. To display “bullets” against list items we use:
a) <OL>
b) <UL>
c) Both of them
d) None of them
Ans: b) <UL>
3. Which of these tags belongs to <table> tag?
a) <thead><body><tr>
b) <table><head><tfoot>
c) <table><tr><td>
d) <table><tr><tt>
Ans: c) <table><tr><td>
4. Which one of the following is not an option for aligning data in a table?
a) Justify
b) Right
c) Left
d) Center
Ans: a) Justify
5. With which code you can make an image work as link?
a) <A href=“URL”>Text</A>
b) <A href= ABC.html><img src=graphic.gif>Click Here</A>
c) <A ref=mailto:<img src=graphic.gif>Click Here</A>
d) None of the above
Ans: b) <A href= ABC.html><img src=graphic.gif>Click Here</A>
6. Which of these tags is/are used with <Table> tag?
a) <TR>
b) <TD>
c) <TH>
d) All of the above
THEORETICAL QUESTIONS
1. Write the HTML code to display a table with border of 5px.
Ans:
<html>
<body>
<table border = '5'>
<tr><td>l</td></tr>
<tr><td>2</td></tr>
</table>
</body>
</html>
2. Write the HTML code to display an image on the right side of page.
Ans:
<html>
<body>
<img src=”image.jpg” align=”right”>
</body>
</html>
3. Name the attributes of <img> tag which are used for specifying its dimensions in a webpage.
Ans: Width and height
4. Write the full forms of the following:
Ans:
i. <TD> = table definition
ii. HTML = hyper text markup language
iii. ALT = alternate text
iv. <TFOOT> = table foot
6. Write the HTML code to insert an image on webpage named mypic.jpg located at c:\.
Ans:
<html>
<body>
<img src=”c:/mypic.jpg”>
</body>
</html>
Ans:
<table>
<tr>
<th colspan=”4”>My Hobbies</th>
</tr>
<tr>
<td>Dancing</td>
<td>Reading</td>
<td>Swimming</td>
<td>Music</td>
</tr>
<tr>
<td colspan=”4”>Everyone has talent.</td>
</tr>
</table>
9. Write the HTML code to display the given table.
Ans:
<table>
<tr>
<th>A</th>
<th>B</th>
<th>C</th>
</tr>
<tr>
<td rowspan=”2”>D</td>
<td>E</td>
<td rowspan=”2”>F</td>
</tr>
<tr>
<td>G</td>
</tr>
<tr>
<td colspan=”3”>I</td>
</tr>
</table>
10. Write an HTML code to insert an image to a cell of table.
Ans:
<td>
<img src=”image.jpg”>
</td>
11. Differentiate between cellspacing and cellpadding.
Ans: Cellpadding basically defines the space present between a table cell's border and the content
present in it. Cellspacing basically defines the space present between individual adjacent cells.
12. Write the HTML code to create an ‘image1.jpg’ as a hyperlink to file ‘Description.html’.
Ans: <a href=”description.html”><img src=”image1.jpg”></a>
13. Write down the different attributes of <IMG> tag.
Ans: Src and alt
14. How many alignments are available for aligning images in a webpage? Name them.
Ans: In HTML, five types of alignment are available to align an image, which are:
i. Top
ii. Middle
iii. Bottom
iv. Left
v. Right
15. Define <THEAD>, <TBODY> and <TFOOT> tags of a table.
Ans:
<thead> = The <thead> tag is used to group header content in an HTML table.
<tbody> = The <tbody> tag is used to group the body content in an HTML table
<tfoot> = The <tfoot> (short for table foot) element defines a table's footer. It is typically used to
group a set of table rows summarizing the columns of the table
17. Observe the following table and write the HTML code to generate it.
Ans:
<table>
<tr>
<th colspan=”2”>SUBJECT</th>
<th>STUDENT A</th>
<th>STUDENT B</th>
</tr>
<tr>
<td colspan=”2”>BIOLOGY</td>
<td>PRACTICAL</td>
<td>A+</td>
<td>A</td>
</tr>
<tr>
<td>THEORY</td>
<td>A+</td>
<td>A</td>
</tr>
<tr>
<td colspan=”2”>CHEMISTRY</td>
<td>PRACTICAL</td>
<td>A+</td>
<td>A</td>
</tr>
<tr>
<td>THEORY</td>
<td>B+</td>
<td>B</td>
</tr>
<tr>
<td colspan=”2”>PHYSICS</td>
<td>PRACTICAL</td>
<td>C+</td>
<td>B</td>
</tr>
<tr>
<td>THEORY</td>
<td>A+</td>
<td>A</td>
</tr>
</table>
18. Write the HTML code to display an inline image named student.jpg located at c:\ in the
center of your webpage.
Ans:
<html>
<body>
<center>
<img src=”c:\student.jpg”>
</center>
</body>
</html>
19. What happens when we click on a hyperlink on webpage?
Ans: When we click on a hyperlink in a webpage it provides a link that leads from one document to
another.
21. Name the attributes of <A>tag which are used for internal linking in a webpage.
Ans: <name> and <href> are attributes which are used for internal linking in a webpage.
23. Name the two common attributes of <IMG> and <TABLE> tag.
Ans: Height and width.
There is hyperlink ‘His Awards and Achievements’ of file ‘description.html’ saved in drive d:\.
Ans: <a href=”d:\description.html>His Awards and Achievements</a>
================================== X ==================================
CHAPTER 4: HTML FORMS
Exercises
OBJECTIVE TYPE QUESTIONS
MULTIPLE CHOICE QUESTIONS (MCQs)
1. Which is the default of ‘type’ attribute of <input> element?
a) Text
b) Password
c) Numerals
d) Special Characters
Ans: a) Text
2. Which attribute defines the file-select field?
a) file
b) checkbox
c) button
d) text
Ans: a) file
3. Which of the following is not used with password attribute?
a) name
b) size
c) maxlength
d) min
Ans: d) min
4. Which element is used to create multiline text input?
a) text
b) textarea
c) submit
d) radio button
Ans: b) textarea
5. Which attribute is not used for the radio type?
a) name
b) value
c) checked
d) selected
Ans: d) selected
6. Which attribute is used with <select> element?
a) multiple
b) selected
c) name
d) value
Ans: a) multiple
THEORETICAL QUESTIONS
1. Mention the purpose of using Web Forms.
Ans: A web form is a medium that allows your visitors to get in contact with you and to send
information, such as an order, a catalogue request, or even a query, which is passed on to your
database.
3. Differentiate between
1. Get & Post methods of Form tag
2. Text Field and Text Area Controls
3. Radio buttons and Check box
Ans:
1. The GET and POST method are used for sending the data to the server, and the main
difference between them is that GET method append the data to the URI defined in the
form’s action attribute. Conversely, POST method attaches data to the requested body.
2. The major difference between a text area and a text field is that a text field only has one line
whereas a text area is usually has multiple lines.
3. Checkboxes allow the user to choose items from a fixed number of alternatives, while radio
buttons allow the user to choose exactly one item from a list of several predefined
alternatives.
6. How can you select 3rd option by default in a list used in HTML Forms?
Ans: The default value of the select element can be set by using the 'selected' attribute on the
required option. This is a Boolean attribute. The option that is having the 'selected' attribute will be
displayed by default on the dropdown list.
2. Write code to create the following HTML Form to accept User’s Information as part of a
Magazine Survey:
4. Write a program to declare 2 radio buttons (Male, Female) and one check box (hobbies) in the
HTML form.
Ans: <form>
<label for="gender">Gender: </label>
<input type="radio" id="gender" name="gender" value="male"/>Male
<input type="radio" id="gender" name="gender" value="female"/>Female<br/>
<input type="checkbox" id="hobby" name="hobby" value="hobby"/>
</form>
Ans:
<body>
<form>
Please input your name<br>
<input type="text" name="username">
<input type="submit" value="submit">
</form>
</body>