100% found this document useful (1 vote)
293 views3 pages

Object Oriented Programming (Using C++) Question Paper 2008 of BCA 2nd Year of Punjab University

The document is a past question paper on Object Oriented Programming (Using C++) from Punjab University. It contains 18 questions across 3 sections - A, B and C. Section A has 4 questions, Section B has 4 questions and Section C is compulsory with 9 sub-questions. The questions cover a wide range of OOP concepts in C++ like classes, data encapsulation, inheritance, function overloading, polymorphism, templates, exception handling etc. and require students to define classes with data members and member functions, differentiate between concepts, write programs to demonstrate concepts and more.

Uploaded by

sureshkaswan
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
100% found this document useful (1 vote)
293 views3 pages

Object Oriented Programming (Using C++) Question Paper 2008 of BCA 2nd Year of Punjab University

The document is a past question paper on Object Oriented Programming (Using C++) from Punjab University. It contains 18 questions across 3 sections - A, B and C. Section A has 4 questions, Section B has 4 questions and Section C is compulsory with 9 sub-questions. The questions cover a wide range of OOP concepts in C++ like classes, data encapsulation, inheritance, function overloading, polymorphism, templates, exception handling etc. and require students to define classes with data members and member functions, differentiate between concepts, write programs to demonstrate concepts and more.

Uploaded by

sureshkaswan
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 3

Object Oriented Programming (Using C++) Question Paper 2008 of BCA 2nd Year of Punjab University

10:21 AM No comments OBJECT ORIENTED PROGRAMMING (USING C++) Time allowed: 3 Hours Max. Marks: 90 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)

You might also like