wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

7th Grade: Code.org Unit 3: Lessons 7, 8, 9

Total questions: 28

Worksheet time: 14mins

Name
Class
Date
1.

If you wanted to make a sprite twice as big as it currently looks which code would you use?

a)

sprite.y

b)

sprite.scale

c)

sprite.rotation

d)

sprite.setAnimattion

2.

What does this code affect?

a)

It affects the sprite's up and down motion

b)

It affects the sprite's right and left motion

c)

It affects the sprite's appearance (on a tilt, upside down, etc.)

d)

It affects the sprite's size

3.

What does this code affect?

a)

It affects the appearance the sprite (on a tilt, upside down, etc.)

b)

It affects the size of the sprite

c)

It affects how far up or down the sprite moves

d)

It affects how far right or left the sprite moves

4.

Look and the code above.  Mark the Sprites that will be drawn when the code is run.

a)

Cactus

b)

Grass1

c)

Grass2

d)

Ladybug

e)

Snail

5.

The draw sprites tool does need to be inside the draw function for it to move

a)

True

b)

False

6.

Match the code below with the image.

a)
b)
c)
d)
7.

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


a)

Variable

b)

Property

c)

Random

d)

Sprite

8.

How can we correct the code above? We are getting the error message (dessert is defined, but it is not called in your program)

a)

Change drink to dessert in the 6th line of code

b)

Change drink to ice cream in the 6th line of code

c)

Change drink to sprite in the 6th in of code

9.

How can we correct the code in the image? We are getting the error message (dessert is defined, but it is not called in your program)

a)

Change drink to dessert in the 6th line of code

b)

Change drink to ice cream in the 6th line of code

c)

Change drink to sprite in the 6th line of code

10.

What will this block of code do?

a)

Creates a sprite

b)

transforms a sprite from a gray square into a picture of a mouse

c)

changes the size of a sprite

d)

changes the x position of a sprite

11.

What is the NAME and starting Y LOCATION of this sprite?

a)

dog, 150

b)

dog, 350

c)

fido, 150

d)

fido, 350

12.

What is the name of the ANIMATION (not the sprite) used in this block of code?

a)

dog

b)

fido

c)

sprite

d)

150

13.

My code is not working! I want my code to look like the image on the left, but it looks like the image on the right. Which code should I use?

a)
b)
c)
14.

I want my alien to appear in the top left corner. What do I need to change in my code?

a)

Change bottomRightSprite.setAnimation to bottomLeftSprite

b)

Change bottomRightSprite.setAnimation to topLeftSprite

c)

Change bottomRightSprite.setAnimation to topRightSprite

15.

If “spriteOne” is “animation_1”,  what would be the correct animation for “spriteTwo” to show up?

a)

animtaion_1_Copy_1

b)

animation_2

c)

animation_1

16.

Why is my spirite animation not appearing?

a)

drawSprites needs to be in between the lines of code

b)

drawSprites needs to be on the bottom of the codes

c)

drawSprite needs to be at the bottom and drink.setAnimation should say "dessert.setAnimation"

d)

There is nothing wrong

17.

Why will this not make the creature tinted green?

a)

it will turn the creature green

b)

it needs quotation marks after the word green

c)

it needs parenthese around the word green

d)

it needs quotation marks around the word green

18.

Setting the scale of the fly sprite to 2 will do what?

a)

double its size

b)

triple its size

c)

make it 1/2 it's size

19.

Where on the grid where this bee appear?

a)

bottom left

b)

top left

c)

bottom right

d)

top right

20.

When using the sprite scale code, if your scale value number is less than one it will make the sprite bigger.

a)

True

b)

False

21.

 

When using the sprite rotation code, if your scale value number is a negative number it will rotate the sprite to the left.

a)

True

b)

False

22.

If I scaled the elephant 0.5 would the elephant be smaller or bigger than it is now?

a)

Smaller

b)

Bigger

23.

What are the three parameters within the text code?

a)

your text, x, y

b)

x, y, your text

c)

your text, y, x

24.

Where will the text in the code appear on the grid?

a)

Top right

b)

Top left

c)

Bottom Right

d)

Bottom Left

25.

Why will this text not show up?

a)

There are no quotation marks around the text that will  be displayed.

b)

There are spaces in the text and you can not have spaces.

c)

There are capital letters and you can not have capital letters.

d)

there is an exclamation mark and you can not have punctuation marks.

26.

I want the text “rainbows” to be red, but it's not working. What is wrong with my code?

a)

All of the text codes need to be above the drawSprite block

b)

the fill("Red") block needs to be above the text("Rainbow") block

c)

fill("Red") needs to be at the very top

27.

I want my text to be white and I want a white background, but white text on a white background will make the text impossible to read. What can we do so that the text has a border color and can be read?

a)

add a stroke border around the text

b)

change the text size

c)

change the fill color

28.

I want to make my text larger. What block can I use.

a)

Textsize(__);

b)

textSize(0;

c)

textSize(__);