NEW
Font size
WorksheetsPCAP Module 1 - Modules, Packages and PIP Review
Total questions: 14
Worksheet time: 7mins
entity c from module b from package a
entity c from module a from package b
entity b from module a from package c
How do you us pip to remove an installed package?
pip install --uninstall package
pip --uninstall package
pip remove package
pip uninstall package
The digraph written as #! is used to:
graphing programming
tell a Unix or Unix-like OS how to execute the contents of a Python file
create a docstring
make a module private
million of possible results
11, 12, 21 or 22
12
reveal
deposit
pip
show
What is TRUE about updating already installed Python packages?
it's performed by the install command accompanied by -U option
It can be done only by uninstalling and installing the packages once
False
True
1
0
The pip list command presents a list of:
available pip commands
all packages available at PyPI
Nothing
locally installed packages
The pyc file contains:
compiled Python code
a Python interpreter
a Python source code
import fun from mod
import fun
from mod import fun
During the first import of a module, Python deploys the pyx files in the directory called:
__init__
__pycache__
mymodules
hashband__
When a module is imported, its contents:
are executed once (implicitly)
may be executed (explicitly)
are ignored
executed many times
A function which returns a list of all entities available in a module is called:
content ( )
listmodule ( )
entities ( )
dir ( )
