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

KS4 Programming Techniques (1)

KS4 Programming Techniques (1)

8th - 10th Grade

10 Qs

Code.org Unit 5 Vocab Quiz 1

Code.org Unit 5 Vocab Quiz 1

9th - 12th Grade

10 Qs

Lesson 1 Database Basics

Lesson 1 Database Basics

9th - 11th Grade

10 Qs

Intro to Scratch 2

Intro to Scratch 2

KG - University

12 Qs

Term3-SBQ1

Term3-SBQ1

9th Grade

10 Qs

CodeHS 5.1 Python

CodeHS 5.1 Python

9th Grade

7 Qs

Unit 6 Quiz - Bootstrap: Algebra

Unit 6 Quiz - Bootstrap: Algebra

6th - 12th Grade

11 Qs

Python Programming Basics

Python Programming Basics

7th - 11th Grade

12 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