
Unit 9 Animation and Games in Javascript (CodeHS)
Flashcard
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

24 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following statements are true about the code in the image: I. ball is a local variable II. the ball variable in draw is different from the ball variable in main III. ball is a global variable IV. ball’s scope includes both main and draw
Back
III. and IV.
2.
FLASHCARD QUESTION
Front
The following program animates a ball using a timer. We want the animation to stop when the user clicks the mouse. Which statement would stop the animation in this program?
Back
3.
FLASHCARD QUESTION
Front
What goes in the blank?
Back
4.
FLASHCARD QUESTION
Front
Which of the following Does Not make code more reusable?
- Using const variables instead of hard-coded values
- Using specific values in functions instead of using parameters
- Writing multiple functions that solve small subproblems rather than one function which solves the entire problem
- Using parameters to generalize functions
Back
Using specific values in functions instead of using parameters
5.
FLASHCARD QUESTION
Front
Which function is more reusable?
Back
6.
FLASHCARD QUESTION
Front
Imagine you are filling a 100 by 100 canvas with circles. They are touching but not overlapping at four points. Their radius is 10. How many circles will fit on the canvas?
Back
25
7.
FLASHCARD QUESTION
Front
What statement would you use to determine if ball is hitting the right edge of the window?
Back
Create a free account and access millions of resources
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?
Similar Resources on Wayground
17 questions
LESSON 8-Treasury Operations
Flashcard
•
KG
26 questions
Day 1
Flashcard
•
KG
25 questions
PHYSICAL SCIENCE SUMMATIVE TEST Q4
Flashcard
•
11th Grade
20 questions
Ionic Naming and Formula Writing
Flashcard
•
10th Grade
18 questions
Grade 9 SS - CH 3 Charter of Rights & Freedoms
Flashcard
•
9th Grade
18 questions
Grade 9 SS - CH 3 Charter of Rights & Freedoms
Flashcard
•
9th Grade
15 questions
paměť + pozornost
Flashcard
•
9th - 12th Grade
18 questions
Vocabulary Flashcard on Evolution and Biodiversity
Flashcard
•
10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade