wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Computer Programming & JavaScript

Total questions: 16

Worksheet time: 10mins

Name
Class
Date
1.
What command draws a rectangle?
a)
rec (10, 20, 100, 200);
b)
rect (10, 20, 100, 200)
c)
rect (10, 20, 100, 200);
d)
ellipse (10, 20, 40, 40)
2.
Which command colors the background of your canvas?
a)
background 
b)
endShape
c)
var = color
d)
fill
3.
What command draws a perfect circle?
a)
ellipse (80, 60, 100, 105);
b)
ellipse(80, 60, 100, 100);
c)
circle (80, 60, 80, 60):
d)
ellipse (80, 60, 105, 100);
4.
What command colors a shape?
a)
color (43, 255, 0);
b)
bucket (43, 255, 0);
c)
fill (43, 255, 0);
d)
bucket (43, 255, 0);
5.
What is at the end of a line of code?
a)
#
b)
;
c)
)
d)
>
6.

What does the "fill" command do

a)

put letters in the shape

b)

put pictures in the shape

c)

put color in the shape

d)

put code in the shape

7.
A variable is used to:
a)
Store a value in memory
b)
Draw a circle
c)
Store a value that does not change
d)
Draw a rectangle
8.

What programming language did we learn in class this week?

a)

Karel

b)

Java

c)

JavaScript

d)

Visual Basic

9.

In computer programming, what is an algorithm?

a)

A sequence of instructions

b)

A computer programming language

c)

A problem in the software

d)

A placeholder for a piece of information that can change

10.

ellipse(212, 206, 283, 318);

ellipse(212, 235, 100, 73);

ellipse(150, 150, 30, 30);

ellipse(278, 150, 30, 30);

The code above represents a snowman with two eyes and a nose. The code that represents the nose is:

a)

ellipse(150, 150, 30, 30);

b)

ellipse(212, 206, 283, 318);

c)

ellipse(278, 150, 30, 30);

d)

ellipse(212, 235, 100, 73);

11.

Color is defined by these three colors

a)

Red, purple, orange

b)

Red, Blue, Green

c)

Green, Blue, Orange

12.

What is a computer program?

a)

a collection of instructions that performs a specific task when executed by a computer

b)

Something you can use to write a document

13.

refers to physically or automatically adding data to a system

a)

input

b)

output

c)

coding

d)

bug

14.

Data generated by a computer

a)

input

b)

output

c)

bug

d)

loop

15.

Which of the following is an example of an output device?

a)

mouse

b)

keyboard

c)

printer

16.

Which of the following is an example of an input device?

a)

speakers

b)

monitor

c)

keyboard

d)

printer