Animation and Games Review

Animation and Games Review

Assessment

Flashcard

Other

11th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

18 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What does this program do?

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

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);

Back

stopTimer(draw);

4.

FLASHCARD QUESTION

Front

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

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? The circles should not overlap, the bottom of one circle should touch the top of the next circle.

Back

5

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?