📘 Access 10,000+ CBC Exams With Marking Schemes

Prepare your learners for success! Get CBC-aligned exams for Grades 1–9, PP1–PP2, Playgroup and High School - all with marking schemes.

Browse Exams

Instant download • Trusted by 100,000+ teachers • Updated weekly

Computer Programming Question Paper

Computer Programming 

Course:Bachelor Of Commerce

Institution: Kenyatta University question papers

Exam Year:2008



KENYATT A UNIVERSITY
UNIVERSITY EXAMINATIONS 2007/2008
INSTITUTE OF OPEN LEARNING
EXAMINATION FOR THE DEGREE OF BACHELOR OF COMMERCE
BMS 201: COMPUTER PROGRAMMING
DATE: Tuesday 8th January 2008
TIME: 10.30am -12.30pm
INSTRUCTIONS:
./ Question 1 is Compulsory and carries 25 marks
.'/
Answer Question 1 and any other three questions
./ The University rules and regulations governing the examinations must be
strictly followed.
Question 1 (Compulsory:
25 Marks)
l.a) Define the following terms as applied in Computer Programming;
i.
Computer program
(1 Mark)
11.
Source program
(l Mark)
lll.
Abstraction
iv.
Inheritance
(1 Marks)
v.
Object
(6 Marks)

b)
State and explain the characteristics of a good computer program.
c)
A lecturer is need of calculating the average CAT mark for individual students for two CATs that were marked out of 30 marks for a class of 150 students. Draw a flowchart that can be used to compute and output the average mark for every individual student. (8Marks)

Question 2 (15 Marks)
a)
Discuss the potential benefits that are likely to be realized in an organization that has a team of computer programmers that are conversant with several programming languages. (9 Marks)
b)
State the common rules to both C++ and C languages for naming identifiers. (6 Marks)

Question 3 (15 Marks)
a)
Outline the general structure of a C++ program (7 Marks)
b)
Write a C++ program that can compute the sum and product of two decimal numbers. (8 Marks)

Question 4 (15 Marks}
a)
Discuss the basic steps that are followed in the development of algorithms. (9 Marks)
b)
Illustrate the general form of a class declaration (6 Marks)

Question 5 (15 Marks)
a)
Describe the Hierarchy of C++ data types. (9 Marks)
b)
State and explain the characteristics of a good computer program. (6 Marks)






More Question Papers


Exams With Marking Schemes

End Term 3 Exams

Mid Term Exams

End Term 1 Exams

Opener Exams

Full Set Exams



Return to Question Papers