Cambridge O Level Computer Science 2210 · 2.2 Methods of error detection

Q18 · 2210/12/O/N/20 Q2

Worked solution from the Data transmission Paper 1 Computer Systems booklet, Part 2 of 3.

Q182210/12/O/N/20original Q2Structured · 9 marks
Question 2 from 2210/12/O/N/20

Worked solution

(a)

Count the 1s in each 8-bit value. Even parity means an even number of 1s. Odd parity means an odd number of 1s.

8-bit binary valueNumber of 1sParity
111111118Even
011001104Even
011110116Even
100000001Odd

Tick Even for 11111111 [1]

Tick Even for 01100110 [1]

Tick Even for 01111011 [1]

Tick Odd for 10000000 [1]

(b)

Write any five of these points:

A value is calculated from the data. [1]

It is calculated using an algorithm. [1]

The value is appended (added) to the data that is sent. [1]

The value is recalculated after transmission. [1]

The two values are compared. [1]

Also accepted: if they match, the data is correct. If they do not match, there is an error.

Write any five points, one mark each (only five marks are given).

KEY IDEACount the 1s to find the parity type; a checksum is calculated before sending and again after, then compared.
TOTAL 9 marks

Official mark scheme

Mark scheme for 2210/12/O/N/20 question 2
VIDEO
▶ Whole paper

Video solution of the whole paper · by O/Alevel CS by Wasiq. Tap the picture to open it on YouTube.

Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.