100% found this document useful (1 vote)
57 views3 pages

2020 Programming Concepts

This document outlines the practical examination paper for the National Certificate in Information Technology, specifically focusing on Programming Using C++. It includes instructions for candidates, a list of required materials, and seven programming questions covering various topics such as arrays, structures, function overloading, and class definitions in C++. The examination is scheduled for March/April 2020 and requires candidates to submit both hardcopy and softcopy of their work.

Uploaded by

Panashe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
100% found this document useful (1 vote)
57 views3 pages

2020 Programming Concepts

This document outlines the practical examination paper for the National Certificate in Information Technology, specifically focusing on Programming Using C++. It includes instructions for candidates, a list of required materials, and seven programming questions covering various topics such as arrays, structures, function overloading, and class definitions in C++. The examination is scheduled for March/April 2020 and requires candidates to submit both hardcopy and softcopy of their work.

Uploaded by

Panashe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 3
ZIMBABWE M mr OF HIGHER AND TERTIARY EDUCATION, NOVATION, SCIENCE AND TECHNOLOGY DEVELOPMENT HIGHER EDUCATION EXAMINATIONS COUNCIL (HEXCO) NATIONAL CERTIFICATE IN INFORMATION TECHNOLOGY SUBJECT: Programming Using C++ (Practical) PAPER NO: 317/18/S02B TION: 3 Hours | MARCH/ APRIL 2020 EXAMINATION REQUIREMENTS 1) Answer booklet 2) Computer with C++ compiler 3) Storage medium for each candidate 4) Printing facility INSTRUCTIONS TO CANDIDATE 1) Answer all questions 2) Insert correct candidate number as header on every printed sheet. Print both code and output and insert printed copies in HEXCO serialised booklet and tie together with a string. ‘Submit both hardcopy and softcopy 3) 4) This paper consists of 3 printed PAPER No. QUESTION Cox A program that allows the user (6 marks} S without using a third variable, Display the values befo QUESTION 2 loops to display the following pattern Code fam that uses nested for (10 marks) QUESTION 3 Write a program that uses two arrays as follows arrClass- an array to hold five names ArrMarks-an array to hold five marks. The program should load the two arrays and then print out all names with. bh marks below 50. Nb. the name in ArrClass corresponds to a mark in a similar position in (17 marks} ArrMarks, QUESTION 4 lled CPU with fields: model, year and. uses a structure call ‘o enter details for five (5) CPUs, three fhen displays all CPU models (15 marks) Code a program that price. The program should allow a user te (a) for 1995 and two for any other years manufactured in year 1995, ‘The first record must be as below: Model Year 1995 IBM PAPER NO: 317/18 8/8028 -PRoc RAMMING USING C++ (PRACTICAL QUESTION 5 Write a pre junctions cailec : overload () to: Add the two integers ») Multiply the two floats ©) Caleulate the difference of an integer and a float d) Calculate the quotient of an integer and a double (15 marks) txt” using Notepad and enter the following tine Create a text file called “out of text a program that counts the number of blank “Our father who is in heaven” Code (9 marks) spaces present in the textiile QUESTION 7 Define a class “student” with the following specifications: Data members admin integer sname 20 characters @ english, maths, science float, total float. crt fa function to calculate english+mathstscience with float return type C Member functions ‘Takedata () a function to acce| for subjects English, Maths an Show data () function to display all t Code a main function that implements pt values for admin, sname and student marks ‘d Science. This function calls etotal (). the data members on the screen. the above class. (17 marks)

You might also like