CIT332
CIT332
QUESTION ONE
a. Define the following terms
i. program ii. Algorithm (4 marks)
b. What is stepwise refinement (2 marks)
c. List the aims guiding the design of a good computer program (3marks)
d. List the different stages involved in program development (3marks)
e. What are processing programs? Give examples of these in an operating system. (4
marks)
f. What is the difference between macro flowcharts and micro flowchart? (2 marks)
g. How are languages translated into machine code? (4 marks)
(22 marks)
QUESTION TWO
a. What is Machine Language (2marks)
b. State 2 advantages and 2 disadvantages of Machine Language (4 marks)
c. What is Assembly Language (2marks)
d. State 2 advantages and 2 disadvantages of Assembly Language (4 marks)
(12 marks)
QUESTION THREE
a. What does the acronym BASIC stands for? (2marks)
b. Name the two major variable types in BASIC? (2marks)
c. Write the general format of a BASIC statement. (2 marks)
d. Write a BASIC code that accepts two numbers A, B as input, computes the average of
the input as C, and output the result (average). (6marks)
(12 marks)
QUESTION FOUR
a. What does the acronym FORTRAN stand for? (2marks)
b. List examples of FORTRAN 77 compilers? (2 marks)
c. Identify the valid FORTRAN variables and the invalid (with reason) from the
following
C$, 4AB, k4, JOS (2marks)
d. Write a FORTRAN code that accepts two Integers, computes the sum of the two
numbers and output the result. (6 marks)
(12 marks)
QUESTION FIVE
a. What are the two basic parts a PASCAL code contains? (2marks)
b. State how to express the exponentiation operation and tangent function in Pascal since
there are no direct ways of expressing them (2marks)
c. Write a PASCAL code that accepts the radius of circle, computes the circumference
of the circle and outputs the result (circumference). (8marks)
(12 marks)
QUESTION SIX
a. What does the acronym HTML stand for? (2marks)
b. Write the general format of a HTML page. (4 marks)
c. What are the functions of the HTML tags in (b)? (4 marks)
d. Give four (4) examples of web browsers. (2marks)
(12 marks)
QUESTION SEVEN
a. Define the following Visual Basic terms: i. Project ii. Form iii. Object (6 marks)
b. Distinguish between SDI and MDI and give an example each of the applications that
allow Form windows in their mode. (4 marks)
c. State at least 4 controls you can place on your forms. (2 marks)
(12 marks)