QUESTION ONE (30 MARKS)
1. Distinguish two differences between high-level languages and low-level languages. (4 marks)
2. Explain the following types of feasibility study. (6 marks)
i. Technical feasibility study.
ii. Economic feasibility study.
iii. Legal feasibility study.
3. Explain two types of documentation as used in programming concepts. (4 marks)
4. Explain the following structure of program based on their function. (4 marks)
i. #include<stdio.h>
ii. Main ()
5. Discuss two difference between printf() and scanf() functions. (4 marks)
6. Explain the following terms as used in programing; (6 marks)
i. Variable.
ii. Global variable.
iii. Local variable.
iv. Data type.
v. Literals.
vi. Constant.
7. Define the term structured programming. (2 marks)
SECTION B
QUESTION TWO (20 MARKS)
1. Highlight two differences between top-down and bottom-up design approach. (4 marks)
2. State and explain three advantages of modular approach. (6
marks)
3. Outline four functions of a compiler in a c program. (4 marks)
4. Write a C program that would prompt a user to enter the number of acres of land to be bought. If
the number is greater than five, the price per acre is KSH. 1.0 million else the price is KSH. 1.2
million. The program then computes and displays the total cost of the land purchased. (6 marks)
QUESTION THREE (20 MARKS)
1. Anderson is developing a program for his client. Explain three methods that he would use to
detect errors in the program. (6 marks)
2. State two sorting methods that use the swapping techniques. (2 marks)
3. With the aid of a diagram in each case, distinguish between a stack and a queue as used in
programming. (6 marks)