CMU CS Academy Unit 2.1.1 Functions

CMU CS Academy Unit 2.1.1 Functions

9th Grade

8 Qs

quiz-placeholder

Similar activities

NOR_LOGIC_GATE

NOR_LOGIC_GATE

9th Grade

10 Qs

Scratch Programming

Scratch Programming

1st - 12th Grade

13 Qs

NucleUS Robotics Workshop

NucleUS Robotics Workshop

6th Grade - University

9 Qs

9B Informatics

9B Informatics

9th Grade

10 Qs

Excel If function WSC 4.2.3

Excel If function WSC 4.2.3

7th Grade - University

10 Qs

JavaScript Animations Transitions

JavaScript Animations Transitions

9th - 12th Grade

11 Qs

Python Recap

Python Recap

8th - 10th Grade

12 Qs

CS1CMU - U1_Basics

CS1CMU - U1_Basics

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