LO13 Lesson 9_Modules
Quiz
•
Computers, Instructional Technology, Other
•
10th Grade
•
Practice Problem
•
Medium
Samantha Cassia
Used 2+ times
FREE Resource
Enhance your content in a minute
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)
Create a free account and access millions of resources
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
15 questions
History of Computers
Quiz
•
6th - 12th Grade
16 questions
Python Basics
Quiz
•
KG - University
20 questions
Python Recap
Quiz
•
7th Grade - University
17 questions
"switch" Java Statement - 1
Quiz
•
9th - 10th Grade
19 questions
DDA 1.01 & 1.02
Quiz
•
9th - 12th Grade
20 questions
Массивы, зачет №1
Quiz
•
10th Grade
15 questions
Pre test
Quiz
•
9th - 12th Grade
20 questions
Ôn tập học kỳ I
Quiz
•
9th - 12th 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
