Data representation

Start questions

Unofficial selected-topic practice.

Practice scope

Original English practice with worked guidance. Selected topics only. This is not a complete syllabus, official past-paper collection or predicted exam score. Check your own exam-board specification: these concepts are not certified against a particular board or exam year. Where a question shows a Cambridge 2027 reference, that is a conceptual placement only; no other exam board (such as Edexcel, AQA or OCR) is mapped, so do not assume this covers your board. Content here is written and checked with AI assistance; it has not been approved by an independent teacher or endorsed by any exam board.

160 original questions across 22 selected topic areas. No account or payment required to practise.

Cambridge International AS & A Level Computer Science (9618), examination year 2027: Conceptual alignment to official sources, not exam-board certification. Syllabus mapping and remaining coverage.

6 questions in this topic

Original questions with indicative worked guidance. Selected topics only.

All topics

Original practice in data representation; indicative answers for unofficial practice.

6 of 6 questions shown

Loading saved responses

Question 1Hide question2 indicative marks

Convert binary 10110110 to unsigned decimal, showing place values.

Cambridge 2027: Direct conceptual match

Binary 10110110 to denary 182 is an explicit integer base conversion; other encodings still need practice.

Conceptual placement only, not official Cambridge endorsement or complete syllabus coverage.

Show indicative guidance

Worked guidance

  1. Weight bits from right to left by powers of two. The zero bits contribute nothing, so add 128 + 32 + 16 + 4 + 2 rather than reading the digits as a decimal numeral.

Self-marking points

Tick what your working earned. The count is your own self-assessment.

Self-assessed: not counted yet. This question is worth 2 marks.

Examiner tip

An unsigned interpretation has no negative sign bit.

Question 2Explain one advantage and one limitation of lossless compression for a source-code file.3 indicative marks

Explain one advantage and one limitation of lossless compression for a source-code file.

Cambridge 2027: Direct conceptual match

Exact source-code reconstruction justifies lossless rather than lossy compression, including a real redundancy limitation.

Conceptual placement only, not official Cambridge endorsement or complete syllabus coverage.

Show indicative guidance

Worked guidance

  1. Source files cannot tolerate approximate reconstruction. Lossless encoders exploit repeated patterns, but a file with little exploitable repetition may not offset dictionary or header costs.

Self-marking points

Tick what your working earned. The count is your own self-assessment.

Self-assessed: not counted yet. This question is worth 3 marks.

Examiner tip

Lossless guarantees reconstruction, not a guaranteed compression ratio.

Question 3Interpret 11100110 as an 8-bit two's-complement integer and state the representable range.3 indicative marks

Interpret 11100110 as an 8-bit two's-complement integer and state the representable range.

Cambridge 2027: Direct conceptual match

Eight-bit two's-complement -26 and range -128..127 directly exercise the listed representation.

Conceptual placement only, not official Cambridge endorsement or complete syllabus coverage.

Show indicative guidance

Worked guidance

  1. Use -128 + 64 + 32 + 4 + 2 = -26. With eight bits there are 256 patterns; two's complement assigns one extra pattern to the negative side because zero occupies a nonnegative pattern.

Self-marking points

Tick what your working earned. The count is your own self-assessment.

Self-assessed: not counted yet. This question is worth 3 marks.

Examiner tip

Do not treat the remaining bits as an unsigned magnitude after a sign bit.

Question 4Calculate raw storage for a 640 x 480 image at 24 bits per pixel, in bytes and KiB. Ignore metadata; 1 KiB = 1024 bytes.3 indicative marks

Calculate raw storage for a 640 x 480 image at 24 bits per pixel, in bytes and KiB. Ignore metadata; 1 KiB = 1024 bytes.

Cambridge 2027: Direct conceptual match

Bitmap pixel/depth storage and KiB conversion directly match required calculations and prefix distinction.

Conceptual placement only, not official Cambridge endorsement or complete syllabus coverage.

Show indicative guidance

Worked guidance

  1. Multiply width by height and then by three bytes per pixel. Divide by 1024 for KiB, keeping the binary prefix distinct from decimal kilobytes.

Self-marking points

Tick what your working earned. The count is your own self-assessment.

Self-assessed: not counted yet. This question is worth 3 marks.

Examiner tip

Convert bits to bytes once, not once per colour channel and again at the end.

Question 5Add 01111111 and 00000001 using 8-bit two's complement. Give the stored bit pattern and explain why the signed result is invalid.4 indicative marks

Add 01111111 and 00000001 using 8-bit two's complement. Give the stored bit pattern and explain why the signed result is invalid.

Cambridge 2027: Direct conceptual match

127+1 stored as 10000000 directly demonstrates signed binary overflow rather than unsigned carry.

Conceptual placement only, not official Cambridge endorsement or complete syllabus coverage.

Show indicative guidance

Worked guidance

  1. The bit operation wraps within eight bits, but signed arithmetic has a narrower positive limit. Carry behaviour alone is not the signed-overflow criterion; compare input and output signs.

Self-marking points

Tick what your working earned. The count is your own self-assessment.

Self-assessed: not counted yet. This question is worth 4 marks.

Examiner tip

Do not confuse signed overflow with a ninth-bit unsigned carry.

Question 6A stereo recording uses 48000 samples per second per channel, 16 bits per sample and lasts 10 s. Calculate raw size in bytes and explain how halving sample rate affects size and possible fidelity.4 indicative marks

A stereo recording uses 48000 samples per second per channel, 16 bits per sample and lasts 10 s. Calculate raw size in bytes and explain how halving sample rate affects size and possible fidelity.

Cambridge 2027: Direct conceptual match

Sampling rate, resolution, channels and duration drive 1920000 bytes; halving rate and aliasing consequence address the specified storage/accuracy trade-off.

Conceptual placement only, not official Cambridge endorsement or complete syllabus coverage.

Show indicative guidance

Worked guidance

  1. Account separately for time, channels and bits per sample, then divide by eight. A reduced sample rate retains fewer temporal measurements; anti-alias filtering is needed when frequencies exceed the new sampling limit.

Self-marking points

Tick what your working earned. The count is your own self-assessment.

Self-assessed: not counted yet. This question is worth 4 marks.

Examiner tip

Stereo doubles channel data, not the duration or sample bit depth.

All AS & A Level subjects