CMU CS Academy Unit 2.1.1 Functions

CMU CS Academy Unit 2.1.1 Functions

9th Grade

8 Qs

quiz-placeholder

Similar activities

Unit 1 Quiz - Bootstrap: Algebra

Unit 1 Quiz - Bootstrap: Algebra

6th - 12th Grade

10 Qs

Intro to JavaScript

Intro to JavaScript

9th Grade

11 Qs

Cmu Cs Academy Unit Two Variables

Cmu Cs Academy Unit Two Variables

9th Grade

11 Qs

Cmu Cs Academy Unit 2

Cmu Cs Academy Unit 2

9th Grade

11 Qs

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

AP CSP Unit 3 Simple Review

AP CSP Unit 3 Simple Review

9th - 12th Grade

8 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