Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Final Exam - WEB DEV

Total questions: 85

Worksheet time: 44mins

Name
Class
Date
1.

What does HTML stand for?

(a)  

2.

What is the syntax for an HTML comment?

a)

<comment>This is a comment</comment>

b)

<com: This is a comment>

c)

<!-- This is a comment -->

d)

<comment:"This is a comment" />

3.

What is the difference between a start tag and an end tag?

a)

An end tag starts with a forward slash.

b)

They are identical.

c)

An end tag is capitalized.

d)

An end tag is mandatory but a start tag is optional.

4.

Which file extension is used with standard web pages?

a)

.doc

b)

.xhtml

c)

.txt

d)

.html

5.

Which of the following is an opening HTML tag?

a)

</html>

b)

<<html>>

c)

<html>

d)

<html/>

6.

Which one of the following is a closing HTML tag?

a)

<html />

b)

</html>

c)

<</html>>

d)

<html>

7.

Which tag is used to add an image?

a)

<image>

b)

<img>

c)

<<img>>

d)

</image>

8.

Which of the following is the correct way to add an attribute?

a)

<src>

b)

classes:ids

c)

id="title"

d)

<id>

9.

What symbol should you use to target an id in css?

a)

.

b)

+

c)

id

d)

#

10.

What symbol should you use to target a class name in css?

a)

#

b)

()

c)

.

d)

class

11.

What is the correct syntax to change the background color with css?

a)

background-color: purple;

b)

background-color = "purple";

c)

backgroundcolor=orange

d)

change-background-color: purple

12.

TRUE OR FALSE: HTML is used to style web pages.

a)

True

b)

False

13.

TRUE OR FALSE: CSS is used to style web pages

a)

True

b)

False

14.

What is missing from this HTML skeleton?


<!DOCTYPE html>

<html>

<body>

</body>

</html>

a)

<head></head>

b)

<div></div>

c)

<img></img>

d)

<head>

15.

What tag do you use to make a numbered list?

a)

<list>

b)

<ol>

c)

<li>

d)

<ul>

16.

How do you change the font color with CSS?

a)

font-color: green;

b)

color: green;

c)

change-font-color: green;

d)

fontcolor=green;

17.

TRUE OR FALSE: All tags require a closing tag.

a)

True

b)

False

18.

Where should you put the link tag to connect your CSS and HTML file?

a)

Between the <head> </head> in HTML

b)

Between the <body> </body> in HTML

c)

None of the above.

19.

Where should you put the link tag to connect your CSS and HTML file?

a)

Between the <head> </head> in HTML

b)

Between the <body> </body> in HTML

c)

None of the above.

20.

TRUE OR FALSE: HTML is used to add content to web pages.

a)

True

b)

False

21.

Which of the following is the correct CSS link tag?

a)

<link rel="styles" href="stylesheet.css">

b)

<link href="stylesheet">

c)

<link rel="stylesheet" src="styles.css">

d)

<link rel="stylesheet" href="styles.css">

22.
What is the difference between an HTML Tag and an HTML element?
a)
An HTML Tag is case sensitive and an HTML element is not case sensitive.
b)
An HTML Tag is always paired and an HTML element is an "empty" tag.
c)
An HTML Tag defines content and an HTML Element includes the opening and closing tags and everything in between.
d)
An HTML Tag defines content and an HTML Element gives additional meaning and content.
23.
Karen wants to begin a new line within a paragraph of text on a webpage. Which code should she use?
a)
<li>
b)
<h1>
c)
<hr>
d)
<br>
24.
Jerry wants to insert a line break into his webpage. Which code should he use?
a)
<ul>
b)
<li>
c)
<br>
d)
<h1>
25.
What is the proper code to insert an image named "frog.jpg"?
a)
<img src="frog" width="104" height="142">
b)
<img="frog.jpg" width="104" height="142">
c)
<img src="frog.jpg" width="104" height="142">
d)
<img ="frog" width="104" height"142">
26.
Annie wants the name of her product to be the main heading at the top of her webpage. Which tag defines
the main heading in a web document?
a)
<h3>Product</h3>
b)
<h5>Product</h5>
c)
<h1>Product</h1>
d)
<h6>Product</h6>
27.
Which tag defines the visible content of a web document?
a)
<head>
b)
<meta>
c)
<title>
d)
<body>
28.
What tag defines the beginning of a webpage?
a)
<html>
b)
<h1>
c)
<p>
d)
<body>
29.
When using a text editor, what file extension(s) must be used when saving as a web document?
a)
txt
b)
html or htm
c)
doc
d)
css
30.
Which line of code correctly creates a link to Amazon's website?
a)
<a ref=http://www.amazon.com>Amazon
b)
<href=http://www.amazon.com>Amazon<a>
c)
<a href="http://www.amazon.com">Amazon
d)
<a href="http://www.amazon.com">Amazon</a>
31.
Between which paired tags would the visible content of a webpage be displayed?
a)
<html></html>
b)
<head></head>
c)
<body></body>
d)
<title></title>
32.

