wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Web Development(HTML+CSS+JAVASCRIPT) QUIZ

Total questions: 120

Worksheet time: 1hrs 3mins

Name
Class
Date
1.

The structure of a web page is primarily created with which of the following?

a)

HTML

b)

CSS

c)

Javascript

d)

C++

2.

Which web development tools would I use if I wanted my web page to have specific colors and style?

a)

HTML

b)

CSS

c)

Javascript

d)

PHP

3.

To "style" a font in a specific type, which "property" would I use?

a)

font-style

b)

font-type

c)

font-family

d)

font-"name of font"

4.

A tag pair assigns meaning to a web page ______, which is a specific component of the page, such as a paragraph or a heading.

a)

element

b)

attribute

c)

object

d)

property

5.

Both the head and body tag pairs are located within the HTML tag pair. This situation is known as ______________.

a)

tagging

b)

pairing

c)

nesting

d)

joining

6.

What language adds interactive features to a website?

a)

HTML

b)

CSS

c)

JavaScript

d)

PHP

7.

The elements <DIV> and <SPAN> have the following characteristics

a)

Element <DIV> inherits properties defined for <SPAN> in a stylesheet

b)

<DIV> is used inside element <P>.

c)

<DIV> and <SPAN> are used as alternatives for the element <P>

d)

Elements <SPAN> and <DIV> define content to be inline or block-level

8.

The raw text, images, and other elements included in a web page

a)

website content

b)

website structure

c)

heading

d)

website

9.

The collected information about an individual across multiple websites on the Internet.

a)

Digital Footprint

b)

Website structure

c)

HTML Element

d)

Heading

10.

The purpose of different pieces of content in a web page, used to help the computer determine how that content should be displayed

a)

Website structure

b)

Website content

c)

Intellectual property

d)

Copyright

11.

What is the purpose of the <HEAD> tag in an HTML document?

a)

To define the main content of the page

b)

To specify the title of the page and include meta information

c)

To create a visible heading on the page

d)

To format the text within the body of the page

12.

Which of the following is responsible for the visual presentation of a web page?

a)

HTML

b)

CSS

c)

JavaScript

d)

PHP

13.

What is the purpose of the <IMG> tag in HTML?

a)

To create a hyperlink to another page

b)

To display an image on the web page

c)

To format text in bold

d)

To define a paragraph of text

14.

What is the purpose of the <A> tag in HTML?

a)

To create a hyperlink to another page

b)

To display an image on the web page

c)

To format text in bold

d)

To define a paragraph of text

15.

Which language is primarily used for adding styles to a web page?

a)

HTML

b)

CSS

c)

JavaScript

d)

PHP

16.

What does the <H1> tag represent in HTML?

a)

An image tag

b)

A heading tag

c)

A hyperlink tag

d)

A paragraph tag

17.

Both the head and body tag pairs are located within the HTML tag pair. This situation is known as ______________.

a)

tagging

b)

pairing

c)

nesting

d)

joining

18.

The _______ is located within the html tag pair.

a)

head tag pair

b)

body tag pair

c)

Both A and B

d)

Neither A nor B

19.

Which of the following is NOT a potential question to ask about the target audience?

a)

What is the average education level?

b)

What is the mix of genders?

c)

Why will people visit the website?

d)

What are the short-term goals of the website?

20.

<td> element of a table can contain images.

a)

True

b)

False

c)

It depends

21.

Fill in the blanks to create an order list starting at 10.

<_ _="10">

<li>HTML</li>

<li>CSS</li>

</ol>

(a)  

22.

Where can a script tag be placed directly within an HTML document?

a)

<body>

b)

<head>

c)

<title>

d)

<style>

23.

Which entity character creates a 'greater than' symbol?

a)

&gt

b)

>

c)

&greaterthan

d)

&greater

24.

The radio type input is responsible for playing music on a page.

a)

True

b)

False

25.

Can a form have multiple submit buttons with different destinations?

a)

Yes

b)

No

26.

Is the following code valid for creating a list with two items?

<p>t1<ul>

<li>t2</li>

</ul></p>

a)

Yes

b)

No

27.

What is the output of this code?

<p>3&minus;2</p>

(a)  

28.

