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

Unit 9 Animation and Games in Javascript (CodeHS)

Flashcard
•
Computers
•
10th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

24 questions
Show all answers
1.
FLASHCARD QUESTION
Front
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
Similar Resources on Quizizz
15 questions
Emma

Flashcard
•
KG
20 questions
Food webs

Flashcard
•
9th - 10th Grade
18 questions
Animation and Games Review

Flashcard
•
9th - 12th Grade
20 questions
Codeing with Karel Review

Flashcard
•
9th - 10th Grade
21 questions
AP CSP Unit 7 Review

Flashcard
•
11th Grade
18 questions
Domain & Range from Quadratics

Flashcard
•
9th - 10th Grade
21 questions
Pokemon flashcard

Flashcard
•
KG - 12th Grade
16 questions
Sight Words

Flashcard
•
KG
Popular Resources on Quizizz
20 questions
math review

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
19 questions
Math Review

Quiz
•
3rd Grade
45 questions
7th Grade Math EOG Review

Quiz
•
7th Grade
Discover more resources for Computers
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade
20 questions
Insurance

Quiz
•
9th - 12th Grade
20 questions
MCAS Biology Review

Quiz
•
9th - 10th Grade
20 questions
Paying for College

Quiz
•
9th - 12th Grade
20 questions
Banking

Quiz
•
9th - 12th Grade
20 questions
Managing Credit

Quiz
•
9th - 12th Grade