
U5-Set 7 CMU Unit 5.2 onKeyHold - lists
Authored by Joan Goldberg
Computers
9th Grade
Used 42+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of function is onKeyHold?
User defined function
Helper Function: A code body that has a name. The name can be called to repeat the code body. It can take in parameters, or data to act upon.
Event Function: Event-based functions will be called when certain actions or events occur.
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When is onKeyHold called?
function that is called repeatedly while keys are held down
function that is called whenever a key stops being held down
function that is called whenever a key is pressed
function that is called while the mouse is both clicked and moved
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of data is keys?
string
list - stores a collection of data
boolean
integer
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of data is keys?
string
list - stores a collection of data
boolean
integer
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of data is 'right'?
string
list - stores a collection of data
boolean
integer
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the initial (x, y) location of dot?
(0,0)
(200, 200)
(240, 200)
(200, 240)
Cannot be determined
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the location of dot after you run the test case
onKeyHolds(['right'], 4)?
(0,0)
(200, 200)
(240, 200)
(200, 240)
Cannot be determined
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?