CMU CS Academy Unit 2.1.1 Functions

CMU CS Academy Unit 2.1.1 Functions

9th Grade

8 Qs

quiz-placeholder

Similar activities

Functions and Parameters Summative preview

Functions and Parameters Summative preview

9th - 12th Grade

10 Qs

Cmu Cs Academy

Cmu Cs Academy

9th Grade

11 Qs

CMU CS Unit 2

CMU CS Unit 2

9th Grade

11 Qs

CMU CS1

CMU CS1

9th Grade

8 Qs

Cmu Cs Academy Unit Two Variables

Cmu Cs Academy Unit Two Variables

9th Grade

8 Qs

Cse

Cse

9th Grade

8 Qs

p5.js shapes

p5.js shapes

9th - 12th Grade

8 Qs

Code.org Discoveries

Code.org Discoveries

9th - 11th 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