You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
This lesson brings together all the key topics from the Data Representation unit and provides exam-style questions with model answers. Use this lesson to test your understanding and practise the types of questions you will face in the GCSE Computer Science exam.
Before tackling exam questions, make sure you are confident with all of these topics:
Convert the denary number 178 to an 8-bit binary number. Show your working.
Model Answer:
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|
| 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 |
178 in binary = 10110010
Add the following two 8-bit binary numbers: 01101010 + 01010111. State any issues with the result.
Model Answer:
Carries: 1 1 1 1 1 1
0 1 1 0 1 0 1 0 (106)
+ 0 1 0 1 0 1 1 1 (87)
-------------------
1 1 0 0 0 0 0 1 (193)
The result is 11000001 (193 in denary). No overflow has occurred because the result fits within 8 bits (the maximum for 8-bit unsigned is 255).
Convert the hexadecimal number B3 to denary.
Model Answer:
Explain one advantage and one disadvantage of using Unicode instead of ASCII.
Model Answer:
Advantage: Unicode can represent characters from virtually all world languages (over 140,000 characters), while ASCII is limited to 128 (or 256 in extended ASCII). This makes Unicode suitable for international applications and multilingual text.
Disadvantage: Unicode uses more bits per character (up to 32 bits in UTF-32, compared to 7 or 8 bits for ASCII), resulting in larger file sizes for the same amount of text.
A bitmap image has a resolution of 1024 × 768 pixels and uses 24-bit colour. Calculate the file size in megabytes (MB). Show your working.
Model Answer:
A stereo audio recording has a sample rate of 44,100 Hz, a bit depth of 16 bits, and lasts for 5 minutes. Calculate the file size in MB. Show your working.
Model Answer:
A music streaming service uses lossy compression for its audio files. Explain why lossy compression is appropriate in this context, and give one situation where lossless compression would be more appropriate.
Model Answer:
Lossy compression is appropriate for a music streaming service because:
Lossless compression would be more appropriate in a professional recording studio where audio engineers need to edit and mix tracks at the highest possible quality. Any loss of audio data during compression could affect the final product, so formats like FLAC or WAV are preferred to preserve every detail of the recording.
The following data represents a row of pixels in a simple image: WWWWWBBBWWWWWWBBBB. Encode this data using Run-Length Encoding (RLE).
Model Answer:
Count the consecutive repeating values:
RLE encoding: 5W 3B 6W 4B
The original data was 17 characters. The RLE encoding uses 8 characters (4 pairs), achieving compression.
Perform a left shift by 2 on the binary number 00001011. State the denary value before and after the shift.
Model Answer:
A file has a size of 3,145,728 bytes. Convert this to megabytes.
Model Answer:
flowchart TD
A[Read question] --> B{Identify topic}
B -->|Number| C[Convert: bin/den/hex]
B -->|Image| D[width x height x depth]
B -->|Sound| E[rate x depth x time x channels]
B -->|Compression| F[Lossy or Lossless?]
C --> G[Show working]
D --> G
E --> G
F --> G
G --> H[Check units]
H --> I[Final answer]
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.