WAEC Computer Studies 2024 Theory — Question 5
Question 5 of 5 from the West African Examinations Council (WAEC) Computer Studies 2024 Theory paper, with the correct answer and a full explanation.
Advertisement
5(a) Give two differences between a compiler and an interpreter (Table 2). (b) State one advantage of coding in: (i) high level programming language; (ii) low level programming language. (c) Outline two characteristics of a good program.
Model answer
(a) Compiler vs Interpreter: A compiler generates intermediate object code and takes the entire program at once, is comparatively faster in execution, has more difficult error detection, and requires more memory. An interpreter generates no intermediate object code, translates the source program line by line, is slower in execution, has comparatively easier error detection, and requires less memory. (b)(i) High level language: provides a higher level of abstraction, allowing programmers to focus on logic and functionality rather than hardware/complex low-level operations; easy to code, debug and maintain. (ii) Low level language: faster execution times; greater control over hardware resources. (c) Characteristics of a good program: Correctness -- produces the desired output for a given input. Maintainability -- easy to modify, update and debug. (Other acceptable: readability, reliability, efficiency, portability.)
Advertisement
Sign up free to unlock
- Score tracking
- Practice history
- Saved questions
- Progress dashboard
- Personalized sessions
- Weak-topic breakdown
…and/or go further with premium services and No Ads.