Professional Documents
Culture Documents
First Midterm Exam Grade 9
First Midterm Exam Grade 9
First Midterm Exam Grade 9
INFORMATION
• The total mark for this paper is 65.
• The number of marks for each question or part question is shown in
brackets [ ].
• Suggestions for how long to spend on each section are given in the
booklet.
1. Define or exlpain the following terms: [5]
a. File format
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
b. Lossless
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
c. Lossy file compression
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
d. Memory
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
e. Storage
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
2. An image is 1200 pixels by 1600 pixels. Calculate:
[6]
i. The total number of pixels in the original image
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
ii. The number of bytes occupied by this file
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
______________________________________________________
iii. The file size of the jpeg image (in kilobytes) if the original image was
reduced by a factor of 8.
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
------------------------------------------------
3. A second image is 3072 pixels by 2304 pixels. Calculate:
[6]
i. The total number of pixels in the original image
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
-----------------------------------
A B C P Q
5. Produce the truth tables for each of following logic circuits. You are advised
to split them up into intermediate parts to help eliminate errors.
8. Write down the types of language C that you have learned? [2]
………………………………………………………………………………………
………………………………………………………………………………………
………………………………………………………………………………………
………………………………………………………………………………………
9. Explain the difference between high level language and low level language
[4]
……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………………………………………………………………………