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

Comp 212:Object Oriented Programming With C++ November 2010 Question Paper

Comp 212:Object Oriented Programming With C++ November 2010 

Course:Bachelor Of Computer Science

Institution: Kabarak University question papers

Exam Year:2010



KABARAK UNIVERSITY UNIVERSITY EXAMINATIONS
2010/2011 ACADEMIC YEAR
FOR THE DEGREE OF BACHELOR OF COMPUTER SCIENCE

COURSE CODE: COMP 212


INSTRUCTIONS:
Answer question ONE (compulsory) and Any other TWO questions
QUESTION ONE (30 MARKS)
a) What do you understand by Object oriented programming? Differentiate between an
Object and a class in C++. (5 marks)
b) Explain what a Function is and how to declared functions in C++. (5 marks)
c) Being a software consultant based in Nakuru explain the Structure of a C++ program.
(5 marks)
d) You have been appointed as programmers at Copy Cat Ltd. Briefly explain any five
Features of OOPS. (5 marks)
e) As a senior software developer; explain the class Access specifies used in C++.
(5 marks)
f) What do you understand by a stream in C++? Explain standard input and output
streams used in C++. (5 marks)

QUESTION TWO (20 MARKS)
a) As a young programmer discuss re-usability and data abstraction as used in object
oriented programming. (4 marks)
b) Highlight the main Functions of a computer program. (4 marks)
c) With reference to functions with arguments explain Pass by value and pass by
reference as used in C++. (4 marks)
d) Every variable used in a program must be declared and defined List any four Rules to
be considered when defining variable names in C++. (4 marks)
e) Briefly explain the Object oriented paradigm. (4 marks)

QUESTION THREE (20 MARKS)
a) Differentiate between High level and low level programming language. (4 marks)
b) What do you understand by the term Structure and how structures are declared in
C++. (4 marks)
c) Explain briefly the bitwise and compound operators as used in C++. (4 marks)
d) Write a C++ Program to calculate simple interest. (4 marks)
e) Explain the difference between Local and global variables in C++. (4 marks)

QUESTION FOUR (20 MARKS)
a) Every variable used in a program must have its associated type; discuss any four Data
types used in C++. (4 marks)
b) Explain the concept of inheritance as used in C++ programming. (4 marks)
c) With the help of a C++ code explain switch statement. (4 marks)
d) What are the advantages of encapsulation if implemented in any C++ program?
(4 marks)
e) Explain type conversion and the different types of type conversion as used in object
oriented programming. (4 marks)

QUESTION FIVE (20 MARKS)
a) With the help of a code show how the WHILE Loop is used in C++. (4 marks)
b) Write a C++ Program to calculate the area of a circle. (4 marks)
c) What is an array? Write a C++ Program to calculate the sum of a 2x2 matrix.
(4 marks)
d) Write a C++ program to display Odd numbers between 1 and 20. (4 marks)
e) Define polymorphism and state three advantages of polymorphism. (4 marks)






More Question Papers


Popular Exams


Mid Term Exams

End Term 1 Exams

End Term 3 Exams

Opener Exams

Full Set Exams



Return to Question Papers