Search Header Logo

Semester Final Part 2

Authored by Ashutosh Kumar

Computers

10th Grade

Used 2+ times

Semester Final Part 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if you place sprite motion code *outside* the `draw()` function?

The sprite will move continuously.

The sprite will move only once.

The sprite won't appear on screen.

The program will crash.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the correct way to make a sprite move downward continuously?

sprite.y = sprite.y + 2;

sprite.y = sprite + 2;

y = sprite.y + 2;

sprite.y = 2;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following code do? if (keyDown("right")) { balloon.x = balloon.x + 3; }

Moves the balloon down.

Moves the balloon left.

Moves the balloon right when the right arrow is pressed.

Moves the balloon automatically to the right.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the `drawSprites()` function used for in Game Lab?

To draw shapes like circles and rectangles.

To show all the sprites on the screen.

To change the background color.

To delete all sprites.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which code correctly switches a sprite's costume?

sprite.image("new_costume");

sprite.setAnimation("new_costume");

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How often does the `draw()` function run in Game Lab?

One time when the program starts.

Once every second.

About 30 times per second.

Only when a key is pressed.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this code do? sprite.x = sprite.x - 2;

Move the sprite right.

Move the sprite left.

Make the sprite disappear.

Make the sprite bounce.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?