
Animation and Games Review
Flashcard
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

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
7.
FLASHCARD QUESTION
Front
How many circles of radius 10 will fit vertically stacked in a window that has height 100?
Back
5
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?