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 requests | AA flaw in this one library puts every app that uses this version at risk | |
| 2requests==2.19.0 (known flaw) | BOne package can pull in several others. Your app also depends on those hidden dependencies of dependencies. | |
| 3A library you did not write is added to your project, so you must trust and keep track of it | Cnumpy is a library written by someone else, so it is a third-party dependency. It is outside code that can contain flaws. | |
| 4A dependency can pull in its own dependencies, so your app relies on code you never chose directly | DYour program loads a library written by someone else, so it now depends on that outside code | |
| 5# I wrote all my own code, so no outside risk import numpy | Epip show flask | |
| 6# I only installed one package, so I only depend on one library | Fpip install flask |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
third-party dependency — A library written by someone else that your program imports and relies on. A flaw in it affects every app that uses it, and it may pull in its own dependencies too.import requestspip install requestsrequests==2.31.0pip show requestsimport requests
r = requests.get(url)