wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CS Discoveries 3rd Nine Weeks Exam (Unit 3 and 4)

Total questions: 29

Worksheet time: 17mins

Name
Class
Date
1.

What is the (x, y) location of the palette?

a)

(0, 0)

b)

(200, 200)

c)

(100, 300)

d)

(300, 100)

e)

error

2.

What is fishBlue.scale=?


var fishGold = createSprite(100, 100);

fishGold.setAnimation("fish");

fishGold.tint='gold';

fishGold.scale = 1.0;


var fishBlue = createSprite(200, 200);

fishBlue.setAnimation("fish");

fishBlue.tint='blue';

fishBlue.scale = ?;

a)

0.5

b)

1.0

c)

2.0

d)

None of the above

3.

mushroom.velocityX = -5;

The mushroom sprite moves ...

a)

left 5 pixels per frame

b)

right 5 pixels per frame

c)

up 5 pixels per frame

d)

down 5 pixels per frame

4.

This code will draw a pink monster. Which of the pictures is drawn correctly?

a)
b)
c)
d)
5.

The Animation Tab is:

a)

Find and fix problems in your algorithm or program.

b)

Where you can export or draw animations for your sprites.

c)

Where you can import or draw animations for your sprites.

d)

Images that you can use to the change the look of sprites.

6.

The randomNumber( ) block can be used to:

a)

Find and fix problems in your algorithm or program.

b)

Generate images.

c)

Hold a place for a piece of information that can change.

d)

Generate random numbers in your programs.

7.

In Game Lab, animations are:

a)

Find and fix problems in your algorithm or program.

b)

Where you can import or draw animations for your sprites.

c)

A placeholder for a piece of information that can change.

d)

Drawings/ images you can use to change the look of sprites.

8.

What is the best definition for a 'sprite'?

a)

To find and fix problems in your algorithm or program.

b)

A graphic character with descriptive properties.

c)

A placeholder for a piece of information that can change.

d)

Attributes that describe an object's characteristics.

9.

What is the best definition for a 'variable'?

a)

To find and fix problems in your algorithm or program.

b)

A graphic character with descriptive properties.

c)

A placeholder for a piece of information that can change.

d)

Attributes that describe an object's characteristics.

10.

What is the best definition for a 'parameter'?

a)

To find and fix problems in your algorithm or program.

b)

Part of a program that does not work correctly.

c)

An extra piece of information that you pass to the function

d)

An algorithm that can be run by a machine.

11.

What is a 'bug' when relating the word to computer science?

a)

An insect with 4 or 8 legs.

b)

Part of a program that does not work correctly.

c)

An extra piece of information that you pass to the function.

d)

An algorithm that can be run by a machine.

12.

What does it mean to 'debug' (verb)?

a)

To find and fix problems in your algorithm or program.

b)

Part of a program that does not work correctly.

c)

An extra piece of information that you pass to the function.

d)

An algorithm that can be run by a machine.

13.

What is the best definition for a 'program'?

a)

To find and fix problems in your algorithm or program.

b)

Part of a program that does not work correctly.

c)

An extra piece of information that you pass to the function.

d)

An algorithm that can be run by a machine.

14.

is a business that provides individuals and organizations access to the Internet free or for a fee

a)

Bandwidth

b)

IP address

c)

domain name

d)

Internet service provider

15.

is a sequence of numbers that uniquely identifies the location of each computer or device connected to the Internet or any other network

a)

Bandwidth

b)

IP address

c)

domain name

d)

Internet service provider

16.

is a text-based name that corresponds to the IP address of a server

a)

Bandwidth

b)

IP address

c)

domain name

d)

Internet service provider

17.

is software that finds websites, webpages, images, videos, news, maps, and other information related to a specific topic on the web

a)

Search Engine

b)

Home Page

c)

Google Docs

d)

Dictionary

18.
Which of the following is the correct syntax to create a ellipse in Javascript?
a)
ellipse(100, 100);
b)
circle(100, 100);
c)
ell(100, 100);
d)
circle<100, 100>
19.
Which of the following is the correct syntax to fill a shape with color in Javascript?
a)
fill("red");
b)
color: red;
c)
colorFill(red);
d)
myColor: red;
20.
Which of the following is an example of a sprite's rotation property?
a)
sprite.x
b)
sprite.rotation
c)
rotateSprite()
d)
sprite.around
21.
What does the sprite animation look like?
a)
Move your sprite to the left
b)
Rotate your sprite clock wise
c)
Move your sprite to the right
d)
Make your sprite grow
22.

An example of parameters are:

a)

var xPosition = 300;

b)

fill("Crimson");

c)

circleSize

d)

rect (x, y, w ,h)

23.

What is another word for a set of steps used to solve a problem with a machine?

a)

Parameter

b)

Algorithm

c)

Variable

d)

Property

24.

A graphic character on the screen with properties that describe it location, movement, and look.

a)

Pin

b)

Button

c)

Sprite

d)

Staple

25.

A single image within an animation.

a)

Frame

b)

Animation

c)

Sprite

d)

Pictures

26.

A single value of either True or False.

a)

Expression

b)

Sprite

c)

Plus or Minus

d)

Boolean

27.

Statements that only run under certain conditions.

a)

True

b)

False

c)

Conditionals

d)

Outcome

28.

The common programming structure that implements “Conditional Statements.”

a)

What-If-Statements

b)

Beginning to end

c)

If-Statements

d)

Conditionals

29.

What happens in this code?

a)

nothing is shown, there are no sprites

b)

the background is white and we can't see anything because the textsize is 0;

c)

the background is white, the counter increases in size as the counter increase.

d)

the background is white, and we see a number that goes up but the textsize stays the same.