Cloud storage

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Cloud storage

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Where are files saved when you use cloud storage?
A On remote servers that you reach over a network
B Only on the hard drive inside your own device
2. Which statement about cloud storage is true?
A Your files are stored in the sky, not on any computer
B Your files are stored on someone else's computers
3. You saved a photo to cloud storage on your tablet. What can you do next?
A Open it from your laptop by signing in to your account
B Open it only on the tablet you saved it on
4. What do you need to open a file that is only stored in the cloud?
A A network connection, such as the internet
B No connection at all, it works anywhere
5. Your Wi-Fi is down and your homework file is only in the cloud. What happens?
A The file opens as normal because it is on your device
B You cannot open the file until you reconnect

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1cloud storage AKeeping your files on remote servers that you reach over a network
2upload("photo.jpg", cloud) BCloud files cannot be opened with no network. A connection to the remote server is needed.
3You can open your cloud files from many devices, like a phone and a laptop CSends a copy of a file over the network to be stored on a remote server
4Cloud storage needs a network connection to reach your files DCloud files are not stored on your own laptop. They are stored on remote servers owned by another company.
5cloud_files = stored_on(my_own_laptop) Eopen("photo.jpg", from=phone) open("photo.jpg", from=laptop)
6open(cloud_file, network="none") Fif network == "offline": cannot_open(file)

Definitions

cloud storage

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
cloud files are stored on a ______ server
2.
IF connected = ____ THEN open cloud file
3.
devices = ["phone", "laptop", "tablet"] FOR EACH device IN _______ open cloud file
4.
IF file is in the cloud THEN owned by _______ company
5.
send photo over the _______ to the server now stored in the cloud

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A connected = True
B if not connected:
C upload("photo.jpg")
D print("Saved to the cloud")
Question 2
A device = "tablet"
B login(device, "my_account")
C files = device.download_all()
D print(files)
Question 3
A location = "remote servers"
B owner = "me"
C print("Stored on", location)
D print("Owned by", owner)
Question 4
A files = ["a.doc", "b.jpg"]
B for f in files:
C upload(f)
D print("Saved on this device")
Question 5
A devices = ["phone", "laptop"]
B for d in devices:
C open_cloud(d "notes.txt")
D print(d, "can see notes")

Answer Key

Cloud storage
Section A: Quick Questions
Q1
A — On remote servers that you reach over a network
Q2
B — Your files are stored on someone else's computers
Q3
A — Open it from your laptop by signing in to your account
Q4
A — A network connection, such as the internet
Q5
B — You cannot open the file until you reconnect
Section B: Match the Pairs
Q1
cloud storage → Keeping your files on remote servers that you reach over a network
Q2
upload("photo.jpg", cloud) → Sends a copy of a file over the network to be stored on a remote server
Q3
You can open your cloud files from many devices, like a phone and a laptop → open("photo.jpg", from=phone) open("photo.jpg", from=laptop)
Q4
Cloud storage needs a network connection to reach your files → if network == "offline": cannot_open(file)
Q5
cloud_files = stored_on(my_own_laptop) → Cloud files are not stored on your own laptop. They are stored on remote servers owned by another company.
Q6
open(cloud_file, network="none") → Cloud files cannot be opened with no network. A connection to the remote server is needed.
Section C: Definitions
Q1
cloud storage — Cloud storage keeps your files on remote servers, owned by another company, that you reach over a network. You can open them from many devices, but you need a connection.
Section D: Fill in the Blanks
Q1
cloud files are stored on a remote server
Q2
IF connected = true THEN open cloud file
Q3
devices = ["phone", "laptop", "tablet"] FOR EACH device IN devices open cloud file
Q4
IF file is in the cloud THEN owned by another company
Q5
send photo over the network to the server now stored in the cloud
Section E: Spot the Error
Q1
B — Uploading to cloud storage needs a network connection. The condition should be 'if connected:' so the upload only runs when the device is online.
Q2
C — The files are kept on the cloud's remote servers, not on the device. They should be fetched with cloud.download_all().
Q3
B — Cloud storage is on someone else's computers, owned by another company. The line should be owner = "another company".
Q4
D — The loop uploads each file to cloud storage, so the message should say the files are saved to the cloud, not on this device.
Q5
C — There is a missing comma between the two arguments. It should be open_cloud(d, "notes.txt") so each device can open the same cloud file.