Animation and Games Review

Animation and Games Review

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

18 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What does this program do?

Media Image

Back

Animates a ball by moving it down and to the right once every 20 milliseconds.

2.

FLASHCARD QUESTION

Front

Which of the following statements are true about ball? I – ball is a local variable II – the ball variable in draw is different from the ball variable in start III – ball is a global variable IV – ball’s scope includes both start and draw

Media Image

Back

III and IV

3.

FLASHCARD QUESTION

Front

Which statement would stop the animation in this program? Options: stopTimer(ball.move(2, 2));, stopTimer(draw);, stopTimer(draw());, stopTimer(draw, 20);

Media Image

Back

stopTimer(draw);

4.

FLASHCARD QUESTION

Front

How many times will the ball be moved before the animation stops?

Media Image

Back

25

5.

FLASHCARD QUESTION

Front

Which of the following are techniques that make our code more reusable? I – Using constants instead of magic numbers II – Using specific values in our functions rather than using parameters III – Writing multiple functions that solve small subproblems rather than one function that solves the entire problem. IV – Writing as few lines of code as possible

Back

I and III, and IV

6.

FLASHCARD QUESTION

Front

Which function has better reusability?

Back

Media Image

7.

FLASHCARD QUESTION

Front

How many circles of radius 10 will fit vertically stacked in a window that has height 100?

Back

5

Create a free account and access millions of resources

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?