Cambridge AS Level Computer Science 9618 · 1.1 Data Representation

Q3 · 9618/11/O/N/21 Q1

Worked solution from the Information representation Paper 1 Theory Fundamentals booklet, Part 1 of 3.

Q39618/11/O/N/21original Q1Structured · 9 marks
Question 1 from 9618/11/O/N/21

Worked solution

(a)

Match each binary value (powers of 1024) or decimal value (powers of 1000):

8 bits → 1 byte [1]

8000 bits = 1000 bytes → 1 kilobyte [1]

1000 kilobytes → 1 megabyte [1]

1024 mebibytes → 1 gibibyte [1]

8192 bits = 1024 bytes → 1 kibibyte [1]

(b)(i)

Add column by column from the right, carrying 1 when needed:

10101010
+00110111
=11100001

Working with carries shown [1]

Answer: 11100001 [1]

(b)(ii)

An overflow happens when the result is larger than can be stored in the given number of bits (for 8 bits, greater than 255). [1]

(c)

F0 = 15 × 16 + 0 = 240 [1]

KEY IDEAKilo, mega and giga use 1000; kibi, mebi and gibi use 1024; 8 bits make 1 byte.
TOTAL 9 marks

Official mark scheme

Mark scheme for 9618/11/O/N/21 question 1
VIDEO
▶ Whole paper

Video solution of the whole paper · by qiphyedu. 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.