All mock tests are FREE till 31 December — register to save your progress

Suppose you have eight black-and-white images taken with a 1-megapixel camera and one 8-colour image taken with an 8-megapixel camera. How much hard disk space in total do you need to store these images?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. 4 MB

Explanation

Black-and-white needs 1 bit per pixel: 8 images × 1 Mbit = 8 Mbit = 1 MB. An 8-colour image needs 3 bits per pixel: 8 M × 3 bits = 24 Mbit = 3 MB. Total = 4 MB.

More Programming Languages and Computer Graphics questions