How To Exam?

a knowledge trading engine...


Punjabi University 2008-2nd Year B.C.A Computer Application Object Oriented Programming (Using C++) of of University - Question Paper

Tuesday, 05 February 2013 06:55Web

OBJECT ORIENTED PROGRAMMING
(USING C++)

Time allowed: three Hours

Max. Marks: 90

ATTEMPT 5 ques. IN ALL, SELECTING 2 ques. every FROM part - A AND part – B part C IS COMPULSORY.

part - A

1. Differentiate ranging from

(a) Procedural Analysis and Object oriented analysis.

(b) Data encapsulation and Data Inheritance. (9,9)

2.(a) elaborate pre-processor directives? discuss their use with the help of an example.

(b) discuss the structure of an object oriented C++ program.

(c) discuss the use of function main(). (7,7,4)

3. (a) describe a class "ACCOUNT". Include subsequent members:

Data Members: Name of Depositor, Account No., kind of Account, Balance Amount.

Member Function: To assign initial values, deposit amount, with draw after checking balance, To display name and balance. Write main Program to test the program for 10 customers.

(b) elaborate array of objects ? discuss with example with detail. (12,6)

4.(a) Differentiate ranging from Pass By Value and Pass By Reference.

(b) elaborate various kinds of function declarations? How will you declare a function outside the class?

(c) discuss copy constructor with the help of an example. (6, 6, 6)


part – B

5. (a) What is function overloading? Write a program in c++ which has a Function add that is able to concatenate 2 strings, if values passed Are strings and can perform addition, if values are numbers.

(b) discuss inline functions and also create one. (12, 6)

6. (a) elaborate abstract classes? discuss their use.

(b) How can protected members of a class become inheritable?

(c) discuss the concept of nested classes. (6, 6, 6)

7. Differentiate ranging from

(a) Private & Public Inheritance

(b) Stacks and Queues

(c) Multiple and multilevel inheritance

8. (a)What is linked list? elaborate its advantages and disadvantages ?

(b) Write a program to create a linked list and perform-

(i) Insertion – at the beginning, at the end and in ranging from

(ii) Deletion – at provided position

(iii)Display elements.

part – C

9. (a) What is data hiding?

(b) discuss input and output streams.

(c) discuss scope resolution operator.

(d) elaborate destructors? provide example.

(e) What is operator overloading?

(f) Differentiate ranging from single and multiple inheritances.

(g) elaborate base and derived classes?

(h) elaborate different methods to traverse a tree?

(i) discuss the concept of a class. (9*2=18)


( 2 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Punjabi University 2008-2nd Year B.C.A Computer Application Object Oriented Programming (Using C++) of of University - Question Paper