9618/12

Computer Science 9618/12May/June 2022

Cambridge AS Level · Theory Fundamentals · worked solutions for every part, with the mark scheme

9
questions
75
marks
90
minutes

Topics Information Representation · Hardware · Processor Fundamentals · Security, Privacy and Data Integrity · Databases · System Software · +2 more

Q1Information RepresentationFree sample
(a)

Draw one line from each image representation term to its correct definition.

TermDefinition
PixelThe number of pixels wide by the number of pixels high
Bit depthThe smallest identifiable component of an image
Image resolutionStores data about the image file, e.g. file format, number of bits per pixel, file size
File headerThe number of bits used to represent each colour
3M
(b)

The following section of a bitmap image is 10 pixels wide and 5 pixels high. In this example, each colour is represented by a letter, e.g. B is blue.

BBBBBBBBBB
YYPYYYPYYY
RRMRPKTTRR
BOPYYYPGPP
RORPPPRRRR

The complete image can have up to 256 colours.

(i)

Identify the smallest number of bits that can be used to represent each colour in the complete bitmap image.

1M
(ii)

Calculate an estimate for the file size of the section of the bitmap image shown, giving your answer in bytes. Use your answer from part (b)(i).

Show your working.

Working .............................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

Answer ................................... bytes

2M
(c)

Describe how changing the colour depth of an image affects its file size.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

2M
(d)

The first row of pixels in the image from part (b) is shown:

BBBBBBBBBB

Explain how this row of pixels can be compressed using lossless compression.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

2M

The rest of this paper

8 more questions
  • Q2Hardware5M
  • Q3Processor Fundamentals · Information Representation9M
  • Q4Security, Privacy and Data Integrity10M
  • Q5Databases17M
  • Q6System Software8M
  • Q7Hardware2M
  • Q8Ethics and Ownership3M
  • Q9Communication11M
Loading the full paper…