Você está na página 1de 6

1) Identify the syntax for the HTML code used to set an image as a background in a web

page.

a) <Body Bgcolor=”image.gif”>
b) <Body Background=”image.gif”>
c) <Body=”image.gif”>
d) <Head Background=”image.gif”>

2) Don Allen, a graphic designer, needs to insert a graphic, image.gif in a Web page.
Identify the syntax for the HTML code that Don will use to display text as Logo
before the image downloads on the client’s browser.

a) <img src=”image.gif” alt=”logo”>


b) <img alt=”image.gif”>
c) <img=”image.gif” src=”image”>
d) <img align=”image.gif”>

3) Ron Floyd needs to create a table in a Web page with the border width as 5.Identify
the code to be inserted between line 3 and 4 in the displayed code for the desired
output.

<html>
<body>
<p>The following table gives you Student details: </p>

<tr>
<th>S.No.</th>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<th>Student 1</th>
<td>1</td>
<td>Jim Lewis</td>
<td>15</td>
</tr>
<tr>
<th>Student 2</th>
<td>2</td>
<td>Nancy Jones</td>
<td>16</td>
</tr>
</table>
</body>
</html>

a) <table>
<table border = “5”>
b) <table border = 5>
c) <table border = “5”>
d) <table>
<table border = 5>
4) John Smith, a software developer, needs to display the text “ABC Stores” and “A
Shopper’s paradise” on a Web page in bold and underlined. The text “ABC Stores”
and “A Shopper’s paradise” should appear on separate lines. Identify the syntax for
the code that John will use to display the text.

a) <b><u>ABC Stores A Shopper’s paradise</u></b>


b) <b><u>ABC Stores<br>A Shopper’s paradise</br></u></b>
c) <b><u>ABC Stores<br>A Shopper’s paradise</u></b>
d) <b><u>ABC Stores<br>A Shopper’s paradise

5) Larry Williams, a Web designer, needs to display two phrases on a Web page. Identify
the tag that Larry needs to use to ensure that the phrases are formatted by using
multiple spaces and blank lines on the Web page.

a) <b>
b) <pre>
c) <p>
d) <br>

6) Identify the syntax for the HTML code used to display a set of items with a preceding
number or an alphabet.

a) <ul>
<li>First Item in list
<li>Second Item in list
</ul>
b) <ol>
<li>First Item in list
<li>Second Item in list
</ol>
c) <dl>
<li>First Item in list
<li>Second Item in list
</dl>
d) <nl>
<li>First Item in list
<li>Second Item in list
</nl>

7) Identify the HTML tag used to display text in separate horizontal blocks.

a) <br>
b) <p>
c) <hr>
d) <hi>
8) Which tag is used in the Web document to use server-side Javascript in an HTML
document?

a) <script>
b) <server>
c) <javascript>
d) <head>

9) In Javascript, which of the following is a property of the History object?

a) history.go
b) history.back
c) history.forward
d) history.current

10) Identify an empty tag from the following list of HTML tags.

a) <br>
b) <body>
c) <p>
d) <b>

11) Nancy needs to create a Web page for displaying her personal information on a Web
site. Identify the correct code that will display her name at the top of the Web page as
a heading.

a) <html>
…….
<body>
Nancy Jones
</body>
……
</html>
b) <html>
<head>
Nancy Jones
</head>
………
</html>
c) <html>
<title>
Nancy Jones
</title>
……
</html>
d) <html>
Nancy Jones
<body>
…….
</body>
</html>
12 Identify a feature of an unordered list.

a) An unordered list is used to display a set of items with a preceding number or an


alphabet.
b) An unordered list is used to display a set of items with a preceding bullet.
c) An unordered list is used to display a set of items and their description.
d) An unordered list is used to combine the entire structure of one list within another
list.

13) Identify the correct tags for inserting JavaScript code in an HTML code

a) <script language=”JavaScript”>
</script>
b) <script =”JavaScript”>
</script>
c) <script >
<language=”JavaScript”>
</script>
d) <JavaScript script>
</script>

14) Identify the site structure that should be used by Web sites displaying stand-alone
information.

a) Sequence
b) Grid
c) Web
d) Hierarchy

15) Which of the following is a common addressing scheme used by Web browsers to
locate networks, computers, and files on the Internet?

a) TCP
b) WWW
c) URL
d) W3C

16) Identify the invalid statements in the displayed code.

1. <form method =”_url” action=”Post”>


2. <input name =”n2” type=”checkbox” value=”checked”>
3. <submit>
4. </form>

a) 1&3
b) 1&2
c) 2&4
d) 3&4
17) Identify the syntax for the HTML code that is used to create a hypertext link.

a) <a> href = “url” Text </a>


b) <a href = “url”> Text </a>
c) <a href = ”#url”> Text </a>
d) <a name = “url”> Text </a>

18) Identify the attribute of the Frameset tag that is used to specify the top and bottom
margins in a frame.

a) height
b) marginheight
c) margin
d) spacing

19) Identify the syntax for the HTML code that is used to create a form that enables users
to send large amounts of data to a Web server.

a) <form
action = “url” method = “get”>
</form>
b) <form
<action = “url” method = “post”>
</form>
c) <form = “url” method = “post”>
</form>
d) <form
action = “url” method = “post”>
</form>

20) Which of the following conditional construct is used to branch a JavaScript code,
depending on the conditional expression specified in the code?

a) Switch case
b) Do-while
c) For
d) If-else

21) Identify the HTML tag used to insert data in a table cell.

a) <th>
b) <tr>
c) <td>
d) <table>

22) Identify the attribute of the image map tag that is used to indicate that an image is a
client-side image map.

a) <src>
b) <img>
c) <usemap>
d) <mapsrc>
23) John Smith, a software developer, needs to create a Web site for AB Corp. Many
pages of the Web site need to be linked to the Web page www.xyz.com/search.
Identify the syntax for the HTML code that John will use to link these Web pages by
using a single command.

a) <html>
<base href = http://xyz.com/search/>
</html>
b) <body>
<base href = http://xyz.com/search/>
</body>
c) <head>
<base href = http://xyz.com/search/></base>
</head>
d) <head>
<base href = http://xyz.com/search/>
</head>

24) Jim Lewis, an application developer, needs to create a circular server-side image map
for the image abc.gif. The coordinates of the image map should be 15,5,40,45. The
name of the image map should be abc1. Identify the syntax for the HTML code that
Jim will use to create the image map.

a) <img src = “abc.gif”>


<map name = “abc1”>
<area coords = “15,5,40,45” shape = “circle”>
</map>
b) <img src = “abc.gif”>
<map name = “abc1”>
<coords = “15,5,40,45”> shape = “circle”>
</map>
c) <img src = “abc.gif”>
<map>
<area coords = “15,5,40,45”> shape = “circle”>
</map>
d) <img src = “abc.gif”>
<map name = “abc1”>
<area coords = “15,5,40,45”>, “circle”>
</map>

25) _____________ stores string data that remains in the memory of the browser for a
specified period.

a) cookie
b) anchor
c) forms
d) referrer

Você também pode gostar