wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

JavaScript basics (vidcode, BR JSDJ Day 1)

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

What is the correct code for line 4 to invert the colors of the video?

a)

invert_color;

b)

var color_invert;

c)

color_invert();

d)

"Computer, invert the colors!"

2.

What is random() in this line of code?

a)

A value

b)

A method

c)

An object

d)

A variable

3.

I added a nice image of some aliens but it is not showing? What line of code do I have to adjust?

a)

Line 3

b)

Line 5

c)

Line 6

d)

Line 7

4.

What kind of data type is the value "Javascript!"?

a)

A Boolean

b)

A Word

c)

A Number

d)

A String

5.

What did I do wrong? There is no green tint on my video...?

Pick the correct code.

a)

tint("green", 15);

b)

tint.color = green;

c)

tint{green, 15};

d)

movie.color = "green";

6.

What is *rn* in this line of code?

a)

A value

b)

A method

c)

An object

d)

A variable

7.

Where do you go if you want more information about functions, objects, ... and their syntax?

a)

1. Instructions

b)

2. Reference

c)

3. Console

d)

4. Files

8.

What is lineWidth?

a)

A value

b)

A property

c)

A function

d)

A method

9.

What is *Math* in this line of code?

a)

A value

b)

A method

c)

An object

d)

A variable

10.

My doge image is way too big! How can I make it smaller?

a)

my_graphic1.height = 0.5;

my_graphic1.width = 0.5;

b)

MY_GRAPHIC1.scale = 2;

c)

my_graphic1.scale = 0.2;

d)

scale(my_graphic1, "smaller");