
PP_Week3_Batch1
Quiz
•
Computers
•
Professional Development
•
Hard
Narasimha Reddy Soora
Used 1+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
int
print statement
Empty String
None
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
functionName.doc()
docstring(functionName)
functionName.__doc__
functioName.__doc__()
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
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
Find the output of the following code?
5
-5
'5'
NameError
8.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
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
Similar Resources on Wayground
10 questions
CND Quiz Week 11
Quiz
•
Professional Development
10 questions
Hen keeping
Quiz
•
Professional Development
10 questions
How are you doing?
Quiz
•
Professional Development
10 questions
Chapter 11.1 Windows Desktop and File Explorer
Quiz
•
KG - Professional Dev...
10 questions
Ai BG-Q#
Quiz
•
Professional Development
10 questions
04 - Python - Lists
Quiz
•
University - Professi...
13 questions
Cycle 4: Lesson 11 Review.
Quiz
•
Professional Development
13 questions
GRAND OPENING INTERNSHIP EXERCISE 2024
Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade