U5-Set 7 CMU Unit 5.2 onKeyHold - lists

U5-Set 7 CMU Unit 5.2 onKeyHold - lists

9th Grade

7 Qs

quiz-placeholder

Similar activities

Term3-SBQ1

Term3-SBQ1

9th Grade

10 Qs

Python Variables

Python Variables

7th - 12th Grade

10 Qs

N5 SDD - Python input and output

N5 SDD - Python input and output

7th - 11th Grade

12 Qs

CMU CS Academy

CMU CS Academy

9th Grade

7 Qs

Python: Functions and Parameters

Python: Functions and Parameters

9th - 12th Grade

10 Qs

Unit 6 Quiz - Bootstrap: Algebra

Unit 6 Quiz - Bootstrap: Algebra

6th - 12th Grade

11 Qs

Code.org Unit 5 Vocab Quiz 1

Code.org Unit 5 Vocab Quiz 1

9th - 12th Grade

10 Qs

Programming - Data Types

Programming - Data Types

1st - 10th Grade

10 Qs

U5-Set 7 CMU Unit 5.2 onKeyHold - lists

U5-Set 7 CMU Unit 5.2 onKeyHold - lists

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Joan Goldberg

Used 29+ times

FREE Resource

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