Search Header Logo

U5-Set 7 CMU Unit 5.2 onKeyHold - lists

Authored by Joan Goldberg

Computers

9th Grade

Used 42+ times

U5-Set 7 CMU Unit 5.2 onKeyHold - lists
AI

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

Media Image

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

Media Image

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

Media Image

What type of data is keys?

string

list - stores a collection of data

boolean

integer

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What type of data is keys?

string

list - stores a collection of data

boolean

integer

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What type of data is 'right'?

string

list - stores a collection of data

boolean

integer

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?