Question 9(e)(ii) 2014 · May-June · Paper 11 · 3 marks
Reveal official mark-scheme answer
Official answer for Question 9
Part (e)
(ii)
(ii)
Any three points from:
- byte 7: 0 0 1 1 1 0 1 1 has odd parity (shown by an arrow)
- column 5 (counting from the left) indicates that parity byte is incorrect in position 5
Show text version of question
Question 9
Part (e)
(ii)
Question 9
A vending machine dispenses drinks and has a number of drinks options.
drink option with code
tea black 10 + milk 11 + sugar 12 + milk + sugar 13
coffee black 20 + milk 21 + sugar 22 + milk + sugar 23
cappuccino normal 30 + extra milk 31 + sugar 32 + extra milk + sugar 33
chocolate normal 40 + extra milk 41 + sugar 42 + extra milk + sugar 43
cold drinks coke 50 orange 51 lemon 52 mango 53
water normal 60 cold 61 cold fizzy 62 hot 63
The vending machine is controlled by a microprocessor.
If a customer keys in 23 then they will receive a cup of coffee with milk and sugar.
So, 23 will be stored as 0 0 1 0 1 1 1
If an invalid code is keyed in, an error message is displayed. The vending machine is connected to a central computer through a dedicated communications line.
Every selection is stored. When eight drinks have been dispensed, these eight codes are transmitted to the computer.
(ii)
The vending machine transmits eight codes (bytes), followed by a parity byte. The
following bytes have been received by the computer:
1 0 0 0 1 0 1 1 1 0 0 0 1 1 0 1 0 0 1 1 0 1 0 1 0 0 0 1 0 1 1 1 0 1 0 0 1 0 0 0 1 0 1 0 1 0 1 0 0 0 1 1 1 0 1 1 1 0 1 0 0 0 0 0
01010101 parity byte
One of the eight bytes of data contains an error that occurred during data transmission.
Using an arrow, identify the byte where the error has occurred. Circle the bit that has been altered.
Explain your reason for choosing the byte and bit identified above.
Question 20
reasonable effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the publisher will be pleased to make amends at the earliest possible opportunity.
Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local Examinations Syndicate (UCLES), which is itself a department of the University of Cambridge.
Why this question appears here
71% assigned-topic match · Programming › Constructs
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9691_s14_qp_11.pdf
