wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Comp Prog A 9-3-21

Total questions: 10

Worksheet time: 12mins

Name
Class
Date
1.

Which picture matches the output of this program?

a)

A

b)

B

c)

C

d)

D

2.

Which picture matches the output of this program?

a)

A

b)

B

c)

C

d)

D

3.

Which picture matches the output of this program?

a)

A

b)

B

c)

C

d)

D

4.

What color would fill(255,255,255) make?

a)

white

b)

black

c)

gray

d)

red

5.

Which print would cause an error

a)

Line 3

b)

Line 7

c)

Both Line 3 and Line 7

d)

Neither print will cause an error

6.

Which word means assigning a variable its first value?

a)

scope

b)

initialization

c)

declaration

d)

instance

7.

Which word means the part of a program where a variable can be used?

a)

scope

b)

initialization

c)

declaration

d)

instance

8.

What are comments used for in a JavaScript program?

a)

to identify the programmer and the purpose of the program

b)

to organize and label the parts of a program

c)

to temporarily disable code

d)

all of these

9.

Which picture matches the output of this program?

a)

A

b)

B

c)

C

d)

D

10.

How many ellipses will be drawn?

a)

3

b)

4

c)

5

d)

6