Skip to main content

Back to the full dot-point answer

SingaporeComputer ScienceQuick questions

Data Representation

Quick questions on Data storage units and compression explained: O-Level Computing

7short Q&A pairs drawn directly from our worked dot-point answer. For full context and worked exam questions, read the parent dot-point page.

What is units of storage?
Show answer
The smallest unit is the bit (one binary digit). Eight bits make a byte. Above the byte, each unit is about 10001000 times the one below it (using the common decimal convention):
What is calculating a simple file size?
Show answer
To estimate a file size, work out the total bits and convert to bytes. For an image, multiply the number of pixels by the colour depth:
What is lossless compression?
Show answer
Lossless compression reduces the size without losing any data, so the original file can be restored exactly. It works by storing information more efficiently, for example recording a repeated pattern once with a count. It is used where every bit matters: text documents, spreadsheets, program code and some image formats.
What is lossy compression?
Show answer
Lossy compression achieves much smaller files by permanently removing detail that a person is unlikely to notice, such as subtle colours in a photo or sounds the ear cannot easily hear. The original cannot be fully restored. It is used for photos, music and video, where a small loss of quality is an acceptable price for a much smaller file.
What is q1?
Show answer
State how many bytes are in one megabyte, using the decimal convention. [2 marks]
What is q2?
Show answer
Give two reasons a website might compress its images. [2 marks]
What is q3?
Show answer
A file must be restored to its exact original after transfer. State which type of compression must be used and why. [2 marks]

Have a question we have not covered?

This dot-point answer is short enough that we have not extracted many short questions yet. Read the full dot-point answer or ask Mo, our study assistant, in the chat for follow ups.

All Computer ScienceQ&A pages