Using digital currency to send money to other people

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

Using digital currency to send money to other people

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Maya in the UK wants to send digital currency to her cousin in Kenya. What does she need to send it?
A Her cousin's wallet address
B Her cousin's home postal address
2. Which statement about sending digital currency to a friend is correct?
A It is sent over the internet from one wallet to another
B The sender must post coins or notes to the friend
3. Can digital currency be sent to someone in another country?
A No, it can only be sent within the same country
B Yes, the internet connects both wallets wherever they are
4. A person-to-person transfer of digital currency means:
A Money must be handed over face to face
B Money goes straight from one person's wallet to another's
5. Sam sends digital currency to Ana but types the wrong wallet address. What is the likely result?
A The money goes to the wrong wallet
B The money still reaches Ana because it knows who she is

Match the Pairs

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

Left columnRight column
1send(walletA, walletB, 5) Asend(myWallet, friendAddress, 10)
2receiverAddress = "7xK92fQ" BThe receiver's wallet address, which the sender needs so the digital currency goes to the right person
3Digital currency can be sent to a person in another country over the internet, with no need to post anything CThe transfer uses the receiver's name instead of their wallet address, so the system cannot tell which wallet should receive the money.
4The sender must have the receiver's wallet address before a transfer can be made Dsend(myWallet, walletInKenya, 20)
5post(coins, friendAddress) EDigital currency has no coins or notes to post. It is sent over the internet from wallet to wallet, not delivered by post.
6send(myWallet, "Sam", 15) FSend 5 units of digital currency from one person's wallet directly to another person's wallet over the internet

Definitions

peer-to-peer transfer

Fill in the Blanks

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

1.
____(0.5, receiverAddress)
2.
_______________ ← "x9K4"
3.
country ← "Japan" IF country _ "UK" THEN OUTPUT "Sent to another country"
4.
sendByPost ← _____ send(2.5, receiverAddress) OUTPUT "Sent over the internet"
5.
IF receiverAddress = "" ____ OUTPUT "Address needed" ENDIF

Spot the Error

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

Question 1
A INPUT postalAddress
B INPUT amount
C SEND amount TO walletAddress
D OUTPUT "Sent"
Question 2
A balance ← 50
B amount ← 20
C IF amount >= balance THEN
D SEND amount TO address
E ENDIF
Question 3
A address ← "WX91-KL20"
B amount ← 15
C country ← "Japan"
D SEND amount TO country
E OUTPUT "Sent to " + country
Question 4
A INPUT amount
B INPUT address
C POST coins TO address
D OUTPUT "Sent"
Question 5
A INPUT address
B IF address <> "" THEN
C OUTPUT "Address needed"
D ENDIF

Answer Key

Using digital currency to send money to other people
Section A: Quick Questions
Q1
A — Her cousin's wallet address
Q2
A — It is sent over the internet from one wallet to another
Q3
B — Yes, the internet connects both wallets wherever they are
Q4
B — Money goes straight from one person's wallet to another's
Q5
A — The money goes to the wrong wallet
Section B: Match the Pairs
Q1
send(walletA, walletB, 5) → Send 5 units of digital currency from one person's wallet directly to another person's wallet over the internet
Q2
receiverAddress = "7xK92fQ" → The receiver's wallet address, which the sender needs so the digital currency goes to the right person
Q3
Digital currency can be sent to a person in another country over the internet, with no need to post anything → send(myWallet, walletInKenya, 20)
Q4
The sender must have the receiver's wallet address before a transfer can be made → send(myWallet, friendAddress, 10)
Q5
post(coins, friendAddress) → Digital currency has no coins or notes to post. It is sent over the internet from wallet to wallet, not delivered by post.
Q6
send(myWallet, "Sam", 15) → The transfer uses the receiver's name instead of their wallet address, so the system cannot tell which wallet should receive the money.
Section C: Definitions
Q1
peer-to-peer transfer — Sending digital currency straight from one person's wallet to another's over the internet, even in another country, using the receiver's wallet address. No coins or notes are posted.
Section D: Fill in the Blanks
Q1
send(0.5, receiverAddress)
Q2
receiverAddress ← "x9K4"
Q3
country ← "Japan" IF country ≠ "UK" THEN OUTPUT "Sent to another country"
Q4
sendByPost ← FALSE send(2.5, receiverAddress) OUTPUT "Sent over the internet"
Q5
IF receiverAddress = "" THEN OUTPUT "Address needed" ENDIF
Section E: Spot the Error
Q1
A — Digital currency is sent to the receiver's wallet address, not a postal address. Line 1 should be INPUT walletAddress.
Q2
C — The sender can only send an amount that is less than or equal to their balance. The test should be amount <= balance.
Q3
D — Money is sent to the receiver's wallet address, not to a country name. Line 4 should be SEND amount TO address.
Q4
C — No coins or notes are posted. The digital amount is sent over the internet, so line 3 should be SEND amount TO address.
Q5
B — The warning should only appear when the wallet address is missing (empty). The test should be address = "".