
Python Modules and Packages
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Lavakumar Gopu
Used 101+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
To put definitions in a file and use them in another scripts, we use_____
packages
functions
modules
project
2.
MULTIPLE CHOICE QUESTION
20 sec • 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
Provides a means of testing individual parts of the program
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following Python code?
from math import factorial
print(math.factorial(5))
120
Nothing is printed
Error, method factorial doesn’t exist in math module
Error, the statement should be: print(factorial(5))
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is false about “from-import” form of import?
The syntax is: from modulename import identifier
This form of import prevents name clash
The namespace of imported module becomes part of importing module
None of the Above
5.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
A module consists of
functions
variables
packages
classes
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is true regarding a package
it is a python file
it is an executable file
it is a directory
ALL
7.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
Which of the following are contained by packages
modules
files
__init__.py
packages
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
10 questions
VR and AR in multimedia applications
Quiz
•
University
10 questions
Software Testing
Quiz
•
12th Grade - University
15 questions
Jira
Quiz
•
University
10 questions
Herencia y Paquetes
Quiz
•
University
15 questions
Graphs
Quiz
•
University
10 questions
Adobe Photoshop
Quiz
•
University
10 questions
Choose the level of Bloom’s Taxonomy
Quiz
•
University
14 questions
Linux: Users and Groups
Quiz
•
9th Grade - University
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
34 questions
Unit 5 Review - The Middle Ages in Europe-B
Quiz
•
9th Grade - University
26 questions
Day2 classwork: Permutation and combination
Quiz
•
2nd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