Who created the world wide web?

a)

Sir John Lee

b)

Sir Bruce Lee

c)

Sir Tim Berners-Lee

d)

Sir Bill Gates

29.

Which of the following is not a type of network?

a)

Internet

b)

Intranet

c)

Extranet

d)

Arpanet

30.

URL stands for

a)

unified random location

b)

united relay locator

c)

uniform resource locator

d)

unique research lab

31.

What do you call a software application used to access and view web pages?

a)

search engine

b)

web browser

c)

internet

d)

none of the above

32.

CSS stands for

a)

Cascading style sheet

b)

Cyber style sheet

c)

Cassandra style sheet

d)

None of the above

33.

What are the three types of style sheet

a)

Internal, external, inline

b)

Inline, internal, extreme

c)

Insidious, internal, external

d)

None of the above

34.

Style will come inside head for

a)

External

b)

Inline

c)

Internal

d)

All of the above

35.

When you use class selector

What should present in front of classname

a)

#

b)

&

c)

@

d)

.

36.
CSS instructions can be:
-Applied inline to individual HTML elements on an HTML page.
-Embedded within an HTML page to affect all specified elements on that page.
-Collected in an external file that is linked to multiple HTML pages.
a)
True
b)
False
37.
Which is the most current version of CSS?
a)
CSS1
b)
CSS2
c)
CSS3
d)
CSS4
38.
What HTML element defines the title of the document?
a)
<title>
b)
<head>
c)
<meta>
39.
What is the difference between HTML and CSS?
a)
CSS is one type of HTML
b)
HTML gives a webpage structure. CSS provides styling.
c)
CSS structures a webpage. HTML strictly provides styling.
d)
There is no difference.
40.
<!DOCTYPE> 
a)
Defines the document type
b)
Defines a comment
c)
Defines the document's body
d)
Defines information about the document
41.

What is a CSS selector?

a)

The value in a markup tag you want to change with a CSS style

b)

Any element to which designated styles are applied

c)

A format instruction in a CSS file

d)

The property in a markup tag to which designated styles are applied

42.
Which is the selector for a link?
a)
a { }
b)
link { }
c)
href { }
d)
a href { }
43.
How can you make a numbered list?
a)
<list>
b)
<ol>
c)
<dl>
d)
<ul>
44.
What is this an example of?
/* This is a multi-line comment */
a)
Syntax
b)
Property 
c)
Value
d)
Comment
45.

Can an HTML element have more than 1 "class"?

a)

Yes

b)

No

c)

What's an element?

d)

Where am I, and how did I get here?

46.

How many elements can share the same "id"?

a)

None, There can be only 1 element per "id".

b)

Any element of the same type.

c)

Any element with the same class.

d)

All of them.

47.

Can you assign styles to a "class" with in-line CSS?

a)

Yes

b)

No

c)

What is in-line styling?

d)

Where am I?

48.

What selector is most specific?

a)

h1 {height: 200px;}

b)

#this-one {height: 200px;}

c)

.theseOnes {height: 200px;}

d)

* {height: 200px;}

49.

To declare a JavaScript variable, you should NOT use?

a)

Let

b)

Var

c)

Const

d)

Int

50.

When to use JavaScript var?

a)

JS code from 1995 to 2015

b)

JS code in 2015

c)

Older browser

d)

Any JS code

51.

What is the output for this code?

a)

The value of z is z

b)

The value of z is 11

c)

The value of z is: 11

d)

The value of z is: x + y

52.

What are variables? Choose two from the answers.

a)

container for storing data

b)

storing data values

c)

A cupboard

d)

hold a water in it

53.

What is the value of x?

a)

3

b)

83

c)

80

d)

803

54.

JavaScript is a flexible programming language.

a)

I don't know

b)

Yes

c)

No

d)

Maybe

55.

JavaScript is removing the interactivity of a browser.

a)

I don't know

b)

Yes

c)

No

d)

Maybe

56.

Where JavaScript available in?

a)

Opera

b)

Microsoft Edge

c)

Microsoft Word

d)

Safari

57.

Inside which HTML element do we put the JavaScript

a)

<scripting>

b)

<script>

c)

<js>

d)

<javascript>

58.

