You are on page 1of 45

1.

You can add names to each frame window using the setting
…………..
a. src
b. href
a. url
b. name
c. none

2. Which of the following is not valid HTML ?


a. <frameset cols="16%,*">
b. <frameset rows="16%,84%">
c. <frameset rows="100,100">
d. <frameset cols="100,150">
e. <frameset tables="100,150">

3. Which attribute specify where to send a form?


a. method
b. input
c. output
d. action
e. type

4. Password fields are similar to


a. Text fields except text show as asterix
b. Hidden fields except text show as asterix
c. Text area except text show as asterix
d. input except text show as asterix
e. All of the above asterix
5. Where in an HTML document is the correct place to refer to an external
style sheet?
a. In the <body> section
b. At the end of the document
c. At the top of the document
d. In the <head> section
e. Any section

6. Which HTML tag is used to define an internal style sheet?


a. css
b. text/style
c. style
d. script
1
7. Which HTML attribute is used to define inline styles?
a. font
b. styles
c. css
d. style

8. Which of the following is the correct CSS syntax?


a. body {color= black}
b. body:color=black
c. {body:color=black(body}
d. {body;color:black}
e. body {color: black}

9. How do you insert a comment in a CSS file?


a. /* this is a comment */
b. ' this is a comment
c. // this is a comment //
d. // this is a comment

10. Which property is used to change the background color in CSS?


a. bgcolor
b. background-color
c. back-color
d. color:
e.
11. How do you add a background color for all "<h1>" elements?
a. all.h1 {background-color:#FFFFFF}
b. h1.all {background-color:#FFFFFF}
c. h1 {background-color:#FFFFFF}
d. all.h{background-color:#FFFFFF}

12. How do you change the text color of an element using CSS?
a. text-color:
b. color:
c. text-color=
d. font-color:

13.Which CSS property controls the text size?


a. font-style
b. text-style
2
c. font-size
d. text-size

14.How do you display hyperlinks without an underline?


a. a {decoration:no underline}
b. a {text-decoration:no underline}
c. a {underline:none}
d. a {text-decoration:none}

15.How do you make each word in a text start with a capital letter?
a. text-transform:uppercase
b. text-transform:capitalize
c. You can't do that with CSS
d. text-transform:capitalize

16.How do you change the font of an element in CSS?


a. fon-face:
b. font-family:
c. f:
d. font-style:

17.How do you make the text bold in CSS?


a. b
b. style:bold
c. font-weight:bold
d. font-style:bold

18. How do you display a border like this: The top border = 10 pixels, The
bottom border = 5 pixels, The left border = 20 pixels, The right border
= 1pixel?
a. border-width:10px 20px 5px 1px
b. border-width:10px 1px 5px 20px
c. border-width:10px 5px 20px 1px
d. border-width:5px 20px 10px 1px

19. How do you change the left margin of an element?


a. padding:
b. indent:
c. margin:left
d. margin-left:

3
4
20.Which of this is the correct XHTML for a list?
a. <li></Li>
b. <li><li>
c. <li></li>
d. <LI></LI>
21.What is a correct XHTML tag for a line break?
a. <break/>
b. <br />
c. </br>
d. <break>
e. <BR>
22.What is the correct XHTML code for an attribute and its value?
a. TYPE="text/css"
b. type=text/css
c. type="text/css"
d. Type=text/css
e. type:text/css

23.Which elements are mandatory in an XHTML document?


a. doctype, html, head, body, and title
b. doctype, html and body
c. doctype, html, head, and body
d. doctype, html, title, and body
e. html, body
24.What XHTML code is "well-formed"?
a. <p>A <b><i>short</i></b> paragraph
b. <p>A <b><i>short</i></b> paragraph</p>
c. <p>A <b><i>short</b></i> paragraph</p>
d. all of above
e. none of these

25.Which attribute replaces the name attribute in XHTML?


a. The src attribute
b. The id attribute
c. Href

5
d. None
e. All of the above

26.In writing XHTML the opening and closing tags should start and end with
XHTML
d. True
e. False

27. Cascading Style Sheets (CSS) can be defined for entire website by simply
writing the CSS definitions
a. As Plain Text document
b. In the Head section of each page
c. In the Body section of each page
d. None
e. All of above

28.In CSS, which of the following options do you have for changing text
color?
a. Common name and Hexcolor only
b. Common name, RBG value, Hexcolor
c. RBG value, Hexcolor
d. Hexcolor only
e. Common name only
29. Which of the following is NOT a valid CSS selector?
a. ID selectors
b. TAG selectors
c. Title selectors
d. HEAD selectors
e. none of the above

30. In CSS, a definition of fonts, colors, etc. is called ……...


a. Font-family
b. ID tag
c. Style
d. font colors
e. none of the above

6
31.In CSS, what does the font-style property apply to text?
a. Different colors
b. Bigger
c. Italic
d. All the above
e. None

32.In CSS, a:link defines the style for ?


a. active links
b. visited links
c. actual links
d. normal unvisited links
e. active and visited links
33.How many levels can CSS be added to a page?
a. 2 - Head and External file
b. 4 - Tag, Head, External file and Meta tag
c. 3 - Tag, Head and External file
d. 1 – Head
34.<link rel=stylesheet href="mystyle.css" type="text/css"> is used for adding
CSS to the entire site ?
a. Yes - if present on all pages in the site.
b. Only if written in the <body>-section of the page.
c. No
d. if present on one page
e. none

35.What do you define in the style definition?


a. Which browser the visitor is using
b. How each selector should work
c. Where to place each selector
d. all of the above
e. none of the above

36.What is the correct HTML tag for inserting a horizontal line?


a. <hr>
b. <line>
c. <horizontal line>
7
d. </hr/>
e. </hr>

37.How do you define font style of the text in HTML?


a. <text style="Arial">
b. <font style="Arial"></font>
c. <text=Arial>
d. <style="Arial">
e. <style:"Arial">

38.Tags and text that do not show directly on the page are placed in the
a. Head
b. Body
c. Tables
d. Title
e. text

39.What of the following is the file extension used for HTML file ?
a. hmt
b. htlm
c. hmtl
d. doc
e. htm

40.Besides <b>, another way to make text bold is


a. <bold>
b. <strong>
c. <dark>
d. <emp>
e. <deep>

41.To create a bulleted list use……..


a. <ol>
b. <il>
c. <bullet>
d. <ul>
e. <th>

42.To change the size of an image in HTML use …………


a. pliers
b. height and width
c. top and bottom

8
d. bigger and smaller

43.Which tag is used to insert images into your web page?


a. img
b. src
c. pic
d. image
e. href

44.To add rows to your tables, which of the following tags can be used?
a. <tr> and </td>
b. <cr> and </cr>
c. <th> and </th>
d. <tr> and </tr>

45.Increasing the cellpadding value will ……………


a. Increase the distance between cell and content
b. Increase the softness of your site
c. Increase the space between cells
d. all of the bove
e. none

46.To define the space between the element's border and content, you use the
padding property, but are you allowed to use negative values?
a. Yes
b. No

47. How do you make a list that lists its items with squares?
a. type: square
b. list-style-type: square
c. list-type: square
d. style-list: square

48.20. What is the correct HTML for referring to an external style sheet?
a. <link rel="stylesheet" type="text/css" href="mainstyle.css">
b. <style src="mainstyle.css">
c. <stylesheet>mainstyle.css</stylesheet>
d. <link url="stylesheet" type="text/css" href="mainstyle.css">

49.How do you apply a style to several specific element types?


a. Use the type selector with , delimiter
b. Use the type selector with . delimiter
c. Use the ID selector with ; delimiter

9
d. Use the ID selector with > delimiter

50.What selector should you use when applying a style to multiple elements?
a. ID
b. Class
c. Type
d. Any of the above

51.Which values for font-family property is valid?


a. Times New Roman, serif
b. "Times New Roman", serif
c. Times New Roman; serif;
d. &quotTimes New Roman"; "serif";

52.Which property applies a color to text?


a. text-color
b. foreground-color
c. background-color
d. color

53. In what form are style rules presented?


a. selector { property: value }
b. selector { property= value }
c. selector ( property: value )
d. selector ( property= value )

54. Which is the correct CSS syntax?


a. body {color: black}
b. {body;color:black}
c. body:color=black
d. {body:color=black(body}

55. How do you display paragraph text with an underline?


a. p {font-decoration:underline}
b. p{text-font:underline}
c. p{text-underline:yes}
d. p{text-decoration: underline}

56. Where in an HTML document is the correct place to refer to an external


style sheet?
a. In the <body> section
b. In the <head> section
c. At the top of the document
d. At the end of the document

10
57.Which network protocol was the Web developed to run on
a. TCP
b. IP
c. WAN
d. LAN
e. TCP/IP

58.<a> and </a> are the tags used for ?


a. Audio-voiced text
b. Adding links to your page
c. Aligning text
d. Page breaks
e. Formatting text

59.Which of the following statement is not true about IP (Internet Protocol)


a. It uses “packet switching”. The data or message is divided in pieces called packets
IP datagram. IP specifies layout of the datagrams.
b. It is connectionless, meaning that there is no connection between source
destination.
c. It is unreliable: Packets may be lost (e.g. by congestion or by buffer overflow in
router)
d. A packet consists of HEADER and DATA. The header is at least 20 bytes long
contains the source and destination IP address.
e. None of the above

60.If you don’t want the frame windows to be resizeable, simply add what to the <frame>
lines ?

a. Save
b. dontresize
c. resize
d. size
e. Noresize

61.How can you make a list that lists the items with numbers?
a. <dl>
b. <lo>
c. <ul>
d. <ol>

11
e. <list>

62.What is the correct HTML code for adding a background color?


a. <body background="yellow">
b. <background>yellow</background>
c. <body style="background-color:yellow">
d. <background style>yellow</background style>
e. <background=yellow>

63.Choose the correct HTML tag for the largest heading


a. <h1>
b. <heading>
c. <h6>
d. <head>
e. <h10>

64.To create a bulleted list use ?


a. <il>
b. <ul>
c. <ol>
d. <list>
e. <bullets>

65. What is the correct HTML tag for inserting a line break?
a. <lb />
b. <br />
c. <break />
d. <bl/>

12
XHTML

1. What does XHTML stand for?

EXtensible HyperText Marking Language

EXtreme HyperText Markup Language

EXtensible HyperText Markup Language

EXtra Hyperlinks and Text Markup Language

2. XHTML is a Web standard

True

False

3. XML and HTML will be replaced by XHTML

False

True

4. HTML will be replaced by XHTML

True

False

5. What is the correct XHTML for a paragraph?

</p><p>

<P></p>

<p></p>

<P></P>

6. What is a correct XHTML tag for a line break?

<br />

<br>

<break/>

7. What is the correct XHTML for an attribute and its value?

WIDTH="80"

width="80"

width=80

WIDTH=80

13
8. All elements in XHTML must be closed

True

False

9. Is this correct XHTML?

<ul>
<li>Coffee</li>
<li>Tea
<ul>
<li>Black tea</li>
<li>Green tea</li>
</ul>
<li>Milk</li>
</ul>

Yes

No

10. The DOCTYPE declaration has no closing tag

False

True

11. Which elements are mandatory in an XHTML document?

doctype, html, head, and body

doctype, html, head, body, and title

doctype, html and body

12. XHTML documents must be "well-formed"

False

True

13. What XHTML code is "well-formed"?

<p>A <b><i>short</b></i> paragraph</p>

<p>A <b><i>short</i></b> paragraph

<p>A <b><i>short</i></b> paragraph</p>

14. Which of the following is the right use of the lang attribute?

<div xml:language="en">Hello World!</div>

<div lang="en" xml:lang="en">Hello World!</div>

14
<div language="en">Hello World!</div>

15. Which attribute replaces the name attribute?

The src attribute

The id attribute

None

16. Is attribute minimization allowed in XHTML?

No

Yes

17. Do all XHTML documents require a doctype?

Yes

No

18. What are the different DTDs in XHTML?

Strict, Transitional, Loose, Frameset

Strict, Transitional, Frameset

Strict, Transitional, Loose

19. What is the most common XHTML DTD?

Transitional

Normal

Loose

Frameset

20. All XHTML tags and attributes must be in lower case

True

False

15
HTML

1. What does HTML stand for?

Home Tool Markup Language

Hyperlinks and Text Markup Language

Hyper Text Markup Language

2. Who is making the Web standards?

The World Wide Web Consortium

Microsoft

Netscape

3. Choose the correct HTML tag for the largest heading

<h1>

<head>

<h6>

<heading>

4. What is the correct HTML tag for inserting a line break?

<break>

<lb>

<br>

5. What is the correct HTML for adding a background color?

<background>yellow</background>

<body color="yellow">

<body bgcolor="yellow">

6. Choose the correct HTML tag to make a text bold

<bld>

<bb>

<bold>

<b>

7. Choose the correct HTML tag to make a text italic

<ii>

16
<italics>

<i>

8. What is the correct HTML for making a hyperlink?

<a href="http://www.w3schools.com">W3Schools</a>

<a>http://www.w3schools.com</a>

<a name="http://www.w3schools.com">W3Schools.com</a>

<a url="http://www.w3schools.com">W3Schools.com</a>

9. How can you make an e-mail link?

<a href="mailto:xxx@yyy">

<mail href="xxx@yyy">

<a href="xxx@yyy">

<mail>xxx@yyy</mail>

10. How can you open a link in a new browser window?

<a href="url" target="_blank">

<a href="url" target="new">

<a href="url" new>

11. Which of these tags are all <table> tags?

<table><tr><td>

<table><tr><tt>

<thead><body><tr>

<table><head><tfoot>

12. Choose the correct HTML to left-align the content inside a tablecell

<td align="left">

<tdleft>

<td leftalign>

<td valign="left">

13. How can you make a list that lists the items with 1, 2, 3...?

<ul>

<ol>

17
<list>

<dl>

14. How can you make a list that lists the items with circles?

<ul>

<ol>

<list>

<dl>

15. What is the correct HTML for making a checkbox?

<input type="checkbox">

<input type="check">

<checkbox>

<check>

16. What is the correct HTML for making an input field?

<input type="textfield">

<input type="text">

<textinput type="text">

<textfield>

17. What is the correct HTML for making a drop-down list?

<select>

<input type="dropdown">

<input type="list">

<list>

18. What is the correct HTML for making a text area?

<input type="textarea">

<textarea>

<input type="textbox">

19. What is the correct HTML for inserting an image?

<img>image.gif</img>

<img src="image.gif">

18
<image src="image.gif">

<img href="image.gif>

20. What is the correct HTML for inserting a background image?

<background img="background.gif">

<img src="background.gif" background>

<body background="background.gif">

CSS

1. What does CSS stand for?

Computer Style Sheets

Creative Style Sheets

Cascading Style Sheets

Colorful Style Sheets

2. What is the correct HTML for referring to an external style sheet?

<link rel="stylesheet" type="text/css" href="mystyle.css">

<style src="mystyle.css">

<stylesheet>mystyle.css</stylesheet>

3. Where in an HTML document is the correct place to refer to an external style sheet?

At the top of the document

In the <head> section

In the <body> section

At the end of the document

4. Which HTML tag is used to define an internal style sheet?

<script>

<css>

<style>

5. Which HTML attribute is used to define inline styles?

class

style

19
styles

font

6. Which is the correct CSS syntax?

{body:color=black(body}

body {color: black}

{body;color:black}

body:color=black

7. How do you insert a comment in a CSS file?

/* this is a comment */

// this is a comment

' this is a comment

// this is a comment //

8. Which property is used to change the background color?

color:

background-color:

bgcolor:

9. How do you add a background color for all <h1> elements?

h1.all {background-color:#FFFFFF}

all.h1 {background-color:#FFFFFF}

h1 {background-color:#FFFFFF}

10. How do you change the text color of an element?

fgcolor:

text-color:

text-color=

color:

11. Which CSS property controls the text size?

text-size

font-size

text-style

20
font-style

12. What is the correct CSS syntax for making all the <p> elements bold?

<p style="text-size:bold">

p {text-size:bold}

<p style="font-size:bold">

p {font-weight:bold}

13. How do you display hyperlinks without an underline?

a {decoration:no underline}

a {text-decoration:none}

a {underline:none}

a {text-decoration:no underline}

14. How do you make each word in a text start with a capital letter?

text-transform:capitalize

text-transform:uppercase

You can't do that with CSS

15. How do you change the font of an element?

font=

font-family:

f:

16. How do you make the text bold?

font:b

font-weight:bold

style:bold

17. How do you display a border like this:


The top border = 10 pixels
The bottom border = 5 pixels
The left border = 20 pixels
The right border = 1pixel?

border-width:10px 1px 5px 20px

border-width:10px 20px 5px 1px

border-width:10px 5px 20px 1px

21
border-width:5px 20px 10px 1px

18. How do you change the left margin of an element?

margin-left:

text-indent:

margin:

indent:

19. To define the space between the element's border and content, you use the padding
property, but are you allowed to use negative values?

Yes

No

20. How do you make a list that lists its items with squares?

type: square

list-type: square

type: 2

list-style-type: square

JAVA SCRIPT

1. Inside which HTML element do we put the JavaScript?

<script>

<js>

<javascript>

<scripting>

2. What is the correct JavaScript syntax to write "Hello World"?

("Hello World")

document.write("Hello World")

"Hello World"

22
response.write("Hello World")

3. Where is the correct place to insert a JavaScript?

Both the <head> section and the <body> section are correct

The <head> section

The <body> section

4. What is the correct syntax for referring to an external script called "xxx.js"?

<script href="xxx.js">

<script name="xxx.js">

<script src="xxx.js">

5. An external JavaScript must contain the <script> tag

False

True

6. How do you write "Hello World" in an alert box?

alert("Hello World")

alertBox="Hello World"

alertBox("Hello World")

msgBox("Hello World")

7. How do you create a function?

function myFunction()

function:myFunction()

function=myFunction()

8. How do you call a function named "myFunction"?

myFunction()

call myFunction()

call function myFunction

9. How do you write a conditional statement for executing some statements only if "i" is equal
to 5?

if (i==5)

if i=5 then

23
if i=5

if i==5 then

10. How do you write a conditional statement for executing some statements only if "i" is NOT
equal to 5?

if =! 5 then

if (i <> 5)

if <>5

if (i != 5)

11. How many looping statements are there in JavaScript?

3. The "for" loop, the "while" loop, and the "do...while" loop

4. The "for" loop, the "while" loop, the "do...while" loop, and the "loop...until" loop

2. The "for" loop, and the "while" loop

1. The "for" loop

12. How does a "for" loop start?

for (i = 0; i <= 5; i++)

for (i <= 5; i++)

for (i = 0; i <= 5)

for i = 1 to 5

13. How can you add a comment in a JavaScript?

<!--This is a comment-->

'This is a comment

//This is a comment

14. What is the correct JavaScript syntax to insert a comment that has more than one line?

//This comment has


more than one line//
<!--This comment has
more than one line-->
/*This comment has
more than one line*/

15. What is the correct way to write a JavaScript array?

var txt = new Array("tim","kim","jim")

var txt = new Array(1:"tim",2:"kim",3:"jim")

24
var txt = new Array:1=("tim")2=("kim")3=("jim")

var txt = new Array="tim","kim","jim"

16. How do you round the number 7.25, to the nearest whole number?

Math.rnd(7.25)

rnd(7.25)

round(7.25)

Math.round(7.25)

17. How do you find the largest number of 2 and 4?

top(2,4)

Math.ceil(2,4)

Math.max(2,4)

ceil(2,4)

18. What is the correct JavaScript syntax for opening a new window called "window2" ?

new("http://www.w3schools.com","window2")

new.window("http://www.w3schools.com","window2")

open.new("http://www.w3schools.com","window2")

window.open("http://www.w3schools.com","window2")

19. How do you put a message in the browser's status bar?

window.status = "put your message here"

window.status("put your message here")

status("put your message here")

statusbar = "put your message here"

20. How do you find the client's browser name?

navigator.appName

client.navName

browser.name

25
XML

1. What does XML stand for?

eXtra Modern Link

eXtensible Markup Language

X-Markup Language

Example Markup Language

2. There is a way of describing XML data, how?

XML uses XSL to describe data

XML uses a DTD to describe the data.

XML uses a description node to describe data

3. XML's goal is to replace HTML

True

False

4. What is the correct syntax of the declaration which defines the XML version?

<?xml version="1.0" />

<?xml version="1.0"?>

<xml version="1.0" />

5. What does DTD stand for?

Direct Type Definition

Do The Dance

Document Type Definition

Dynamic Type Definition

6. Is this a correct XML document?

<?xml version="1.0"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>

No

Yes

26
7. Is this a correct XML document?

<?xml version="1.0"?>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>

Yes

No

8. Which statement is true?

All the statements are true

All XML elements must be lower case

All XML elements must have a closing tag

All XML documents must have a DTD

9. Which statement is true?

XML documents must have a root tag

XML tags are case sensitive

All the statements are true

XML elements must be properly nested

10. XML preserves white spaces

True

False

11. Is this a correct XML document?

<?xml version="1.0"?>
<note>
<to age="29">Tove</to>
<from>Jani</from>
</note>

No

Yes

12. Is this a correct XML document?

<?xml version="1.0"?>
<note>
<to age=29>Tove</to>
<from>Jani</from>
</note>

27
No

Yes

13. XML elements cannot be empty

False

True

14. Which is not a correct name for an XML element?

<h1>

All 3 names are incorrect

<1dollar>

<Note>

15. Which is not a correct name for an XML element?

<age>

<first name>

All 3 names are incorrect

<NAME>

16. Which is not a correct name for an XML element?

<phone number>

All 3 names are incorrect

<xmldocument>

<7eleven>

17. XML attribute values must always be enclosed in quotes

True

False

18. What does XSL stand for?

eXpandable Style Language

eXtensible Stylesheet Language

eXtensible Style Listing

eXtra Style Language

19. What is a correct way of referring to a stylesheet called "mystyle.xsl" ?

28
<?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>

<stylesheet type="text/xsl" href="mystyle.xsl" />

<link type="text/xsl" href="mystyle.xsl" />

20. For the XML parser to ignore a certain section of your XML document, which syntax is
correct?

<xml:CDATA[ Text to be ignored ]>

<CDATA> Text to be ignored </CDATA>

<![CDATA[ Text to be ignored ]]>

<PCDATA> Text to be ignored </PCDATA>

PHP QUIZ
1. What does PHP stand for?
You answered:
PHP: Hypertext Preprocessor
Correct Answer!

2. PHP server scripts are surrounded by delimiters, which?


You answered:
<?php…?>
Correct Answer!

3. How do you write "Hello World" in PHP


You answered:
echo "Hello World";
Correct Answer!

4. All variables in PHP start with which symbol?


You answered:
$
Correct Answer!

5. What is the correct way to end a PHP statement?


You answered:
;
Correct Answer!

6. The PHP syntax is most similar to:


You answered:
Perl and C
Correct Answer!

7. How do you get information from a form that is submitted using the "get" method?
You answered:
$_GET[];
Correct Answer!

8. When using the POST method, variables are displayed in the URL:
You answered:
False
Correct Answer!

29
9. In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
You answered:
True
Correct Answer!

10. Include files must have the file extension ".inc"


You answered:
False
Correct Answer!

11. What is the correct way to include the file "time.inc" ?


You answered:
<?php include "time.inc"; ?>
Correct Answer!

12. What is the correct way to create a function in PHP?


You answered:
function myFunction()
Correct Answer!

13. What is the correct way to open the file "time.txt" as readable?
You answered:
fopen("time.txt","r");
Correct Answer!

14. PHP allows you to send emails directly from a script


You answered:
True
Correct Answer!

15. What is the correct way to connect to a MySQL database?


You answered:
mysqli_connect(host,username,password,dbname);
Correct Answer!

16. What is the correct way to add 1 to the $count variable?


You answered:
$count++;
Correct Answer!

17. What is a correct way to add a comment in PHP?


You answered:
/*…*/
Correct Answer!

18. PHP can be run on Microsoft Windows IIS(Internet Information Server):


You answered:
True
Correct Answer!

19. In PHP, the die() and exit() functions do the exact same thing.
You answered:
True
Correct Answer!

20. Which one of these variables has an illegal name?


You answered:
$my-Var
Correct Answer!

30
1) What does HTML stand for?
a) Home Tool Markup Language
b) Hyperlinks and Text Markup Language
c) Hyper Text Markup Language

2) PHP is one of today’s most popular technologies for Web site


development when combined with
a) MySQL
b) Oracle
c) PeopleSoft
d) DB2

3) URL stands for


