QCAA Digital Solutions Prototype digital data exchanges
5 sample questions with marking guides and sample answers · Avg. score: 69.4%
A retail store uses facial recognition to send text messages about sale items to consenting customers while they are in the store.
This use of data personally impacts customers through
invasion of privacy.
increased data accuracy.
improved store inventory management.
a more personalised shopping experience.
How could a developer refine the following algorithm to improve maintainability?
/* Calculate the average value of an input array */
0 START
1 INPUT x AS ARRAY
2 SET sum = 0
3 FOR n IN x
4 sum = sum + n
5 ENDFOR
6 CALCULATE result = sum / length of x
7 OUTPUT result
8 END
Use an error-checking function.
Write code comments on every line.
Rename variables n, x and result to be more descriptive.
Incorporate a function from an available code library to sum the array.
In an online silent auction, items are posted on a public website and participants post a secret bid on the items they would like to purchase. Bidders cannot see each other’s bids. The bidding period is 7 consecutive days.
At the end of the auction, all bid values are revealed on the website and the highest bidder pays the amount they posted to obtain the item.
Explain how checksums, encryption and authentication would improve the security of the data exchange in this scenario.
Recommend one encryption method to securely store auction data and justify your response.
Refer to Stimulus 2 in the stimulus book.
Use pseudocode to symbolise a one-time pad encryption algorithm with any lower case letters. Users must input the plain text and key.
Evaluate the encryption algorithm developed in Question 13a) by performing a desk check. Use the plain text and key provided. Specify all inputs and outputs in table form.
Plain text: Queens
Key: ryjwah
Example output: hsnanz
Refer to Stimulus 1 in the stimulus book.
Describe the listed algorithm constructs and identify one example of each from the stimulus. Use corresponding line numbers to identify examples.
Assignment:
Example:
Condition:
Example:
Iteration:
Example:
Explain the purpose of modularisation and identify an example of how it is used in the stimulus. Use corresponding line numbers in your response.