where id the correct place to insert a JavaScript?

a)

<body>

b)

<head>

c)

<body>, <head>

d)

html

59.

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

a)

msg("Hello World");

b)

alertBox("Hello World");

c)

alert("Hello World");

d)

msgBox("Hello World");

60.

If I want to change the mathematical expression from addition into division, what symbol should I use?

a)

/

b)

*

c)

-

d)

x

61.

This is arithmetic operation for

a)

JavaScript

b)

JAVA

62.

Which programming language have this code for displaying output?

a)

JavaScript

b)

JAVA

63.

JavaScript : value of z should be the increment of y. What operation should z use?

a)

z = x ++ y

b)

z += y

c)

z = ++ y

d)

z = z + y

64.

Javascript is _________ language.

a)

Programming

b)

Scripting

c)

Application

d)

applet

65.

JavaScript is ______ Side Scripting Language.

a)

JSP

b)

Servlet

c)

Server

d)

Browser

66.

JavaScript is designed for following purpose -

a)

To Style HTML Pages

b)

To Perform Server Side Scripting Opertion

c)

To add interactivity to HTML Pages.

d)

To Execute Query Related to DB on Server

67.

JavaScript is can be written -

a)

directly into JS file and included into HTML

b)

directly into HTML pages

c)

directly on the Server Script

d)

None of these

68.

JavaScript is an ________ language.

a)

compiled

b)

interpreted

69.

JavaScript Code is written inside file having extension __________.

a)

.jsc

b)

.jvs

c)

.js

d)

.javascript

70.

Why JavaScript is called as Lightweight Programming Language ?

a)

because JS can provide programming functionality inside but up to certain extend.

b)

because JS is client side scripting

c)

because JS is available free of cost.

d)

because we can add programming functionality inside JS

71.

Local Browser used for validations on the Web Pages uses __________.

a)

HTML

b)

CSS

c)

js

d)

java

72.

JavaScript Code can be called by using _________.

a)

RMI

b)

Function / Method

c)

Triggering Event

d)

Preprocessor

73.

We cannot Place JS Code in the body tag . Say true/false.

a)

True

b)

False.

74.

To declare a JavaScript variable, you should NOT use?

a)

Let

b)

Var

c)

Const

d)

Int

75.

When to use JavaScript var?

a)

JS code from 1995 to 2015

b)

JS code in 2015

c)

Older browser

d)

Any JS code

76.

What is the output for this code?

a)

The value of z is z

b)

The value of z is 11

c)

The value of z is: 11

d)

The value of z is: x + y

77.

What are variables? Choose two from the answers.

a)

container for storing data

b)

storing data values

c)

A cupboard

d)

hold a water in it

78.

What is the value of x?

a)

3

b)

83

c)

80

d)

803

79.

JavaScript is a flexible programming language.

a)

I don't know

b)

Yes

c)

No

d)

Maybe

80.

JavaScript is removing the interactivity of a browser.

a)

I don't know

b)

Yes

c)

No

d)

Maybe

81.

Where JavaScript available in?

a)

Opera

b)

Microsoft Edge

c)

Microsoft Word

d)

Safari

82.

Inside which HTML element do we put the JavaScript

a)

<scripting>

b)

<script>

c)

<js>

d)

<javascript>

83.

where id the correct place to insert a JavaScript?

a)

<body>

b)

<head>

c)

<body>, <head>

d)

html

84.

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

a)

msg("Hello World");

b)

alertBox("Hello World");

c)

alert("Hello World");

d)

msgBox("Hello World");

85.

If I want to change the mathematical expression from addition into division, what symbol should I use?

a)

/

b)

*

c)

-

d)

x

86.

If I want to change the mathematical expression from addition into multiplication, what symbol should I use?

a)

/

b)

*

c)

-

d)

x

87.
Indicates the beginning  and the end of a JavaScript section.
a)
<html> </html>
b)
<style> </style>
c)
<article> </article>
d)
<script> </script>
88.
Which 1 of the following symbols is used for JavaScript comments?
a)
\\
b)
^
c)
?
d)
//
89.
Which message will the user see?
a)
"Hello user"
b)
No message
c)
"Goodbye user"
d)
"message + user"
90.