a) Universal Refresh Location
b) Uniform Resource Locator
c) Unique Register Location
d) Undeclared Resource Location

4) In HTML, the method of cross-referencing documents is known as


a) id
b) hypertext linking
c) idref
d) HREF

5) Who is making the Web standards?


a) The World Wide Web Consortium
b) The U.S. Government
c) The United Nations
d) Microsoft

6) JavaScript and PHP are both called ____ because code for both languages
is embedded in a Web page.
a) programming languages
b) embedded scripting languages
c) development environments
d) database management system tools

31
7) HTML formatting instructions are called
a) code
b) commands
c) mark up languages
d) tags

8) When HTML was first developed, Web pages were


a) cryptic
b) useless
c) dynamic
d) static

9) Choose the correct HTML tag for the largest heading


a) <h6>
b) <head>
c) <h1>
d) <heading>
e) <h0>

10) What is the correct tag for inserting a line break?


a) <lb />
b) <break>
c) <br />
d) <bb />

11) Choose the correct HTML tag to make a text bold


a) <bold>
b) <b>
c) <bb>
d) <bld>

12) Choose the correct HTML tag to make a text italic


a) <italics>
b) <ii>
c) <i>
d) <it>

13) What is the correct HTML for adding a yellow background color to a web
page?
a) <body bgcolor="yellow">
b) <body color="yellow">

