Python Functions

Python Functions

12th Grade

23 Qs

quiz-placeholder

Similar activities

quiz_G10

quiz_G10

12th Grade

20 Qs

Quiz1_12&11_2t_20214

Quiz1_12&11_2t_20214

12th Grade

20 Qs

2^ Quiz 3I

2^ Quiz 3I

12th Grade

20 Qs

Google

Google

7th - 12th Grade

20 Qs

Lecture Exercise Topic 1.3

Lecture Exercise Topic 1.3

12th Grade

21 Qs

Logika & Pemrograman (ID)

Logika & Pemrograman (ID)

10th Grade - Professional Development

20 Qs

Quiz ASJ

Quiz ASJ

12th Grade

20 Qs

Python Functions

Python Functions

Assessment

Quiz

Computers

12th Grade

Hard

Created by

S Verma

Used 156+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used for function?*

define

fun

def

function

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following items are present in the function header?

function name

parameter list

return value

Both A and B

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

0

None

Null

Arbitary value

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a recursive function?

A function that calls other function.

A function which calls itself.

Both A and B

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

heap

stack

Uninitialized data segment

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is a function declared in Python?*

def function function_name():

declare function function_name():

def function_name():

declare function_name():

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?