Cambridge AS Level Computer Science 9618 · 1.1 Data Representation

Q1 · 9618/11/M/J/21 Q1

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

Q19618/11/M/J/21original Q1Structured · 17 marks
Question 1 from 9618/11/M/J/21

Worked solution

(a)(i)

Write what each term means.

A pixel is a single square of one colour. It is the smallest addressable element in an image. [1]

A file header stores data about the bitmap image, for example the number of colours. [1]

(a)(ii)

File size = width × height × colour depth.

1024 × 512 = 524 288 pixels, and 8 bits = 1 byte per pixel, so the size is 524 288 bytes. [1]

Divide by 1024 to get kibibytes, then by 1024 again to get mebibytes: 524 288 ÷ 1024 ÷ 1024 [1]

Answer: 0.5 mebibytes [1]

(b)

Name the method, then say how it makes the file smaller.

Method: run-length encoding (RLE) [1]

It replaces a run of pixels of the same colour ... [1]

... with the colour code and the number of identical pixels in the run. [1]

(c)(i)

F = 15, so FC = 15 × 16 + 12.

= 252 [1]

(c)(ii)

Write 15 as 8 bits: 00001111. [1]

Add in binary, column by column, carrying 1 when needed:

00100011
+00001111
=00110010

Method for the addition shown (with carries) [1]

Answer: 00110010 [1]

(c)(iii)

Subtracting 10 means adding −10 in two's complement.

10 = 00001010. Invert: 11110101. Add 1: 11110110 (this is −10). [1]

Add: 00100011 + 11110110 = 1 00011001. Ignore the extra carry bit on the left. [1]

Answer: 00011001 [1]

(d)

Write any two of these points:

Copyright is the formal and legal right to ownership of a piece of work (intellectual property rights). [1]

It protects the work against unauthorised copying (reproduction). [1]

It gives the owner a legal right of redress if the work is used without permission.

KEY IDEAImage size = pixels × bits per pixel; subtract by adding the two's complement; copyright protects an owner's work.
TOTAL 17 marks

Official mark scheme

Mark scheme for 9618/11/M/J/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.