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

Computer Systems KS3

Computer Systems KS3

9th Grade

10 Qs

Variables and Functions

Variables and Functions

KG - University

10 Qs

TYPES OF DATA

TYPES OF DATA

7th - 9th Grade

7 Qs

Checkpoint 1 revision

Checkpoint 1 revision

9th - 12th Grade

9 Qs

Network Components

Network Components

9th - 10th Grade

10 Qs

Computer Professionals

Computer Professionals

7th - 12th Grade

11 Qs

LibreOffice-Calc (Basic) -1

LibreOffice-Calc (Basic) -1

9th - 10th Grade

11 Qs

Excel If function WSC 4.2.3

Excel If function WSC 4.2.3

7th Grade - University

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