structured prog ict mod 1
structured prog ict mod 1
Answer five questions at least two from section one and at least two form section two
SECTION ONE
1 a) State the differences between the following terms.
i. Functional programming technique and event driven programming.
ii. Modularity and Structured theorem.
iii. High level languages and Low level languages. (12 marks)
b) Explain any three programming tools that can be used during program development
(6 marks)
c) Explain the meaning of the term data type as used in C programming. (2 marks)
2 a) Write a C program that will accept two values through the keyboard and calculate their
product. (6 marks)
b) Explain any three C programming variable Formatters. (6 marks)
c) Mary went through a program and met the & sign in the scanf statement. Explain to her
it’s purpose. (2 marks)
d) State the meaning of the following escape codes
i) \n.
ii) \t.
iii) \v.
iv) \a. (4 marks)
Examination Irregularity is punishable by expulsion Page 1 of 4
e) Identify the difference between the following expressions
i) =
== (2 marks)
3 a) Explain the meaning of the following terms as used in C programming
i. compiler
ii. Interpreter
iii. Executable code (6 marks)
Table 1
Write a Pascal program that would prompt a user to enter an option. The program then
outputs the menu activity. (6 marks)
c) Distinguish between program execution and deployment as used in programming.
(4 marks)
d) Explain three stages in program development. (6 marks)