Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML CSS JS Review

Total questions: 15

Worksheet time: 9mins

Name
Class
Date
1.
What surrounds a string?
a)
Quotations
b)
Curly Brackets
c)
Parenthesis
d)
Square Brackets
2.

A variable:

a)
Expresses a true false statement
b)
stores a string, number, or boolean, and gives it a specific, case-sensitive name
c)
takes in an input, does something with it, and then returns an output.
d)

tests a condition and runs code if it is true

3.

A function:

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
4.
An if/else statement;
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)

tests a condition and runs code if it is true

5.

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)

is a type of variable holding numbers only

6.

What type of variable is apple?

var apple = " Fuji "

a)

string

b)

Boolean

c)

array

d)

number

7.

Which attribute is used to define the language of a HTML element?

(a)  

8.

Which tag is used to create a hyperlink?

(a)  

9.

Which property is used to extract the length of a string?

(a)  

10.

What is the correct way of finding the length of the variable myVar?

a)

myVar.length

b)

myVar.length()

c)

length(myVar)

d)

myVar(length)

11.

Which method returns the character at a specified index (position) in a string ?

a)

charAt()

b)

replace()

c)

substr(start, length)

d)

toUpperCase()

12.

How do we call a HTML element that starts on a new line and takes up the full width of the page?

(a)  

13.

How do we call the space between an element's content and its border?

(a)  

14.

Class, id, lang are examples of which type of attribute?

(a)  

15.

Which of these is an example of method?

a)

length

b)

innerHTML

c)

document

d)

getElementById()