wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Processing Beginners Quiz

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What colour will this create?

a)

Red

b)

Blue

c)

Green

2.

What colour will this create?

a)

Red

b)

Blue

c)

Green

3.

What colour will this create?

a)

Red

b)

Blue

c)

Green

4.

What is the correct code to create this shape?

a)

rect(50,60,100,50);

b)

square(50,60,100,50);

c)

rectangle(50,60,100,50)

d)

rect(50,60,50,100);

5.

What does the following bit of code do:


size(300,300);

a)

Creates a square 300 x 300

b)

Creates a circle300 x 300

c)

Makes a shape

d)

Creates a canvas 300 x 300

6.

What is wrong with the following piece of code:


triangle(6,7,8,7,7,9)

a)

The sizes are too small

b)

The semi colon is missing

c)

The brackets are missing

d)

The semi colon is missing

7.

Which measurement sets the size of the rectangle?

a)

50,10

b)

100,60

8.

Which measurement sets where the rectangle will appear on the canvas?

a)

50,10

b)

100,60

9.

What language is Processing based on?

a)

Java

b)

Python

c)

Scratch

d)

C+

10.

Which of these is an example of a data type?

a)

int

b)

stroke()

c)

random(0,100)

d)

setup()

11.

What is wrong with the following piece of code:


triangle(6 7 8 7 7 9)

a)

The sizes are too small

b)

The commas are missing

c)

The semi colon is missing

d)

There are too many co-ordinates

12.

What is a variable?

a)

A storage container for data

b)

A type of function

c)

A set number

d)

A solution

13.

Which of these is an example of Processing's built in variables?

a)

void draw()

b)

line()

c)

strokeWeight(10);

d)

mouseX

14.

What is the main difference between the setup() and draw() functions?

a)

No difference

b)

Setup() runs only once on starting the program. Draw() loops continually and re-runs the code each frame

c)

Draw() runs only once on starting the program. Setup() loops continually and re-runs the code each frame

d)

Setup() runs slower than Draw()

15.

Why will this code not run?

a)

Missing fill() function

b)

Missing a semicolon

c)

There should be a second void draw() function

d)

Missing right curly bracket to close the setup function.