LPU C++

1
CSE 202: Object Oriented Programming Time Allowed: 1hr 30 min Max Marks:50 1. This paper contains 5 questions on 1 page. 2. Answer all questions in serail order. 3. The marks assigned to each question are shown at the end of each question in square brackets. 4. All questions are compulsory. Q1 a) Define Data Abstraction b) Comment on Dynamic Binding c) Elaborate Local class with an example d) Differentiate between Structures and classes e) Use of New and Delete operator [5*2=10] Q2 Elaborate Classes and objects in detail Discuss the various access specifiers used and features of OOP? [10] Q3 Elaborate Constructor and detructor in detail with appropriate example,and also discuss the importance of copy constructor ? Q4 discuss operator overloading write a program to overload ++ operator [10] Q5. a) Discuss inline functions how inline functions are different from a simple function discuss with appropriate example? [5] b) Use of Default arguments in functions elaborate it in detail with appropriate example? [5]

Transcript of LPU C++

Page 1: LPU C++

CSE 202: Object Oriented Programming

Time Allowed: 1hr 30 min Max Marks:50

1. This paper contains 5 questions on 1 page.2. Answer all questions in serail order.3. The marks assigned to each question are shown at the end of each question in square brackets.4. All questions are compulsory.

Q1 a) Define Data Abstractionb) Comment on Dynamic Bindingc) Elaborate Local class with an exampled) Differentiate between Structures and classese) Use of New and Delete operator [5*2=10]

Q2 Elaborate Classes and objects in detail Discuss the various access specifiers used and features of OOP? [10]

Q3 Elaborate Constructor and detructor in detail with appropriate example,and also discuss the importance of copy constructor ?

Q4 discuss operator overloading write a program to overload ++ operator [10]

Q5. a) Discuss inline functions how inline functions are different from a simple functiondiscuss with appropriate example? [5]

b) Use of Default arguments in functions elaborate it in detail with appropriate example? [5]