CS-72 : C++ And Object Oriented Programming-June,2006

  JHARKHAND BOARD You are here
BACHELOR IN COMPUTER APPLICATIONS

Term-End Examination

June, 2006

CS-72 : C + + AND OBJECT ORIENTED PROGRAMMING

Time : 2 hours Maximum Marks : 60

Note : Question no.1 is compulsory. Attempt any three questions from the rest.

1. (a) Explain the concepts of encapsulation and information hiding in an object oriented paradigm,

with the help of an example in C++. (5)

(b) Explain `dynamic binding', with the help of an example. Give its advantages and disadvantages.(5)

(c) Differentiate between function and operator overloading. Also give one example of each.(5)

(d) What are public and private inheritance? Why do we need different access specifiers ?(5)

(e) Explain the utility of the friend function, using an appropriate example.(5)

(f) Write a String class in C++ which should include the member function to calculate the length of the string.(5)

2. (a) If a base class and derived class each include a member function with the same name, which member function will be called by an object of a derived class, and why ?(3)

(b) Write a program to read and display information about employees and managers. Employee is a class that contains employee-no, name and address.Manager class contains all the information of the

employee class and the list of employees working under the manager.(7)

3. (a) Define a class template. What are its advantages ?(4)

(b) Write a template function for exchanging (swapping) the values between two variables. Use this function in main() for int, double and char type of variables.(6)

4. (a) What is an interaction diagram ? Explain the steps involved in drawing such a diagram, with the help of example.(5)

(b) Explain the concept of virtual functions. Give three examples of the use of such functions.(5)

5. Explain the following with the help of an example each : (10)

(i) Static data member

(ii) Object Oriented Programming

(iii) File streams in C++

(iv) Exception handling



  « CS-72 : C++ And Object Oriented Programming-December,2006 Model Papers 2008-2009 »  

  Posted on Thursday, December 4th, 2008 at 10:38 AM under   JHARKHAND BOARD | RSS 2.0 Feed