PP_Week3_Batch1

PP_Week3_Batch1

Professional Development

8 Qs

quiz-placeholder

Similar activities

Bài 1: Làm quen với Word

Bài 1: Làm quen với Word

Professional Development

10 Qs

Python Data Structures & Statements

Python Data Structures & Statements

Professional Development

11 Qs

PLAL Agile Onboarding

PLAL Agile Onboarding

Professional Development

10 Qs

2. Day 1_ITBA 10 Soal

2. Day 1_ITBA 10 Soal

KG - Professional Development

10 Qs

social engineering

social engineering

1st Grade - Professional Development

10 Qs

HP Commercial Product Training Quiz

HP Commercial Product Training Quiz

Professional Development

10 Qs

Minecraft (Good luck Jake)

Minecraft (Good luck Jake)

KG - Professional Development

10 Qs

Ramie Jandel and Macnabstan Trist copmuter quiz

Ramie Jandel and Macnabstan Trist copmuter quiz

Professional Development

12 Qs

PP_Week3_Batch1

PP_Week3_Batch1

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Narasimha Reddy Soora

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?