
Python Functions and Modules Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Krishndeo Pawar
Used 1+ times
FREE Resource
Enhance your content in a minute
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What keyword is used to define a function in Python?
func
def
function
define
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is NOT a type of function parameter in Python?
Keyword arguments
Default arguments
Static arguments
Variable-length arguments
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the purpose of the return statement in a function?
To return result from the function
To call another function
To print output
To define parameters
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following modules is used for mathematical functions in Python?
datetime
random
os
math
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the lambda keyword create in Python?
Static methods
Named functions
Global variables
Anonymous functions
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is a valid way to import a module in Python?
load module_name
require module_name
include module_name
import module_name
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code: print(sum(10, 20)) if sum is defined as def sum(a, b): return a + b?
10
Error
20
30
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
Algoritma Pemrograman
Quiz
•
University
17 questions
AI Exam
Quiz
•
University
17 questions
Day-I (Summary Quiz) for ICT Skill Share
Quiz
•
KG - Professional Dev...
20 questions
UTS Genap Informatika Kelas IX
Quiz
•
9th Grade - University
20 questions
Digital and Analog transmission
Quiz
•
University
20 questions
Soal AIJ bulan Agustus 2019 kls xii
Quiz
•
University
20 questions
Quiz Harian Gdevelop MPK
Quiz
•
University
17 questions
Archivos
Quiz
•
University
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
