
Understanding Python Modules

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Angelito Villalon
FREE Resource
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)
Similar Resources on Wayground
6 questions
PS libs and func

Quiz
•
9th - 12th Grade
10 questions
Let's Examine Hardware Test

Quiz
•
9th - 12th Grade
10 questions
Module 08 - Lists

Quiz
•
10th Grade
10 questions
1.2.1 Primary Storage #1

Quiz
•
9th - 11th Grade
9 questions
Prueba Individual 1 - TAV2023

Quiz
•
1st - 12th Grade
7 questions
مراجعة

Quiz
•
10th Grade
12 questions
Інформатика 5 Нуш Пайтон 2 Графіка п 25-26

Quiz
•
12th Grade
10 questions
Quiz 14 - Swing Components

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade