What is a module in Python?

Chapter 2 Module Phyton

Quiz
•
Information Technology (IT)
•
University
•
Easy
MUNIRAH (PMJ)
Used 52+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A collection of variables.
An error message.
A built-in function.
A file containing Python definitions and statements.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you import a module in Python?
include module_name
using module_name
import module_name
require module_name
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
3.14
3.1415
3.14159
3.141592653589793
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a built-in module in Python?
calculator
my_module
random
greeting
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
A random number between 0 and 5
A random number between 1 and 5
A random number between 1 and 6
A random number between 0 and 4
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code do?
Prints the current date
Prints the current time
Prints the current date and time
Prints the current year
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true about modules?
Modules cannot be imported into other modules.
Modules promote code reuse and organization.
A module can only contain functions.
Modules must be written in a special syntax.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Bài 24

Quiz
•
10th Grade - University
12 questions
[Quiz] Python Function

Quiz
•
University
9 questions
IoT Quiz 1

Quiz
•
9th Grade - University
15 questions
Quiz Pemrograman Python

Quiz
•
10th Grade - University
11 questions
CodeQuest TechTopia 2025-26

Quiz
•
University
15 questions
The Linux Vault

Quiz
•
University
10 questions
Contadores y Acumuladores

Quiz
•
University
10 questions
Quiz Meet 3 Mini SC Programing

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade