wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Assessment - Unit 1 Review

Total questions: 45

Worksheet time: 2hrs 15mins

Name
Class
Date
1.

src attribute in an image tag means what?

a)

Source of the image

b)

Name of the image

c)

Description of the image

d)

Not used with image tag

2.
the tag <IMG> would insert what into a web page?
a)
Insert a title
b)
Insert a link
c)
Insert an image
3.

To insert an image: "koala.jpg" then the code that we write in the body is...

a)

<..bgimage=”koala.jpg”>

b)

<…picture=”koala.jpg”>

c)

<img src = "koala.jpg">

d)

<…background picture=”koala.jpg”>

4.

Choose the correct HTML element for the largest heading:

a)

<head>

b)

<h1>

c)

<heading>

d)

<h6>

5.

<p> is the opening tag for a _____________

a)

page

b)

paragraph

c)

preorder

d)

period

6.

Which of the following is the proper format for an HTML tag?

a)

>h1<Content Affected by Tag >/h1<

b)

<h1>Content Affected by Tag<h1>

c)

<h1 Content Affected by Tag />

d)

<h1>Content Affected by Tag</h1>

7.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
8.

Which rule set would change the font size to 24?

a)

font-size: 24px

b)

size: 24px;

c)

font-size: 24px;

d)

font size: 24px;

9.

Select the rule that sets the color of words in a paragraph to pink

a)

h1 {

color: pink;

}

b)

img {

color: pink;

}

c)

body {

color: pink;

}

d)

p {

color: pink;

}

10.

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;

}

11.

Which of the following is the proper format for an HTML tag?

a)

>h1<Content Affected by Tag >/h1<

b)

<h1>Content Affected by Tag<h1>

c)

<h1 Content Affected by Tag />

d)

<h1>Content Affected by Tag</h1>

12.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
13.

Which keywords can you use to declare variables?

a)

var

b)

int

c)

let

d)

char

e)

const

14.

Which way of declaring a variable can not be reassigned

a)

var

b)

let

c)

const

15.
Which 1 of the following symbols is used for JavaScript comments?
a)
\\
b)
^
c)
?
d)
//
16.
What is CSS used for?
a)
styling web pages
b)
formatting script correctly
c)
client side scripting
d)
server side scripting
17.
How do I change the size of an image?
a)
width / height
b)
scale
c)
size
d)
shrink
18.

How do I declare a new variable?

a)

let newVariable = 5

b)

Variable int = new Variable()

c)

let 5 = myVariable

d)

int var = 5

19.

A programming language used for webpage functionality such as interactivity, data processing, animation, and development of purpose built apps such as mobile and desktop apps and more.

a)

HTML5

b)

CSS

c)

JS

d)

C#

20.

What would print to the console when the following lines of code are run:

let myVar = "Hello World!"

let myOtherVar = "Good Night!"

console.log(myVar)

a)

"Hello World!"

b)

"Good Night!"

c)

"Hello World!"

"Good Night!"

d)

undefined

21.

Which keywords can you use to declare variables?

a)

var

b)

int

c)

let

d)

char

e)

const

22.

How do I declare a new variable?

a)

let newVariable = 5

b)

Variable int = new Variable()

c)

let 5 = myVariable

d)

int var = 5

23.

Variable names must begin with a letter, an underscore, or a dollar sign $

a)

True

b)

False

24.

Variable names are case sensitive.

a)

True

b)

False

25.

Reserved words cannot be used as names for variables.

a)

True

b)

False

26.

Creating a variable is called "_____" a variable.

a)

Declaring

b)

Initializing

c)

Setting

d)

Typing

27.

How do I add comments in my JS codes?

a)

Use double forward slash, like this:

// say something

b)

Use /* and */ to enclose some lines of text as comments

c)

Use #, hash symbol, like this:

# say something

d)

Use <!-- and --> to enclose some lines of text as comments

28.

Which of the following is/are valid JavaScript variable name(s)?

a)

num1

b)

1num

c)

my_name

d)

my name

29.

Which of the following is NOT a valid starting character for JS variable names?

a)

Uppercase Letter

b)

Number

c)

Dollar Sign

d)

Underscore

30.

Select the best way to declare a variable

a)

let MyName = "Kelly"

b)

let myName = "Kelly"

c)

let MYNAME = "Kelly"

d)

let MY_NAME = "Kelly"

31.

Which keywords can you use to declare variables?

a)

var

b)

int

c)

let

d)

char

e)

const

32.

How do I declare a new variable?

a)

let newVariable = 5

b)

Variable int = new Variable()

c)

let 5 = myVariable

d)

int var = 5

33.

Creating a variable is called "_____" a variable.

a)

Declaring

b)

Initializing

c)

Setting

d)

Typing

34.

Select the best way to declare a variable

a)

let MyName = "Kelly"

b)

let myName = "Kelly"

c)

let MYNAME = "Kelly"

d)

let MY_NAME = "Kelly"

35.

What is the following data type:

1

a)

String

b)

Number

c)

Boolean

d)

Array

e)

Object

36.

What is the following data type:

"10"

a)

Number

b)

String

c)

Boolean

d)

Array

e)

Object

37.

What is the following data type:

[2, "a", 10]

a)

Number

b)

String

c)

Boolean

d)

Array

e)

Object

38.

What is the following data type:

"hello world"

a)

Number

b)

String

c)

Boolean

d)

Array

e)

Object

39.

What is the following data type:

false

a)

Number

b)

String

c)

Boolean

d)

Array

e)

Object

40.

What is the correct way to declare an array?

a)

let arr = (0, 2, 3)

b)

let arr = [0, 2, 3]

c)

let arr = {0, 2, 3}

d)

let arr = <0, 2, 3>

41.

What JS keyword is used to declare a variable?

(a)  

42.

Fill in the blank with the missing piece of code:

let myString (a)   "Hello World!"

43.

Fill in the blank in the missing code:

p { (a)   }

This should be CSS code the changes the paragraph element's color to red.

44.

Fill in the blank with the missing piece of code:

let firstName = "John"

(a)  

This missing line should print the firstName variable to the console.

45.

Fill in the blank with the missing piece of HTML code:

<p>This is a paragraph element! (a)