First Midterm Exam Grade 9

You might also like

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

ACADEMIC YEAR 2024

FIRST MIDTERM EXAMINATION


GRADE 9 – COMPUTER SCIENCES

NAME: …………………………………………………… DATE: ……………

PARENT’S SIGNATURE: ………….……………….... SCORE: ……… /80

TIME: 1 hour 45 minutes

READ THESE INSTRUCTIONS FIRST

• Answer all questions.


• Write your answer to each question in the space provided.
• You should pay attention to punctuation, spelling and handwriting.

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
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
-----------------------------------

ii. The number of bytes occupied by file


--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
------------------------------------
iii. The file size of the jpeg image (in megabytes) if the original image
was reducedby a factor of 5.
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
4. Name all the logic gates and answer the following questions.

a. How many gates did you study?


-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------

b. Find the intermediate values P and Q.


-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
c. The inputs of P are A and B, and the input of Q is B and C, produce the
truth table.
Input values Output values

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.

6. What do you understand by programming language?


-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
------------------------------------------------------------
7. How many types of computer language did you study? [5]
----------------------------------------------------------------------------

a. What does high level language mean?


……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………..

b. What is a low level language?


……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………………………………………………………………………
…………………………………………………………………………………………..

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]
……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………………………………………………………………………

10. Describe what an interpreter and a compiler do [4]


……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………..
……………………………………………………………………………………………
……………………………………………………………

You might also like