BPP-Functions-1

BPP-Functions-1

Professional Development

30 Qs

quiz-placeholder

Similar activities

Unit I- CS8391 Data structure

Unit I- CS8391 Data structure

Professional Development

25 Qs

IT support Level-1 (MS Excel)

IT support Level-1 (MS Excel)

Professional Development

25 Qs

python quiz 2.0

python quiz 2.0

Professional Development

35 Qs

PROGRESS AND OPENEDGE QUIZ

PROGRESS AND OPENEDGE QUIZ

Professional Development

25 Qs

Mid Test React JS

Mid Test React JS

Professional Development

25 Qs

CN-First Test

CN-First Test

Professional Development

25 Qs

PS Unit 4 Iteration Quiz Review

PS Unit 4 Iteration Quiz Review

1st Grade - Professional Development

30 Qs

Flutter_Q3

Flutter_Q3

Professional Development

29 Qs

BPP-Functions-1

BPP-Functions-1

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Sreenivas Reddy

Used 2+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python function always returns a value

False

True

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of the add() function call

15

8

(8,7)

Syntax Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the following function fun1() Please select all the correct function calls

def fun1(name, age):

print(name, age)

Media Image

fun1(name="Emma", 23)

fun1(age =23, "Emma")

None

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of the following code?

15

Syntax Error

(5,10)

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct function declaration of  fun1() so that we can execute the following function call successfully

fun1(25, 75, 55)

fun1(10, 20)

def fun1(**kwargs)

No, it is not possible in Python

def fun1(args*)

def fun1(*data)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following function call

Emma 25

Emma 20

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Select which is true for Python function

A Python function can return only a single value

A function can take an unlimited number of arguments.

A Python function can return multiple values

Python function doesn’t return anything unless and until you add a return statement

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?