32
c) <background>yellow</background>

14) What is the correct HTML for making a hyperlink?


a) <a url="http://www.w3schools.com">W3Schools.com</a>
b) <a href="http://www.w3schools.com">W3Schools</a>
c) <a>http://www.w3schools.com</a>
d) <a name="http://www.w3schools.com">W3Schools.com</a>
15) How can you make an e-mail link?
a) <a href="xxx@yyy">
b) <mail href="xxx@yyy">
c) <mail>xxx@yyy</mail>
d) <a href="mailto:xxx@yyy">

16) How can you open a link in a new browser window?


a) <a href="url" target="_blank">
b) <a href="url" new>
c) <a href="url" target="new">

17) Which of these tags are all <table> tags?


a) <table> <tr> <tt>
b) <table> <head> <tfoot>
c) <thead> <body> <tr>
d) <table> <tr> <td>

18) Choose the correct HTML to left-align the content inside a tablecell
a) <td valign="left">
b) <td align="left">
c) <tdleft>
d) <td leftalign>

19) How can you make a list that lists the items with numbers?
a) <ul>
b) <ol>
c) <dl>
d) <list>

20) How can you make a list that lists the items with bullets?
a) <ul>
b) <dl>
c) <list>
d) <ol>

33
21) What is the correct HTML for making a checkbox?
a) <check>
b) <checkbox>
c) <input type="check">
d) <input type="checkbox">

