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 | |
|---|---|---|
| 1username: sam_k7 | AProves it is really you. It is kept secret, which is why it is hidden with stars when you type it. | |
| 2password: ******** | BLogging in needs both a username to identify you and a password to prove it. A password alone is not enough. | |
| 3Logging in uses both a username to say who you are and a password to prove it | Clogin(username, password) | |
| 4You should never share your password with anyone | DIdentifies who you are. It is okay to share it, because it only says which account is yours. | |
| 5Keep my username secret. Tell my friend my password. | EThis is backwards. The username can be shared, but the password is the secret that must never be shared. | |
| 6login(password) // no username | Fshare(password) -> NEVER |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
username and password — A username identifies who you are and can be shared. A password proves it is really you, so keep it secret and never share it. You use both together when logging in.username = "sam99"password = input("Enter your secret: ")login(username, password)canShareUsername = Trueif password == savedPassword:
print("Logged in")