Python Functions

Python Functions

Assessment

Flashcard

Computers

12th Grade

Practice Problem

Hard

Created by

Wayground 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():

Access all questions and much more by creating a free account

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?