
Understanding Python Modules
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Angelito Villalon
FREE Resource
Enhance your content in a minute
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to import a module in Python?
require
include
import
use
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which module contains functions for mathematical operations?
math
time
random
os
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you pause a program for 5 seconds?
time.pause(5)
time.wait(5)
time.delay(5)
time.sleep(5)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function generates a pseudo-random integer between two bounds?
random.between()
random.randint()
random.int()
random.range()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you rename a module at import with a different name for easier reference?
import math to m
import math is m
import math rename m
import math as m
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to directly import a function from a module?
from module import function
include module.function
import function from module
require module.function
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to generate a pseudo-random number greater than or equal to 0 and less than 1?
random.float(0, 1)
random.random()
random.int(0, 1)
random.range(0, 1)
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
12 questions
АЛГОРИТМІЗАЦІЯ 7 КЛ частина 1
Quiz
•
12th Grade
10 questions
MCX Workshop Quizvragen
Quiz
•
10th Grade - University
12 questions
Computer Hardware Quiz
Quiz
•
10th Grade
11 questions
Understanding Motherboards: A Quiz
Quiz
•
11th Grade - University
10 questions
Data Processing Methods Grade 10
Quiz
•
10th Grade
10 questions
CHƯƠNG TRÌNH CON BT1
Quiz
•
10th - 12th Grade
10 questions
python
Quiz
•
10th Grade
10 questions
perakitan komputer
Quiz
•
10th Grade
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
