COMPUTER PROGRAMMING – ASSIGNMENT (CERTIFICATE IN INFORMATION TECHNOLOGY)
Instructions
1. Do not write anything on this question paper
2. Answer any Question One and any other Three questions
Question one
a) Define the term program bug? (2 Marks)
b) Differentiate between Global and local scope of variable (2 Marks)
c) State three advantages of Object Oriented programming (3 Marks)
d) List three types of algorithms and briefly explain (6 Mark)
e) Distinguish between a flowchart and a pseudo code. (3 Marks)
f) Differentiate between source code and Object code (4 Marks)
g) State three types of control structures (3 Marks)
h) Why is it appropriate to add comments in a program? (2 Marks)
Question Two
a) What is a pseudo code? (2 Marks)
b) State three guidelines for developing pseudo codes (3 Marks)
c) Write a pseudo code for a program to find the sum of two numbers and display the result ( 10
Marks)
Question Three
a) Briefly explain the following terms as used in programming.
i. Interpreters (3 Marks)
ii. Assemblers (3 Marks)
iii. Compilers (3 Marks)
b) Differentiate between compliers and interpreters. (6 Marks)
Question Four
a. What is a program error? (3 Marks)
b. State and briefly describe three types of errors (5 Marks)
c. Discuss three modes of error detection (4 Marks)
d. How are errors avoided in programming? (3 Marks)
Instructions
1. Do not write anything on this question paper
2. Answer any Question One and any other Three questions
Question one
a) Define the term program bug? (2 Marks)
b) Differentiate between Global and local scope of variable (2 Marks)
c) State three advantages of Object Oriented programming (3 Marks)
d) List three types of algorithms and briefly explain (6 Mark)
e) Distinguish between a flowchart and a pseudo code. (3 Marks)
f) Differentiate between source code and Object code (4 Marks)
g) State three types of control structures (3 Marks)
h) Why is it appropriate to add comments in a program? (2 Marks)
Question Two
a) What is a pseudo code? (2 Marks)
b) State three guidelines for developing pseudo codes (3 Marks)
c) Write a pseudo code for a program to find the sum of two numbers and display the result ( 10
Marks)
Question Three
a) Briefly explain the following terms as used in programming.
i. Interpreters (3 Marks)
ii. Assemblers (3 Marks)
iii. Compilers (3 Marks)
b) Differentiate between compliers and interpreters. (6 Marks)
Question Four
a. What is a program error? (3 Marks)
b. State and briefly describe three types of errors (5 Marks)
c. Discuss three modes of error detection (4 Marks)
d. How are errors avoided in programming? (3 Marks)