CMU CS Academy Unit 2 Functions

CMU CS Academy Unit 2 Functions

Assessment

Quiz

Computers

9th Grade

Practice Problem

Medium

Created by

Daniel Angel

Used 121+ times

FREE Resource

Student preview

quiz-placeholder

11 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

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers