Search Header Logo

Python Functions

Authored by btechsmartclass .com

Professional Development

Professional Development

Used 1K+ times

Python Functions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

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

Python supports variable number of parameters.

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

Function header in Python contains _________________.

function name

list of parameters

return type

all the above

Only A & B

6.

MULTIPLE CHOICE QUESTION

30 sec • 12 pts

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

null

0

None

Garbage value

7.

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

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

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

Already have an account?

Discover more resources for Professional Development