You are on page 1of 7

Name

GCSE Computer Science

Bitmap Images Practice Questions

Q1. 
Describe how a black and white image could be represented as a bitmap in binary.

......................................................................................................................................

......................................................................................................................................

......................................................................................................................................

......................................................................................................................................

......................................................................................................................................

......................................................................................................................................
(3)

Q2. 
Give one reason why we use binary to represent data in computers.

......................................................................................................................................
(1)

Q3. 
The icon below is represented in a computer's memory as a bitmap image.

Four different colours have been used in the icon.

@CompSciTeaching
(a) How many bits are required to store 1 pixel in this icon image?

........................................................................................................................ (1)

Row 1 of the icon is represented in the computer's memory as the bit pattern:
 
  1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1

(1)

What is the bit pattern represented for Row 2 of the icon.


 
                                         

(1)

(b)     Calculate the number of bytes required to represent all the pixel data in the icon as
a bitmap.

Show your working.

........................................................................................................................

........................................................................................................................

........................................................................................................................

........................................................................................................................

........................................................................................................................

(2)

@CompSciTeaching
Q4.
A bitmapped image consists of pixels. The diagram below shows a bitmapped
representation of an image of a face consisting of red, black and white pixels only.

(a)     Why must at least two bits be used to represent each pixel?

........................................................................................................................

........................................................................................................................

........................................................................................................................

........................................................................................................................
(1)

(b)     The second line of pixels (from the top) shown in the image above has been
represented in a computer’s memory as the bit pattern 1111 1100 0011 1111. A
black pixel is coded as 11.

What is a white pixel coded as?

........................................................................................................................

A red pixel is coded as 01. What is the 6th line bit pattern?

 
                                 

What is the 3rd line bit pattern?

 
                                 

@CompSciTeaching
(c)     What, in bytes, is the file size for the bitmapped image above? Show your working

 ........................................................................................................................

........................................................................................................................

........................................................................................................................

........................................................................................................................

........................................................................................................................

........................................................................................................................

Q5.
Images are often represented in a computer’s main memory using bitmapped graphics.
Bitmapped images consist of pixels.

(a)     What is meant by the resolution of a bitmapped graphic image?

........................................................................................................................

........................................................................................................................

........................................................................................................................

........................................................................................................................m (2)

(b)     What is meant by the Colour Depth of a bitmapped graphic image?

........................................................................................................................

........................................................................................................................

........................................................................................................................

........................................................................................................................ (2)

(c)     An image has 10 x 10 pixels. It is stored in an image format that is limited to 16
colours.

Calculate the image size in bytes. Show your working

........................................................................................................................

........................................................................................................................

........................................................................................................................

........................................................................................................................

........................................................................................................................

........................................................................................................................ (4)

@CompSciTeaching
(d)     What is meant by a Pixel?

........................................................................................................................

........................................................................................................................

........................................................................................................................

........................................................................................................................ (2)

Q6.

A simple bitmap image has the following characteristics:


4-bit colour depth (bit depth)
100 pixels by 300 pixels.
Calculate the size of this image in bytes.

........................................................................................................................

........................................................................................................................

........................................................................................................................

........................................................................................................................

........................................................................................................................

........................................................................................................................

Q7.

A landscape photographer wishes to publish a series of preview images online. He is


concerned about file sizes.
(a) The 24-bit RGB images are to be displayed on screen at a resolution of 400 x 250 pixels.
Construct an expression to calculate the size of one of the image files (KB).

........................................................................................................................

........................................................................................................................

........................................................................................................................

........................................................................................................................

........................................................................................................................

........................................................................................................................

@CompSciTeaching
Q1. 
Pixel is smallest element of an image. The bit pattern of each pixel shows the colour
of that Black Pixel: 0 - White Pixel: 1 (or other way around). Only 1 bit per pixel is
required.

Q2.
Any electronic device can only read signals in 2 discrete states which are on or off,
which is represented by a 1 or a 0.

Q3.
(a) 4 colours requires 2 bits per pixel. log2(n) = 4 2**2 = 4
Possible combinations are 00, 11, 01, 10

1 mark for either:


 
  1 1 1 1 0 0 1 0 0 1 0 1 1 0 1 0 0 0 1 1

or:
 
  1 1 1 1 0 0 0 1 1 0 1 0 0 1 0 1 0 0 1 1

(b)
10*10=100 Pixels
100*2 = 200 bits
200/8 = 25 bytes (8 bits in a byte)

Q4. 
(a) Each pixel can be one of 3 possible colours, Two bits are needed. 2**2 = 4. This
is the closet to 3.

(b) 00 for a while Pixel

OR

(c) 8*8 = 64 Pixels


64 * 2 = 128 Bits
128/8 = 8 Bytes (8 bits in a byte)

Q5. 
(a)     The number of pixels / dots; per cm / inch / unit of measurement;

(b)     The number of bits used to represent the colour / greyscale value of each pixel

c) 10*10=100 Pixels
16 Colours = 4 bits per pixel

@CompSciTeaching
2**4 = 16
4 Bits allow 16 different bit patterns
100*4 = 400 bits
400 / 8 = 50 bytes

(d)    Pixel is smallest picture element // unit which can be drawn on screen //


addressable / resolvable part / unit of a picture ;

Q6. 

100*300 = 30,000 pixels


30,000 * 4 = 120,000 bits
120,000 / 8 = 15,000 bytes
Q7.

400*250 = 100,000 pixels


100,000 * 24 = 2,400,000 bits
2,400,000 / 8 = 300,000 bytes
300,000 / 1024 = 293 kilobytes (rounded)

@CompSciTeaching

You might also like