Professional Documents
Culture Documents
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.
@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)
(1)
(b) Calculate the number of bytes required to represent all the pixel data in the icon as
a bitmap.
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
(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.
........................................................................................................................
A red pixel is coded as 01. What is the 6th 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.
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................m (2)
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................ (2)
(c) An image has 10 x 10 pixels. It is stored in an image format that is limited to 16
colours.
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................ (4)
@CompSciTeaching
(d) What is meant by a Pixel?
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................ (2)
Q6.
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
Q7.
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
........................................................................................................................
@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
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.
OR
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
Q6.
@CompSciTeaching