CSS stands for

a)

Code Style Sheet

b)

Coding Style Sheet

c)

Cascading Sheet Style

d)

Cascading Style Sheet

33.

Which is the correct CSS syntax?

a)

body {color: yellow;}

b)

body:color=yellow;

c)

{body:color= yellow;}

d)

{body;color: yellow;}

34.

Which one is the correct syntax for CSS?

a)

property {selector : value}

b)

value {property : selector}

c)

selector {value : property}

d)

selector { property : value}

35.
http://www.google.com is an example of a what?
a)
URL
b)
IP address
c)
Browser
d)
Application
36.
What is the function of the <p> tag?
a)
Defines a paragraph.
b)
Makes the text purple.
c)
It pushes the text to the right.
d)
Prints the webpage.
37.
What is the purpose of HTML
a)
To make a formatted document
b)
To make a webpage
c)
To edit photos
d)
To make a creative slide
38.
Google Chrome is an example of a what?
a)
URL
b)
Web browser
c)
IP address
d)
metal
39.

Which of these is an advantage of CSS?

a)

Good control over the presentation.

b)

Saves time on maintaining the html document.

c)

Makes the web site look less cluttered.

d)

All of the above

40.

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?

How do you display a border like this:

a)

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

b)

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

c)

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

d)

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

41.

th

a)

one cell in a row of headers

b)

one data cell

c)

one row of headers

d)

one column of headers

42.

tr

a)

one column on the right

b)

one cell in a table

c)

one row of anything

d)

one column of anything

43.

td

a)

one cell in a header

b)

one column of a row

c)

one row of a column

d)

one data cell in a row

44.

The closing table tag is

a)

</close>

b)

</caption>

c)

</table>

d)

<table>

45.

Which of the following tags will create a horizontal line across the page?

a)

<hr>

b)

<line>

c)

<p>

d)

<grid>

46.
Which of these elements are all <table> elements?
a)
<table><tr><td>
b)
<thead><body><tr>
c)
<table><head><tfoot>
d)
<table><tr><tt>
47.

How can you make a numbered list?

a)

<dl>

b)

<list>

c)

<ol>

d)

<ul>

48.

What form elements are used in creating this drop-down list?

a)

<select> and <option>

b)

<label> and <input>

c)

<textarea> and <input>

d)

<select> and <input>

49.

What HTML input type is used to create this password field?

a)

<input type="text">

b)

<input type="submit">

c)

<input type="password">

d)

<input type="radio">

50.

What HTML input type is used to create this form selections?

a)

<input type="text">

b)

<input type="submit">

c)

<input type="password">

d)

<input type="radio">

51.

__________ provides an easy way to collect required information from web page visitors.

a)

Link

b)

Form

c)

Image

d)

None of the above

52.

sets the color of words in a paragraph

a)

h1 {

color: pink;

}

b)

img {

color: pink;

}

c)

body {

color: pink;

}

d)

p {

color: pink;

}

53.

Select the rule set to make all the text in your web page blue and centered.

a)

p {

color: blue;

}

b)

body {

text-align: left;

color: blue;

}

c)

p {

text-align: center;

color: blue;

}

d)

body {

text-align: center;

color: blue;

}

54.

Which selector will change the font of the text?

a)

font-size

