Data Representation Homework 4 Images Answers

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Homework 4 Images

Unit 1 Data representation

Homework 4: Images Answers

1. (a) State what is meant by a pixel. [1]

A pixel is a picture element, the smallest identifiable area of an image,

(b) How many bits per pixel would be required for an image with a palette of 256 possible
colours? [1]
8
2. State two factors that affect the file size of a bitmap image. [2]

Colour depth / number of bits per pixel / number of colours in the image
Dimensions of the image in pixels / resolution - ‘Size of the image’ is not enough

3. Which icon image is greater in file size? (Show your working) [3]
a. A 256 colour icon with dimensions of 50 x 50 pixels

b. A 16 colour icon with dimensions of 100 x 100 pixels

a. 256 colours require 8 bits = 1 byte. 50 x 50 = 2,500 pixels. Size = 2,500 bytes
b. 16 colours require 4 bits. 100 x 100 = 10,000 pixels, x 4 bits = 40,000 bits / 8 = 5,000
bytes
Image (b) would have the greater file size.

4. Additional metadata data is stored alongside the binary colour values for each pixel. Give
two examples of metadata. [2]

Answers include:
Dimensions / Width and height
Bit depth / colour depth / number of bits per pixel
File name
Date created / modified
File type
Author

1
Homework 4 Images
Unit 1 Data representation

5. Imran has saved following two images as bitmap file types.

Image A Image B

a. Give one reason why Image B appears blurred. [1]


Poor or low resolution / image has fewer pixels / insufficient density of pixels

b. Image A would become blurred or pixelated if it was significantly enlarged. Explain why
this would happen. [2]

Pixels become enlarged… as image is stretched. Density of pixels over a larger area
becomes lower.

c. Imran wishes to email one of the images using a low bandwidth Internet connection. He
has chosen to send Image B. State two possible reasons for his choice. [2]

Image B is likely to have a smaller file size.


Smaller file sizes take less time to upload and send over an Internet connection.

6. Ray wants to reduce the file size of his images and has been recommended to use
compression. State two types of compression and advise Ray of the advantages or
disadvantages of each method. [6]

Compression types:
Lossy compression
Lossless compression

Features include:
Lossy compression removes data permanently
Lossy compression results in a much smaller file size than lossless
Lossy compression may cause colour banding
Lossy compression creates compression artefacts / can be of poorer quality
Lossless compression retains ALL original image data
[Total 20 marks]

You might also like