Search Header Logo

Python Function

Authored by deepasree varma

Education

Professional Development

Used 1+ times

Python Function
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

__________ keyword is used for creating a function in Python.

define

fun

def

function

2.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

Media Image

What is the output of the given code?

10 20 10

10

20

10 20

3.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

Media Image

What is the output of the given code?

10 20 10 20

10 20 10

10 20 20

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

The default return value of any function in Python is _______________.

null

0

None

Garbage value

5.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

__________ is the built-in function to know the type of a variable or function.

id()

type()

data_type()

none of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

Select the advantages of functions

Modular programming

Code re-usability

Improving clarity of the code

All the above

7.

FILL IN THE BLANK QUESTION

20 sec • 1 pt

A Function which calls itself is called as_______

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?