Question bank › A-level Computer Science › Fundamentals of data representation

Analogue/digital, ADC/DAC, bitmap and vector graphics, sound and MIDI

Answer on paper first, then reveal the mark scheme one mark at a time.

1Core4 marks

A weather station uses an analogue temperature sensor connected to a digital computer.

(a) Explain the difference between analogue data and digital data. [2]

(b) Explain why an analogue-to-digital converter (ADC) is needed between the sensor and the computer. [1]

(c) The computer stores the bit pattern 01000001. Explain why it is not possible to say what this bit pattern represents just by looking at it. [1]

2Core4 marks

A bitmap image is 1024 pixels wide and 768 pixels high and has a colour depth of 4 bits.

(a) Calculate the size of the image in pixels. [1]

(b) Calculate the minimum storage needed for the image, ignoring metadata. Give your answer in kibibytes (KiB). [2]

(c) State the maximum number of different colours that can appear in this image. [1]

3Standard5 marks

A bitmap file stores an image that is 800 pixels wide and 600 pixels high. Ignoring metadata, the image data occupies exactly 1 440 000 bytes.

(a) Calculate the colour depth of the image. Show your working. [2]

(b) Calculate how many different colours can be represented with this colour depth. [1]

(c) The image is printed at a resolution of 200 dots per inch, with one dot per pixel. Calculate the width of the printed image in inches. [1]

(d) The file also stores the width of the image in pixels as metadata. Explain why the width must be stored. [1]

Stuck on Analogue/digital, ADC/DAC, bitmap and vector graphics, sound and MIDI?

Get it sorted in a free 30-minute session

We work through your weakest questions on this topic on Zoom. I reply the same day.

4Standard5 marks

A journalist records a 4-minute interview using a microphone. The recording is mono, with a sampling rate of 16 000 Hz and a sample resolution of 12 bits.

(a) Calculate the size of the recording in megabytes (1 MB = 1 000 000 bytes). Ignore metadata. Show your working. [3]

(b) The journalist changes the sample resolution to 16 bits, keeping the same sampling rate. Explain the effect this has on the recording. [2]

5Standard5 marks

In a digital telephone call, the caller's voice is captured by a microphone and the listener hears it through a loudspeaker.

(a) Describe how an analogue-to-digital converter (ADC) converts the signal from the microphone into digital data. [3]

(b) State the purpose of the digital-to-analogue converter (DAC) at the listener's end. [1]

(c) Explain why the sound heard by the listener is never an exact copy of the original sound, even if no data is lost in transmission. [1]

6Hard5 marks

The graph shows part of an analogue sound wave. The wave is sampled at the times marked with dots, and each sample is stored using a sample resolution of 3 bits (quantisation levels 0 to 7).

(a) Write down the four 3-bit binary values stored for the samples taken at 0.5 ms, 1.0 ms, 1.5 ms and 2.0 ms. [2]

(b) Calculate the sampling rate in hertz. [1]

(c) Using Nyquist's theorem, state the highest frequency that can be accurately recorded at this sampling rate. [1]

(d) Explain one effect of increasing the sample resolution to 4 bits on how accurately this wave is represented. [1]

012345670.00.51.01.52.02.53.03.54.0Time (ms)Quantisation level
7Standard4 marks

The diagram shows a simple vector drawing made of three objects, A, B and C, on a grid. Coordinates are given as (x, y) with the origin at the top-left.

The drawing is stored as a list of objects. The entry for object A has been completed:

ObjectProperties
A: circlecentre (3, 3), radius 2, line colour black, fill colour yellow
B: rectangle…
C: line…

(a) Rectangle B has a black outline and a blue fill. Line C is red. Complete the properties for objects B and C. [3]

(b) The drawing is enlarged to five times its size for a poster. Explain why its quality does not decrease. [1]

001122334455667788991010x (right) and y (down) from origin (0, 0) at top-leftABC
8Hard5 marks

An estate agent's website shows the company logo (a house outline and the company name in two colours) on every page, and photographs of houses for sale.

(a) Explain why the logo should be stored as a vector graphic. [2]

(b) Explain why the photographs should be stored as bitmap graphics. [2]

(c) Describe a situation in which a vector graphic would require more storage than a bitmap of the same image. [1]

9Hard6 marks

A composer writes a 2-minute piece of music. Stored as a MIDI file it contains 1800 MIDI messages, each 3 bytes long.

(a) Explain how a MIDI file represents music differently from a sampled sound file. [1]

(b) State two items of data that can be included in a MIDI event message for a note. [2]

(c) The same piece is also recorded as a mono sampled file at 44 100 Hz with a sample resolution of 16 bits. Calculate how many times larger the sampled file is than the MIDI file. Ignore metadata. [2]

(d) Give one advantage of MIDI for the composer, other than file size. [1]

10Stretch6 marks

A digital sign displays images of 1920 × 1080 pixels. Each image uses exactly 300 different colours.

(a) State the minimum colour depth needed and explain why a colour depth of 8 bits is not enough. [2]

(b) Calculate the size of one image in bytes, using the minimum colour depth. Ignore metadata. [2]

(c) Each stored file also contains 4000 bytes of metadata. Calculate the maximum number of complete image files that fit on a 64 GB memory card (1 GB = 109 bytes). [2]

Stuck on this topic?

Book a free 30-minute session on WhatsApp and we'll find exactly which step is costing you the marks. Or build a timed paper on it.

Free 30-minute session