
LO13 Lesson 9_Modules
Authored by Samantha Cassia
Computers, Instructional Technology, Other
10th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A Python module file can be imported into another Python file.
True
False
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A Python file cannot contain variables.
True
False
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A Python file cannot contain runnable code.
True
False
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
You can create your own modules.
True
False
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not an advantage of using modules?
Provides a means of reuse of program code
Provides a means of dividing up tasks
Provides a means of reducing the size of the program
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A Python module is a file with the _____ file extension that contains valid Python code.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Suppose a function called add() is defined in a module called adder.py.
Which of the following code snippets correctly shows how to import and use the add() function?
import add from adder
result = add(2, 3)
from adder import add
result = add(2, 3)
from adder import add
result = adder.add(2, 3)
import add
result = adder.add(2, 3)
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
Perangkat Lunak dan Struktur Pemrograman (UH 2)
Quiz
•
10th Grade
14 questions
Digitális Témahét 2024: Mi és a MI
Quiz
•
9th - 12th Grade
20 questions
SOFTWARE 7I
Quiz
•
7th Grade - University
13 questions
python для новичков
Quiz
•
4th - 11th Grade
20 questions
Animals
Quiz
•
KG - University
20 questions
SOAL INFORMATIKA - STS SEMESTER GANJIL
Quiz
•
10th Grade
15 questions
Bài 22-Kiểu dữ liệu danh sách
Quiz
•
10th Grade
15 questions
TIN 10-1F-LÀM QUEN VỚI NGÔN NGỮ LẬP TRÌNH BẬC CAO
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