Get premium membership and access revision papers, questions with answers as well as video lessons.

Object Oriented Programming C++ Question Paper

Object Oriented Programming C++ 

Course:Bachelor Of Computer Science (It Telecommunication)

Institution: Kabarak University question papers

Exam Year:2010



Page 1 of 3
KABARAK UNIVERSITY
UNIVERSITY EXAMINATIONS
2010/2011 ACADEMIC YEAR
FOR THE DEGREE OF BACHELOR OF COMPUTER SCIENCE
COURSE CODE: COMP 212
COURSE TITLE: OBJECT ORIENTED
PROGRAMMING C++
STREAM: Y2S1
DAY: TUESDAY
TIME: 2.00 – 4.00 P.M.
DATE: 14/12/2010
INSTRUCTIONS:
1. Section A is Compulsory and has 30 marks.
2. Attempt any TWO questions from Section B. Each question has 20 marks.
PLEASE TURNOVER
Page 2 of 3
QUESTION 1 (30 MARKS)
a) As a programmer what is a stream? Explain the standard input and output stream as
used in C++ programming language. (5 marks)
b) Explain briefly any five features of the object oriented programming language.
(5 marks)
c) Classes play a major role C++ programming. Explain with a code example the
process of creating objects in a class. (5 marks)
d) Write a C++ program that implements a function declaration, a function definition
and a function call. (5 marks)
e) Explain in details the basic structure of any C++ program. (5 marks)
f) Write a C++ program to find the simple interest. (5 marks)
SECTION B
QUESTION 2 (20 MARKS)
a) Write a C++ program to find the greatest out of three numbers. (4 marks)
b) List down the features that in order to qualify as an algorithm, a sequence of instructions
must possess. (4 marks)
c) Write a C++ program to explain the use of the IF ..ELSE statement in any C++
program. (4 marks)
d) Explain what type conversion is and how it can be achieved in C++. (4 marks)
e) What is a Manipulator? Explain any three types of C++ manipulators. (4 marks)
QUESTION 3 (20 MARKS)
a) Write a C++ program to find the sum of the elements of a 2x2 matrix. (4 marks)
b) As a junior programmer explain briefly the difference between the assembly and
compiler language. (4 marks)
c) What is an argument? Explain the two type of argument passing that can be used in
C++. (4 marks)
d) List any four important features of constructors used in C++ programs. (4 marks)
e) With the help of a good code example; explain the difference between local and
global variables. (4 marks)
Page 3 of 3
QUESTION 4 (20 MARKS)
a) Write a C++ program to find the prime numbers which are less than twenty five.
(4 marks)
b) What is a storage class? Explain the three major types of storage classes that exist in
C++ programming. (4 marks)
c) Explain with code examples the scope of variables in any C++ function. (4 marks)
d) What is a string? Explain any four string functions and how they are used in C++
programming. (4 marks)
e) Being a software developer at kabarak university, State any four advantages of
polymorphism? (4 marks)
QUESTION 5 (20 MARKS)
a) Write a C++ program to find the area of a circle. (4 marks)
b) What is an access specifier? Explain the three major class specifier used in C++.
(4 marks)
c) Explain with a code example the DO…WHILE loop as used in C++ program.
(4 marks)
d) In C++ Identifiers have several naming rules. Highlight any four of these rules. (4 marks)
e) Explain the difference between pass by value and pass by reference used in C++.
(4 marks)






More Question Papers


Popular Exams



Return to Question Papers