EXAM QUESTIONS · AS LEVEL 9618
Information Representation Exam-Style Questions with Answers (A Level 9618)
Original exam-style questions on binary prefixes, BCD, two’s complement, binary subtraction, hexadecimal, character sets, bitmap and vector graphics, file sizes and compression for Cambridge AS & A Level Computer Science 9618 (Paper 1). There are 26 marks in total. Try each question on paper first, then press Show answer to see the mark scheme. Answers that can be calculated mark themselves.
A file is 2 MiB. State its size in bytes and explain the difference between a mebibyte and a megabyte.
Show answer
- 2 097 152 bytes (2 × 220) [1]
- A mebibyte is 220 = 1 048 576 bytes; a megabyte is 106 = 1 000 000 bytes. [1]
- Write the denary number 59 in Binary Coded Decimal (BCD). [1]
- Give one use of BCD. [1]
Show answer
- 0101 1001 (5 = 0101, 9 = 1001) [1]
- Digital clocks / calculators / displaying digits on a seven-segment display / storing currency values exactly. [1]
- Convert −77 to an 8-bit two’s complement binary number. [2]
- Convert the 8-bit two’s complement number 1001 1100 to denary. [1]
Show answer
- 1011 0011 [2]
77 = 0100 1101 → invert: 1011 0010 → add 1: 1011 0011 - −100 [1]
−128 + 16 + 8 + 4 = −100
Show how the subtraction 0101 1010 − 0011 0011 is carried out using two’s complement addition. Give the 8-bit result.
Show answer
- Find the two’s complement of 0011 0011: 1100 1101 [1]
- Add: 0101 1010 + 1100 1101 = (1) 0010 0111, ignoring the carry out [1]
- Result: 0010 0111 (= 39, and 90 − 51 = 39) [1]
Convert the hexadecimal number 2F7 to denary.
Show answer
759 [1] (2 × 256 + 15 × 16 + 7)
Explain why Unicode was introduced and give one drawback of Unicode compared with ASCII.
Show answer
- ASCII (7 or 8 bits) can only represent 128/256 characters, which is not enough for all the world’s languages. [1]
- Unicode uses more bits (up to 32) so it can represent characters from almost every language, plus symbols and emojis. [1]
- Drawback: each character can take more bits, so files are larger. [1]
A bitmap image is 1024 × 768 pixels with a colour depth of 24 bits. Calculate the file size in MiB. Show your working.
Show answer
2.25 MiB [3]
- 1024 × 768 × 24 = 18 874 368 bits [1]
- ÷ 8 = 2 359 296 bytes [1]
- ÷ 1024 ÷ 1024 = 2.25 MiB [1]
Compare bitmap and vector graphics. Give a suitable use for each.
Show answer
Any four from:
- A bitmap stores the colour of every pixel; a vector stores a drawing list of objects with properties (e.g. coordinates, line colour, fill).
- Bitmaps lose quality (pixelate) when scaled up; vectors scale without losing quality.
- Vector files are usually smaller for simple images; bitmaps are better for photographs with lots of colour detail.
- Use of bitmap: photographs / scanned images.
- Use of vector: logos / diagrams / fonts / CAD drawings.
Explain how run-length encoding (RLE) compresses a bitmap image, and state why it is not always effective.
Show answer
- Runs of consecutive pixels with the same colour are stored as one colour value and a count. [1]
- This is lossless, so the original image can be rebuilt exactly. [1]
- If the image has few repeated runs (e.g. a photograph with lots of colour changes), the file may not get smaller, or may even get larger. [1]
Give two reasons why lossy compression is often used for music files sent over the internet.
Show answer
Any two from:
- It gives a much smaller file size, so files download/stream faster.
- It uses less storage space and bandwidth.
- It removes sounds that most people cannot hear (perceptual coding), so the loss in quality is hardly noticed.
Frequently asked questions
What is the difference between a kibibyte and a kilobyte?
A kibibyte (KiB) is 210 = 1024 bytes. A kilobyte (kB) is 103 = 1000 bytes. Cambridge 9618 expects you to know both binary and decimal prefixes.
Are these past paper questions?
No. These are original exam-style questions written by a Computer Science teacher in the Cambridge style.
Revise the topic: 9618 information representation notes · Binary game (two’s complement levels) · 9618 flashcards · All exam-style questions