b)

text-align

c)

font-famiy

d)

text-decoration

55.

Which rule set would change the font size to 24?

a)

font-size: 24

b)

size: 24;

c)

font-size: 24;

d)

font size: 24;

56.

What type of language is PHP

a)

Client Side

b)

Server Side

c)

Browser Side

d)

Web Side

57.

PHP is executed on

a)

The Server

b)

The Browser

c)

The Website

d)

The Machine

58.

We store small snippets of information inside what?

a)

Functions

b)

Loops

c)

If Statements

d)

Variables

59.

We create re-usable code blocks by placing them inside?

a)

Variables

b)

Parameters

c)

Code Blocks

d)

Functions

60.

Sometimes we only want certain code to execute if a condition is true. How do we test for that?

a)

Loop

b)

If Statement

c)

Integer

d)

Variable

61.

What is a integer?

a)

It's a Whole Number

b)

It's a Decimal Number

c)

It's a True or False Declaration

d)

It's a String of Text

62.

What is a String?

a)

Text

b)

Number

c)

True

d)

Loop

63.

What is a Boolean

a)

It's Just Text

b)

It's a Number

c)

It's Just True

d)

It's True or False

64.

What if we want a block of code to execute several times?

a)

Use a Variable

b)

Use a Function

c)

Use a Loop

d)

Use a Leap

65.

$colours = array("black, blue, Red, Green") - How do I access "Red" ?

a)

$colours[0];

b)

$colours[2];

c)

$colours[1]

d)

$colours[3];

66.

How do I print out the values of the variable "name" ?

a)

$name;

b)

include $name;

c)

echo $name;

d)

echo $name

67.

function sayMyName(name) {} ; - How do I call tat function

a)

sayMyname();

b)

$sayMyName;

c)

$sayMyName();

d)

sayMyName("John")';

68.

What does i++ do ?

a)

Adds the text on to the end of i

b)

Adds i on to the end of something

c)

Adds i on to the existing value of i

d)

Adds 1 to the current value of iThis is a correct answer

69.

What type of variable is this: $isMale = false;

a)

Integer

b)

Boolean

c)

String

d)

char

70.

In an IF statement we can have 2 conditions tested. Which keyword allows this?

a)

Else

b)

if Else

c)

Else if

d)

OR

71.

$a = 4 ; $b = 6; $c = $a + $b; What is the value of variable "c" ?

a)

6

b)

8

c)

10

d)

None

72.

$a = "Ram"; $n = "Kumar"; $fullName = $f + $n; What is the value of $fulName

a)

RamKumar

b)

Ram Kumar

c)

Ram

d)

None

73.

$a = "Ram"; $n = "Kumar"; $fullName = $f . $n; What is the value of $fulName

a)

RamKumar

b)

Ram Kumar

c)

Kumar

d)

None

74.

function declarations can have (a)   assigned to them?

75.

Function calls can have____________ inside them.

a)

Parameters

b)

Arguments

c)

Variables

d)

Types

76.

PHP is a____________side scripting language

a)

server

b)

browser

c)

client

77.

PHP stands for

a)

Hypertext processor

b)

Homepage processor

c)

Hypertext preprocessor

78.

Who is known as father of PHP

a)

Rasmus Lerdorf

b)

Brendan Eich

c)

Hakon Wium Lie

79.

Which of the following is not true?

a)

PHP can be used to develop web applications.

b)

PHP makes a website dynamic

c)

PHP can not be embedded into html.

80.

PHP scripts are enclosed within ___

a)

<php> . . . </php>

b)

<?php . . . ?>

c)

?php . . . ?php

81.

Variables used in php

a)

$a=5;

b)

var a=5;

c)

int a=5;

82.

_______ is a concatenation operator in php

a)

+ (plus)

b)

+=

c)

. (dot)

83.

PHP is a case sensitive

a)

TRUE

b)

FALSE

84.

Find the output

<?php

$x = 5;

{ $x = 10;

echo $x;

}

echo $x;

?>

a)

105

b)

510

c)

1010

85.

find the output

<?php

$x = 1;

$x += 1;


echo $x;

?>

a)

2

b)

1

c)

0