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 | |
|---|---|---|
| 1sender -> format -> channel -> receiver | AThe path of a data exchange: a sender packages data in an agreed format and sends it over a channel to a receiver | |
| 2{"from": "A", "to": "B", "amount": 50} | BA bank transfer message in an agreed format (JSON) that both systems can read | |
| 3Data exchange needs an agreed format so the receiver can read what the sender sends | Crequests.get("https://api.school.edu/records") | |
| 4Systems exchange data over an agreed channel, such as a web request to another system | DThe sender and receiver have not agreed on a format, so the receiver cannot read the data. Both must use the same format, such as CSV. | |
| 5Sender saves data as XML, but the receiver only reads CSV | EStoring data on one computer is not an exchange. A data exchange is a transfer of data between two or more people, systems or organisations. | |
| 6Data exchange is when one person keeps data stored on their own computer | Fstudent_id,name,year 101,Ava,12 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
data exchange — The transfer of data between people, systems or organisations, where a sender and receiver use an agreed format over an agreed channel, such as a bank transfer or sharing records.import json
message = json.dumps(record)import json
received = json.loads(message)def send_data(record, receiver):
return json.dumps(record)if senderFormat == receiverFormat:
print("Exchange can proceed")with open("transfer.csv", "w") as f:
f.write(message)