ZIMBABWE,
MINISTRY OF HIGHER AND TERTIARY EDUCATION,
SCIENCE AND TECHNOLOGY DEVELOPMENT
HIGHER EDUCATION EXAMINATIONS COUNCIL
(HEXCO)
NATIONAL CERTIFICATE
IN
INFORMATION TECHNOLOGY
SUBJECT: Programming Using C++ PAPER NO: 317/18/S02A
(Theory)
DURATION: 3 Hours
2019 EXAMINATION
REQUIREMENTS
Cc
Answer Booklet
INSTRUCTIONS TO CANDIDATE,
Answer all questionsPAPE ae
PER NO: 317/18/S02A - PROGRAMMING USING C++ (THEOR}
ou
») Giving reasons, indicate whethe
Giving reasons, yhether each of the following is a valid or
i) class.
ii) private
iii) false
iv) college
vy} stud Id (10 marks)
b) Write Pseudocode to determine the students final grade and indicate
whether it isa pass or a fail. The final grade is calculated as the average of
two marks. (10 marks)
QUESTION 2
8) Evaluate the following expressions given that @ = 10 and b = 5
i) at=b;
i) c= (acb)Pa-b;
ii) a %
iv) c= (b= 2) tat; ‘,
yoo a= 10, a-b) (10 marks)
b) Change the following C++ code from a for loop to a while loop.
x= 5:
for (int y =1; y <= xiy*#)
cout