Python Functions Review Flashcard

Python Functions Review Flashcard

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

26 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is a return in a function?

Back

Keyword that tells the function what value to send back

2.

FLASHCARD QUESTION

Front

WHAT IS THE DIFFERENCE BETWEEN A PARAMETER AND A FUNCTION?

Back

Parameters input values to a function. Functions operate on those parameter values.

3.

FLASHCARD QUESTION

Front

What will be printed? Options: nothing, 5, 6, "3 + 2"

Media Image

Back

nothing

Answer explanation

No print function is written. You need to print or save the function call.

4.

FLASHCARD QUESTION

Front

What will be printed? Options: nothing, 5, 6, "3 + 2"

Media Image

Back

5

5.

FLASHCARD QUESTION

Front

What will be printed? Options: nothing, 7, z, 12

Media Image

Back

12

Answer explanation

9 is returned from the function call with 4 &5. Then 9 is passed with the 3 to the function again with 12 as the return value.

6.

FLASHCARD QUESTION

Front

How many times will Boo print?

Media Image

Back

4

Answer explanation

range(1,4) starts at 1 and goes to one less than 5. So it runs for 1, 2, 3 & 4. 4 times

7.

FLASHCARD QUESTION

Front

What will print? Options: 1 2, 1, 3, 5

Media Image

Back

5

Answer explanation

Remember PEMDAS

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?