
Python Modules Quiz
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
Standards-aligned
Brandon Dolce
Used 1+ times
FREE Resource
Enhance your content in a minute
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a module in Python?
A tool to speed up the program execution
A file containing Python definitions and statements
A type of Python data structure
A Python keyword
Tags
DOK Level 1: Recall
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a built-in module in Python?
`flask`
`sys`
`django`
`numpy`
Tags
DOK Level 1: Recall
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you import the `math` module in a Python script?
`import math as m`
`#import math`
`import math`
`module math`
Tags
DOK Level 1: Recall
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function from the `math` module is used to calculate the square root of a number?
`math.sqrt()`
`math.square()`
`math.pow()`
`math.root()`
Tags
DOK Level 1: Recall
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function from the `random` module is used to generate a random integer within a specified range?
`random.randint()`
`random.range()`
`random.int()`
`random.number()`
Tags
DOK Level 1: Recall
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you get the current date and time using the `datetime` module?
`datetime.now()`
`datetime.date.today()`
`datetime.datetime.now()`
`datetime.time.now()`
Tags
DOK Level 1: Recall
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of error is raised when you try to import a module that does not exist?
`NameError`
`ModuleNotFoundError`
`ImportError`
`FileNotFoundError`
Tags
DOK Level 1: Recall
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
Introduction to Python
Quiz
•
7th - 9th Grade
20 questions
ASK T3 : 1.1 Pembangunan Aturcara
Quiz
•
1st - 12th Grade
16 questions
Python Review
Quiz
•
9th - 12th Grade
20 questions
Review-Fetch, Decode, Execute & Store
Quiz
•
9th - 12th Grade
20 questions
Scratch Pre-Assessment
Quiz
•
5th - 9th Grade
20 questions
AQA GCSE Computer Science - 3.2.10 Subroutines
Quiz
•
8th - 10th Grade
18 questions
Hardware and Software
Quiz
•
6th Grade - University
18 questions
RAM and ROM
Quiz
•
9th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
