Fig. 1 shows one horizontal row from a monochrome image used on an information screen at a mountain rescue base. The image is stored as one bit per pixel. A...

Assessment: Computer Science 4CP0 | Paper 2 Mock 01 | Written Paper 2 Subject: Computer Science - 4CP0

Question 1 Report

Fig. 1 shows one horizontal row from a monochrome image used on an information screen at a mountain rescue base. The image is stored as one bit per pixel. A 1 means that the pixel is black and a 0 means that the pixel is white. The pixels are numbered from left to right so that a programmer can use the correct binary pattern when updating the image file.

Fig. 1: row of pixels in a monochrome image12345678black = 1, white = 0© EAGLE BEACON GLOBAL

The complete warning symbol contains 24 rows of 8 pixels. A revised program will store 16 symbols of this size in a single file. No compression or metadata is used.

(a) Identify the number of pixels in the row shown in Fig. 1. [2]
(b) Write the 8-bit binary pattern for the row in Fig. 1. [3]
(c) Complete the calculation of the number of bits needed for one complete warning symbol. [4]
(d) Use the image dimensions to calculate the total number of bytes needed for the 16-symbol file. Show your working. [4]

Answer Details

(a) There are eight numbered squares in the row, so it contains 8 pixels. [2]

(b) Read from left to right, using black = 1 and white = 0: black, white, black, black, white, white, black, white becomes 10110010. [3]

(c) Each pixel uses one bit in a monochrome image. Therefore:

\[24\text{ rows}\times8\text{ pixels per row}=192\text{ pixels}=192\text{ bits}\]

[4]

(d) For 16 symbols:

\[16\times24\times8=3072\text{ bits}\]

There are 8 bits in one byte:

\[3072\div8=384\text{ bytes}\]

The file needs 384 bytes. [4]

Download The App On Google Playstore

Everything you need to excel in your exams

Green Bridge CBT Mobile App
Personalized AI Learning Chat Assistant
200,000+ Exam Questions Across IGCSE, JAMB, WAEC & NECO
Over 3,900 Lesson Notes
Offline Support - Learn Anytime, Anywhere
Green Bridge Timetable
Literature Summaries & Potential Questions
Track Your Performance & Progress
In-depth Explanations for Comprehensive Learning