wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Graphics Programming Review

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

The style or structure of a programming language

a)

variable

b)

function

c)

syntax

d)

String

2.

Used to store information to be used in a program

a)

variable

b)

function

c)

if statement

d)

Javascript

3.

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

a)
b)
c)
d)
4.

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

a)
b)
c)
d)
5.

Which line of code correctly creates a variable called someNum and sets it equal to 15

a)

var someNum = 15;

b)

someNum = 15;

c)

int someNum = 15;

d)

15 = var someNum;

6.

How would you check if a variable x is positive?

a)

if ( x == 1 )

b)

if ( x < 0 )

c)

if ( x >= 0 )

d)

if ( x > 0 )

7.

What data type is the variable mouseIsPressed associated with?

a)

Numbers

b)

Text

c)

Boolean

d)

Color

8.

What data type is the variable mouseX associated with?

a)

Numbers

b)

Text

c)

Boolean

d)

Color

9.

Which symbol is used to determine if x is not equal to y

a)

x not = y

b)

x === y

c)

x != y

d)

x && y

10.

Which symbol can be used to determine if x is greater or equal to y

a)

x > y

b)

x < y

c)

x >= y

d)

x <= y