
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
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?
Similar Resources on Wayground
20 questions
Present vs past participle
Flashcard
•
KG
15 questions
Parts of speech: general review
Flashcard
•
11th - 12th Grade
25 questions
CHAPTER RECAP_Circulatory and Respiratory System
Flashcard
•
9th Grade
20 questions
Grade 9 Modals
Flashcard
•
9th Grade
19 questions
Articles the/a/an/-
Flashcard
•
8th - 9th Grade
15 questions
Hardware&Software
Flashcard
•
10th Grade
15 questions
Network Protocols Flashcard
Flashcard
•
10th Grade
20 questions
Photosynthesis and Chlorophyll
Flashcard
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade