CMU CS Academy Unit 2.1.1 Functions

CMU CS Academy Unit 2.1.1 Functions

9th Grade

8 Qs

quiz-placeholder

Similar activities

CMU CS

CMU CS

9th Grade

11 Qs

CMU CS Academy Unit

CMU CS Academy Unit

9th Grade

8 Qs

P5.js Shapes

P5.js Shapes

7th - 12th Grade

8 Qs

Unit 1 Quiz - Bootstrap: Algebra

Unit 1 Quiz - Bootstrap: Algebra

6th - 12th Grade

10 Qs

Scratch Pen Quiz

Scratch Pen Quiz

KG - University

10 Qs

Codesters P3.L1

Codesters P3.L1

6th - 9th Grade

10 Qs

SNAP-Quiz 1

SNAP-Quiz 1

9th Grade

10 Qs

Photoshop Tools

Photoshop Tools

9th - 12th Grade

10 Qs

CMU CS Academy Unit 2.1.1 Functions

CMU CS Academy Unit 2.1.1 Functions

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Joan Goldberg

Used 244+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

What are the line #'s of the function definition?

38

39

40

41

43

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

What are the line #'s of the function body?

38

39

40

41

43

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

What are the line #'s of the function call?

38

39

40

41

43

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

Select the function parameters

x

y

color

140

'red'

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

Select the function arguments

x

y

color

140

'red'

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

What is the function name?

def drawCompartment(x, y, color):

def drawCompartment

drawCompartment

drawCompartment(140, 105, 'red')

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

The function body must be indented.

True

False

8.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

How many times is line 39 executed?

1

8

9

Depends