Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSD Unit Lessons 1-8 Review

Total questions: 23

Worksheet time: 12mins

Name
Class
Date
1.

Which of these is correct camel case set up?

a)

Camel Case

b)

CAMELCASE

c)

camel Case

d)

camelCase

2.

___ is a placeholder for a piece of information that can change

a)

Value

b)

Label

c)

Variable

d)

Sprite

3.

___ is known as an assignment operator.

a)

=

b)

;

c)

x=5;

d)

x begets 5

4.

Select the example of only creating (declaring) a variable.

a)

ellipse(200,200,size, size);

b)

size=100;

c)

var size=100;

d)

var size;

5.

Select the example of only assigning a value to variable.

a)

ellipse(200,200,size, size);

b)

size=100;

c)

var size=100;

d)

var size;

6.

Select the example of initializing a variable, which does two things in one command.

a)

ellipse(200,200,size, size);

b)

size=100;

c)

var size=100;

d)

var size;

7.

Select the example of using a variable.

a)

ellipse(200,200,size, size);

b)

size=100;

c)

var size=100;

d)

var size;

8.

The vertical position of the center of the sprite.

a)

sprite.x

b)

sprite.y

c)

sprite.rotation

d)

sprite.scale

9.

The horizontal position of the center of the sprite.

a)

sprite.x

b)

sprite.y

c)

sprite.rotation

d)

sprite.scale

10.

Clockwise spinning or turning in degrees of the sprite

a)

sprite.x

b)

sprite.y

c)

sprite.rotation

d)

sprite.scale

11.

Shrink or grow a sprite keeping the height to width ratio the same.

a)

sprite.x

b)

sprite.y

c)

sprite.rotation

d)

sprite.scale

12.

spritelabel.spriteproperty

a)

This structure is called dot notation.

b)

This structure is called camel case.

c)

This structure is called javascript.

d)

This structure is called a tag.

13.

Select ALL that break camel case rules used in javascript.

a)

1camelCase

b)

camelCase

c)

camel-Case

d)

camel Case

e)

CamelCase

14.

_____are attributes that describe an object's characteristics

a)

Properties

b)

Sprites

c)

Parameters

d)

Animations

15.

_____ is a graphic character on the screen with properties that describe its location, movement, and look.

a)

A property

b)

A sprite

c)

A parameter

d)

An animation

16.

_____ sets an image for the sprite instead of the default gray square appearing.

a)

sprite.tint

b)

sprite.rotation

c)

sprite.setAnimation

d)

sprite.w

17.

_____ can be changed to stretch or distort the image instead of staying in aspect ratio proportion.

a)

sprite.tint

b)

sprite.rotation

c)

sprite.setAnimation

d)

sprite.w

18.

How are sprites similar to variables?

a)

both store information to use throughout the program

b)

both have particular properties that can be used in certain ways

c)

both are graphic characters on the screen

19.

How are sprites DIFFERENT from variables?

CHOOSE 2 ANSWERS

a)

both store information to use throughout the program

b)

sprites have particular properties that can be used in certain ways

c)

both can keep track of numbers

d)

variables can be anything

20.

What is the solution to the following code? (the current value of x the console log will display)

a)

50

b)

60

c)

70

d)

Error

21.

This program has some errors in variable names. Select the correct option for line 6:

a)

ellipse(dimension1, yLocation, size of circle, size of circle);

b)

ellipse(dimension, yLocation, sizeofcircle, sizeofcircle);

c)

ellipse(1dimension, YLocation, size of circle, size of circle);

d)

ellipse(dimension, YLocation, sizeofcircle, sizeofcircle) ;

22.

What is the default size of the sprite.scale?

a)

1

b)

10

c)

100

d)

0

23.

Following the commands top to bottom, what are the final outputs of x,y,z?

a)

20,30,10

b)

10,20,30

c)

0,30,20

d)

20,30,0