Professional Documents
Culture Documents
First Midterm Exam Grade 8
First Midterm Exam Grade 8
INFORMATION
• The total mark for this paper is 75.
• 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. What do you understand by programming language? [1]
………………………………………………………………………………………
………………………………………………………………………………………
………………………………………………………………………………………
……………………………………………………………………………………….
4. Explain the difference between high level language and low level
language [1]
……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………..
5. Describe what an interpreter and a compiler do. [1]
……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………..
i. Interpreted programs run more slowly as the processor has to wait for
each instruction to be translated before it can be executed.
ii. There also needs to be temporary working space for the compiler to
perform the translation. Modern systems either have enough memory or
use virtual memory to hold all the data.
iii. Additionally, the program has to be translated every time it runs.
iv. Interpreters do not optimize code the translated code is executed as it is.
v. The interpreters do not produce an executable file that can be
distributed. As to be supplied, and this could be modified without
permission.
Inputs Output
A B A OR B NOT A X