Search Header Logo

PYTHON FUNCTION

Authored by Jigar Mehta

Computers

11th - 12th Grade

Used 9+ times

PYTHON FUNCTION
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following keyword is used to define the function testpython(): ?

define

fun

def

function

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

a) function name

b) parameter list

c) return value

d) Both A and B

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

A. None

B. 0

C. Null

D. Arbitary value

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the use of id() function in python?

A. Id() returns the size of object.

B. Id() returns the identity of the object.

C. Both A and B

D. None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following function headers is correct?

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

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

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

D. def fun(a, b, c = 3, d)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is a function declared in Python?

A. def function function_name():

B. declare function function_name():

C. def function_name():

D. declare function_name():

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following is the correct way of calling a function?

A. function_name()

B. call function_name()

C. ret function_name()

D. function 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?