Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This Using digital currency to pay for goods and services worksheet is part of the IGCSE Computer Science 0478 — 5.2 Digital Currency journey. Print it as a booklet?
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 | |
|---|---|---|
| 1wallet.send(shop, 0.002) | ASends a payment from your wallet app to a business as an electronic transaction. | |
| 2shop.accepts(digitalCurrency) | Bcheckout.payWith("digital currency") | |
| 3Online shopping: at the checkout you choose to pay for your basket using digital currency. | CChecks that the business takes digital currency, so you can pay it for goods or services. | |
| 4Paying from a wallet app creates an electronic transaction that goes from your wallet to the business's wallet. | Dtransaction = (myWallet, shopWallet, 0.01) | |
| 5pay(shop, coinsFromPocket) | EDigital currency is not physical coins. It is paid electronically from a wallet app, for example wallet.send(shop, amount). | |
| 6pay(anyShop, digitalCurrency) | FDigital currency can only be spent at businesses that accept it, so check shop.accepts(digitalCurrency) first. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Paying with digital currency — Spending digital currency online or in shops that accept it to buy goods and services. The payment is sent from your wallet app as an electronic transaction.price ← 15
balance ← balance - priceIF balance >= price THEN
SEND(wallet, shop, price)SEND(wallet, shop, price)
OUTPUT "Payment sent"shop ← "Bookshop"
SEND(wallet, shop, price)IF balance >= price THEN
SEND(wallet, shop, price)
ELSE OUTPUT "Not enough funds"