Python Functions

Python Functions

Assessment

Flashcard

Computers

12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

21 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which keyword is used for function?

Back

def

2.

FLASHCARD QUESTION

Front

Which of the following items are present in the function header? function name, parameter list, return value, Both A and B

Back

Both A and B

3.

FLASHCARD QUESTION

Front

If the return statement is not used inside the function, the function will return:

Back

None

4.

FLASHCARD QUESTION

Front

What is a recursive function?

Back

A function which calls itself.

5.

FLASHCARD QUESTION

Front

Which of the following function headers is correct? def fun(a = 2, b = 3, c), def fun(a = 2, b, c = 3), def fun(a, b = 2, c = 3), def fun(a, b, c = 3, d)

Back

def fun(a, b = 2, c = 3)

6.

FLASHCARD QUESTION

Front

In which part of memory does the system store the parameter and local variables of a function call?

Back

stack

7.

FLASHCARD QUESTION

Front

How is a function declared in Python? Options: def function function_name():, declare function function_name():, def function_name():, declare function_name():

Back

def function_name():

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?