What attribute/value do we use to make a button execute JavaScript when clicked?

a)

onclick="doSomething;"

b)

on-click="doSomething;"

c)

onclick="doSomething();"

d)

onclick=doSomething();

91.
How do I declare a new variable?
a)
var newVariable = 5;
b)
Variable int = new Variable();
c)
var 5 = myVariable;
d)
int var = 5;
92.
How do we generate a random number?
a)
Math.random()
b)
random.number()
c)
number.random()
d)
Random.math()
93.

Which of the following platform(s) can be used to run Javascript Code

a)

Google Chrome

b)

Firefox

c)

Microsoft Edge

d)

Safari

94.

What symbol represents the and operator in JavaScript?

a)

AND

b)

and

c)

&

d)

&&

95.
Which one of the following is NOT a logical operator?
a)
||
b)
&&
c)
$$
d)
!
96.
Arithmetic Operator
What is a * ?
a)
Addition
b)
Subtraction
c)
Multiplication
d)
Modulo
97.
Arithmetic Operators
What is -- ?
a)
Division
b)
Modulo
c)
Increment
d)
Decrement
98.
Comparision Operators
What is === ? 
a)
Equal to
b)
Equal value and equal type
c)
Not equal
d)
Not equal value or not equal type
99.
Logical Operators
What is && ? 
a)
And
b)
Or
c)
Not
d)
Less than
100.
The conditional statement, in Javascript, begins with the word _______.
a)
Then
b)
Else
c)
If
d)
OK
101.
What syntax follows after an if statement?
a)
parenthesis
b)
curly braces
c)
a colon
d)
square brackets
102.

What will this code display?

a)

Hello Emma

b)

Hello user

c)

Hello+user

d)

nothing

103.

What will this code display?

a)

570

b)

569

c)

568

d)

attendees

104.

JavaScript : What is the alert display for text3 ?

a)

John Doe

b)

JohnDoe

c)

"John" " " "Doe"

d)

"JohnDoe"

105.

JavaScript : What is the alert display for z?

a)

Hello5

b)

10

c)

55

d)

Hello15

106.

What is the value of:

”41” + 1

a)

42

b)

“42”

c)

411

d)

“411”

107.
Which message will the user see?
a)
"Hello user"
b)
No message
c)
"Goodbye user"
d)
"message + user"
108.

A store has 20 apples in its inventory. How can you store this information in a JavaScript variable?

a)

var numApples == 20;

b)

20 = numApples;

c)

var numApples = 20;

d)

var num apples = 20;

109.
A string;
a)
Expresses a true false statement
b)
can contain letters, numbers, spaces, and symbols.
c)
takes in an input, does something with it, and then returns an output.
d)
Runs a boolean (true/false) statement based on data entered
110.
A boolean;
a)
Expresses a true false statement
b)
can contain letters, numbers, spaces, and symbols.
c)
takes in an input, does something with it, and then returns an output.
d)
Runs a boolean (true/false) statement based on data entered
111.
What is at the end of a line of code?
a)
#
b)
;
c)
)
d)
>
112.

What are the 3 languages used with website coding?

a)

HTML, HTTP,,code

b)

HTML, CSS, Javascript

c)

words, pictures and graphics

d)

CSS, text hypertext

113.

A collection of interlinked web pages on the World Wide Web

a)

website

b)

content

c)

footprint

d)

heading

114.

The structure of a web page is primarily created with which of the following?

a)

HTML

b)

CSS

c)

Javascript

d)

C++

115.

To "style" a font in a specific type, which "property" would I use?

a)

font-style

b)

font-type

c)

font-family

d)

font-"name of font"

116.

sets the element to one side of the page

a)

margin

b)

width

c)

float

d)

height

117.

What does a class do?

a)

adds color to words

b)

adds style to specific elements

c)

adds style to a whole page

d)

adds a lot more work

118.

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;

119.

Which tag is used to add an image?

a)

<image>

b)

<img>

c)

<<img>>

d)

</image>

120.

What is missing from this HTML skeleton?


<!DOCTYPE html>

<html>

<body>

</body>

</html>

a)

<head></head>

b)

<div></div>

c)

<img></img>

d)

<head>