NEW
Font size
WorksheetsGraphics Programming Review
Total questions: 10
Worksheet time: 5mins
The style or structure of a programming language
variable
function
syntax
String
Used to store information to be used in a program
variable
function
if statement
Javascript
Which picture best matches the code below?
fill( 0, 255, 0 );
rect( 10, 10, 80, 20 );
rect( 10, 50, 20, 30 );
fill( 255, 0 , 0 );
ellipse( 10, 10, 50, 50 );
Which picture best matches the code below?
fill( 255, 0 , 0 );
ellipse( 10, 10, 50, 50 );
fill( 0, 255, 0 );
rect( 10, 10, 80, 20 );
fill( 255, 0, 0 );
rect( 10, 50, 20, 30 );
Which line of code correctly creates a variable called someNum and sets it equal to 15
var someNum = 15;
someNum = 15;
int someNum = 15;
15 = var someNum;
How would you check if a variable x is positive?
if ( x == 1 )
if ( x < 0 )
if ( x >= 0 )
if ( x > 0 )
What data type is the variable mouseIsPressed associated with?
Numbers
Text
Boolean
Color
What data type is the variable mouseX associated with?
Numbers
Text
Boolean
Color
Which symbol is used to determine if x is not equal to y
x not = y
x === y
x != y
x && y
Which symbol can be used to determine if x is greater or equal to y
x > y
x < y
x >= y
x <= y
