NEW
Font size
WorksheetsProcessing Beginners Quiz
Total questions: 15
Worksheet time: 8mins
What colour will this create?
Red
Blue
Green
What colour will this create?
Red
Blue
Green
What colour will this create?
Red
Blue
Green
What is the correct code to create this shape?
rect(50,60,100,50);
square(50,60,100,50);
rectangle(50,60,100,50)
rect(50,60,50,100);
What does the following bit of code do:
size(300,300);
Creates a square 300 x 300
Creates a circle300 x 300
Makes a shape
Creates a canvas 300 x 300
What is wrong with the following piece of code:
triangle(6,7,8,7,7,9)
The sizes are too small
The semi colon is missing
The brackets are missing
The semi colon is missing
Which measurement sets the size of the rectangle?
50,10
100,60
Which measurement sets where the rectangle will appear on the canvas?
50,10
100,60
What language is Processing based on?
Java
Python
Scratch
C+
Which of these is an example of a data type?
int
stroke()
random(0,100)
setup()
What is wrong with the following piece of code:
triangle(6 7 8 7 7 9)
The sizes are too small
The commas are missing
The semi colon is missing
There are too many co-ordinates
What is a variable?
A storage container for data
A type of function
A set number
A solution
Which of these is an example of Processing's built in variables?
void draw()
line()
strokeWeight(10);
mouseX
What is the main difference between the setup() and draw() functions?
No difference
Setup() runs only once on starting the program. Draw() loops continually and re-runs the code each frame
Draw() runs only once on starting the program. Setup() loops continually and re-runs the code each frame
Setup() runs slower than Draw()
Why will this code not run?
Missing fill() function
Missing a semicolon
There should be a second void draw() function
Missing right curly bracket to close the setup function.
