Python Functions Review Flashcard

Python Functions Review Flashcard

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Quizizz 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"

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"

Back

5

5.

FLASHCARD QUESTION

Front

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

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?

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

Back

5

Answer explanation

Remember PEMDAS

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?