OOPC (3rd) Dec 2020 Past Paper PDF
Document Details
Uploaded by RoomierJadeite4562
Punjabi University, Patiala
2020
BCA
Tags
Related
Summary
This is a BCA 3rd Semester past paper for Object-Oriented Programming using C++, from December 2020. The paper contains questions on various aspects of OOP, including pointer variables, functions, classes, and constructors. It also includes a section on dynamic memory allocation and destructors.
Full Transcript
f4'srlzlto losas/N Total No. of sheet used 01 Total No. of Questions: 09 Subject Object Oriented Programming using C++ Class BCA 3'd Semester Paper...
f4'srlzlto losas/N Total No. of sheet used 01 Total No. of Questions: 09 Subject Object Oriented Programming using C++ Class BCA 3'd Semester Paper BCA-215 Title of Paper Object Oriented Programming using C++ Time Allowed 3 Hours Maximum Marks: 75 Note: Candidates are required to attempt five questions in all selecting at least two question. f.om sections A and B. section c is compulsory. "u"h SE,CTION A Explain the various characteristics of object oriented programming languages' 15 Ql. Diicuss in detail various advantages and disadvantages of object oriented programming languages. Wtrat is a pointer variable? What are the applications of pointer variable? What 15 Q2. are its advantages and disadvantages? What operations can be performed on pointer variables? What are basic data and derived data types rvhich can be expressed in pointer variables? Differentiate between an iterative function and a recursive function. Explain 15 Q3. with examples. Which one will you prefer to use in rvhich circumstances? Explain the concept of class in C++. What is its importance? Horv do you 15 Q4. declare a class in c++? Explain with examples. Explain the concept of data rnembers and member functions in a class? SECTION B Qs. What is the purpose of friend functions and friend classes? Explain with the 15 help of suitable examples' Q6. what is a default constructor'? what is its significance? In what way it is 15 equivalent to a constructor having default arguments? What are various types of default constructors? Explain lvith examples' Q7. what do you mean by ooerator overloading? which operators cannot be 15 overloaded? How can we overload ttnary and binary operators? Expiain giving suitable examPles. Write a program in C++ to demonstrate the difference between compile time 15 Q8. and run time polymorPhism. SECTION C Qe. a) What are conditional oPerators? 03 b) What is function overloading? 03 c) What is the use THIS Pointer? 03 di What are the merits and demerits of dynamic memory allocation? 03 e) What is a destructor? What is its significance? 03