Professional Documents
Culture Documents
Exam Ce480uy
Exam Ce480uy
Exam Ce480uy
Computer Studies IV
YEAR 4
FINAL EXAMINATION
October/November 2020
Instructions to Candidates:
Question One
a) Write a program in Visual Basic to allow the user to input two integer values and then
the program print the results of multiplying and dividing among the two values.
See the example below:
Question Two
a) Write a program in Visual Basic to ask a user to input his/her name, surname and age
then the output will be shown as an example below in a message box:
Your full name is: Sam Shivute!
You are: 28 years old! (20 marks)
[Total 40 Marks]
Question One
a) With examples distinguish between each of the following pairs of terms used in
Visual Basic:
(4 marks each)
[Total 20 Marks]
1
Question Two
[Total 20 Marks]
Question Three
a) Giving reasons choose a suitable data type for each of the details in an investor’s
deposit:
[Total 20 Marks]
2
Question Four
a) Calculate the values of Y1, Y2, Y3, Y4 and Y5 in the statements below, taking the
variables K = 3, L = 4, M = 12, N = 20, O= 2 and P = 3. Show all your calculations.
1. Y1 = K + L * M - N / O+ P
2. Y2 = (K + L) * M - N/ O + P
3. Y3 = (K + L) * (M - N) / O + P
4. Y4 = (K + L) * (M - N) / (O + P)
5. Y5 = (K + L) * M - N / (O + P) (20 marks)
[Total 20 Marks]