What is true about Python packages? (Choose two.)
Correct Answer:
AC
🗳️
What is the expected output of the following code?
import sys
import math
b1 = type(dir(math)) is list
b2 = type(sys.path) is list
print(b1 and b2)
Correct Answer:
B
🗳️
A Python package named pypack includes a module named pymod.py which contains a function named pyfun().
Which of the following snippets will let you invoke the function? (Choose two.)
Correct Answer:
AD
🗳️
Assuming that the code below has been executed successfully, which of the following expressions will always evaluate to True? (Choose two.) import random v1 = random.random() v2 = random.random()
Correct Answer:
BC
🗳️