wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Processing Basics

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What is wrong with the following piece of code:


traingle(6,7,8,7,7,9);

a)

The sizes are too small

b)

Triangle has been spelt incorrectly

c)

You can't make triangles in Processing

d)

The brackets are missing

2.

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 commas are missing

3.

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

4.

What is wrong with the following piece of code:


triangle:6, 7, 8, 7, 7, 9;

a)

The sizes are too small

b)

The brackets are missing

c)

You can't make triangles in Processing

d)

There are too many co-ordinates

5.

What colour will this create?

a)

Red

b)

Blue

c)

Green

6.

What colour will this create?

a)

Red

b)

Blue

c)

Green

7.

What colour will this create?

a)

Red

b)

Blue

c)

Green

8.

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);

9.

What is the correct code to create this shape?

a)

rect(30, 20, 55, 55, 7);

b)

rect(30, 20, 55, 55);

c)

rect(30, 20, 55, 55, 3, 6, 12, 18);

d)

rect(50,60,50,100);

10.

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

11.

Which measurement sets the size of the rectangle?

a)

50,10

b)

100,60

12.

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

a)

50,10

b)

100,60

13.

What language is Processing based on?

a)

Javascript

b)

Python

c)

Scratch

d)

C+

14.

How much does Processing cost?

a)

First month is free

b)

Completely free

c)

$5

15.

What is the best way to learn Processing?

a)

Go on the website and look at the guides and tutorials

b)

Use the resources on Lionel

c)

Try things out for yourself and test if they work

d)

Ask other people how they did something

e)

All of the above

16.

True or False:


Your teacher is the first person you should ask when things go wrong

a)

True

b)

False

17.

What kind of code is Processing?

a)

Typed line code

b)

Drag and drop code

18.

Iteration is when....

a)

You check your code for errors

b)

You break a large problem down into smaller pieces

c)

You repeat an action

d)

An action occurs if set conditions are met

19.

A decision is when....

a)

You check your code for errors

b)

You break a large problem down into smaller pieces

c)

You repeat an action

d)

An action occurs if set conditions are met

20.

Debugging is when....

a)

You check your code for errors

b)

You break a large problem down into smaller pieces

c)

You repeat an action

d)

An action occurs if set conditions are met