
Python Programming unit 5 A Quiz
Authored by LOGESWARI M
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to define a function in Python?
function myFunction():
def myFunction():
define myFunction():
func myFunction():
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to call a function in Python?
invoke
call
function
By writing the function name followed by parentheses
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? def add(x, y): return x + y print(add(2, 3))
23
5
Error
None
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a built-in function in Python?
sum()
average()
total()
plus()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the filter() function do?
Transforms each element
Selects elements that meet a condition
Deletes elements
Sorts elements
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function applies a given function to all items in an iterable?
apply()
map()
reduce()
filter()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The reduce() function requires which module?
functools
itertools
operator
math
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
SOFTWARE 7I
Quiz
•
7th Grade - University
20 questions
Spreadsheet Fundamentals - Quiz2
Quiz
•
University
20 questions
Processing- The CPU Quiz
Quiz
•
10th Grade - University
20 questions
Python Unit 1 Quiz
Quiz
•
University
20 questions
Bootcamp Data Analyst 2
Quiz
•
University
20 questions
IT Essential UIUX Chapter 03 (Typography)
Quiz
•
University
20 questions
Skill Competition Quiz 2024
Quiz
•
10th Grade - University
20 questions
2. Ayo Main Quiz Lagi
Quiz
•
University - Professi...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade