Tuesday, November 6, 2018

Question Paper 2017 of BCA 2nd Year of Punjab University Question paper


Punjabi University Question Paper
Course: BCA
OBJECT ORIENTED PROGRAMMING (USING C++)
Time allowed: 3 Hours
Max. Marks: 90

Study Materials Description : 2017 Punjabi University B.C.A Computer Application Object Oriented Programming (Using C++) Question Paper 2017 of BCA 2nd Year of Punjab University Question paper

ATTEMPT FIVE QUESTIONS IN ALL, SELECTING TWO QUESTIONS EACH FROM SECTION - A AND SECTION – B SECTION C IS COMPULSORY.

SECTION - A

1. Differentiate between

(a) Procedural Analysis and Object oriented analysis.

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

2.(a) What are pre-processor directives? Explain their use with the help of an example.

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

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

3. (a) Define a class "ACCOUNT". Include following members:

Data Members: Name of Depositor, Account No., Type 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) What are array of objects ? Explain with example with detail. (12,6)

4.(a) Differentiate between Pass By Value and Pass By Reference.

(b) What are different types of function declarations? How will you declare a function outside the class?

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


SECTION – B

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

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

6. (a) What are abstract classes? Explain their use.

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

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

7. Differentiate between

(a) Private & Public Inheritance

(b) Stacks and Queues

(c) Multiple and multilevel inheritance

8. (a)What is linked list? What are 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 between

(ii) Deletion – at given position

(iii)Display elements.

SECTION – C

9. (a) What is data hiding?

(b) Explain input and output streams.

(c) Explain scope resolution operator.

(d) What are destructors? Give example.

(e) What is operator overloading?

(f) Differentiate between single and multiple inheritances.

(g) What are base and derived classes?

(h) What are various methods to traverse a tree?

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

0 comments:

Post a Comment