22) What is the correct HTML for making a text input field?
a) <input type="text">
b) <input type="textfield">
c) <textfield>
d) <textinput type="text">

23) What is the correct HTML for making a drop-down list?


a) <input type="dropdown">
b) <list>
c) <select>
d) <input type="list">

24) What is the correct HTML for making a text area?


a) <textarea>
b) <input type="textbox">
c) <input type="textarea">

25) What is the correct HTML for inserting an image?


a) <img>image.gif</img>
b) <img src="image.gif">
c) <image src="image.gif">
d) <img href="image.gif>

26) What is the correct HTML for inserting a background image?


a) <body background="background.gif">
b) <img src="background.gif" background>
c) <background img="background.gif">

27) A request and response for a file are made by a) a browser and an
application
b) a client and an agent
c) the Web page
d) a client and a server

28) PHP originally stood for “personal home page” but now stands for
34
a) parsed HTML protocol
b) partial hypertext preprocessor
c) PHP: hypertext preprocessor
d) poly-hypertext programming

29) A language very often used for client-side web scripting is:
a) PHP
b) MySQL
c) JavaScript
d) C++

30) All files that contains a PHP script …


a) cannot also include HTML code
b) must include the .php extension as part of the file name
c) will not execute without the inclusion of JavaScript
d) requires a file extension of .html

31) Which of the following code declaration blocks is most typical for
containing PHP code:
a) <?php … ?>
b) <?script … ?>
c) <? … ?>
d) <% … %>

32) PHP statements are terminated with the symbol:


a) ;
b) :
c) "
d) >

35
36
37
38
39
40
41
42
43
44
Write the XHTML document that produces the form below.

45

You might also like