PP_Week3_Batch1

PP_Week3_Batch1

Professional Development

8 Qs

quiz-placeholder

Similar activities

about computer

about computer

1st Grade - Professional Development

10 Qs

ML in Apple platforms

ML in Apple platforms

University - Professional Development

10 Qs

General Knowledge

General Knowledge

KG - Professional Development

10 Qs

Office T&T

Office T&T

Professional Development

12 Qs

Bioinformatics - Session 3

Bioinformatics - Session 3

Professional Development

10 Qs

FDE cycle

FDE cycle

Professional Development

11 Qs

GENERAL KNOWLEDGE

GENERAL KNOWLEDGE

Professional Development

10 Qs

Ice Breaker Challenge- Guess the Tool by Its Logo

Ice Breaker Challenge- Guess the Tool by Its Logo

Professional Development

10 Qs

PP_Week3_Batch1

PP_Week3_Batch1

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Narasimha Reddy Soora

Used 1+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Every function should have return statement at the end

The name of the functions defined by the user should follow some guidelines

The body of the function is indented and is enclosed by the brackets

None of the above

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

int

print statement

Empty String

None

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

functionName.doc()

docstring(functionName)

functionName.__doc__

functioName.__doc__()

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

def add(a, b):

c = a + b

return c

def add(a, b):

c = a + b

return 'c'

def add(a,b)

return a+b

All the given options

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Analyze the given code snippet to find it's output.

16 4

16 16

16 SyntaxError

16 NameError

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

  • Which of the following is the correct way to write a lambda function?

fun=lambda x: x if x>=0 else -x fun(-4)

fun=lambda x: if x>=0:x else: -x fun(-4)

fun=lambda: x if x>=0 else -x fun(-4)

None of the options

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Find the output of the following code?

5

-5

'5'

NameError

8.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

def fun(**vals): for i in vals: print(i,end=" ")

def fun(vals[]): for i in vals: print(i,end=" ")

def fun(*vals): for i in vals: print(i,end=" ")

None of the given options