Python Functions

Python Functions

Professional Development

10 Qs

quiz-placeholder

Similar activities

Social bootcamp

Social bootcamp

Professional Development

7 Qs

Introduction to TRIZ (Eng)

Introduction to TRIZ (Eng)

Professional Development

10 Qs

HIPS - Quiz 1

HIPS - Quiz 1

Professional Development

15 Qs

QUIZ AQUA Menyapa - August

QUIZ AQUA Menyapa - August

Professional Development

10 Qs

DAY1

DAY1

Professional Development

15 Qs

Office T&T

Office T&T

Professional Development

12 Qs

Prompting and Shaping

Prompting and Shaping

Professional Development

7 Qs

PreTrainingScannerLoops

PreTrainingScannerLoops

Professional Development

10 Qs

Python Functions

Python Functions

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

btechsmartclass .com

Used 1K+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?