Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1import random | ALoads a standard library module that ships with Python, so no installation is needed | |
| 2pip install requests | Bpip install pandas | |
| 3The standard library is a collection of ready-made code that comes with Python and needs no installation | Cimport math | |
| 4A third-party library is made by others and must be installed separately before you can reuse its code | DInstalls a third-party library made by others so it can be imported into your program | |
| 5pip install random import random | Erandom is part of the standard library, so it already comes with Python and does not need to be installed with pip. | |
| 6import requests (never installed) | Frequests is a third-party library. Importing it without installing it first with pip causes a ModuleNotFoundError. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
library — A collection of ready-made code you can reuse. The standard library comes with Python; third-party libraries are made by others and must be installed separately (e.g. with pip).import math
print(math.sqrt(25))import random
print(random.randint(1, 6))pip install requestsfrom math import sqrt
print(sqrt(49))import datetime
today = datetime.date.today()