Q1. Describe the principles of Abstraction, Encapsulation, Inheritance and Polymorphism in the object oriented programming with appropriate illustrations.
Q2. describe how does object-oriented approach distinct from the object-based approach?
Q3. prepare down a short note on Exception Handling method in C++.
Q4. describe how polymorphism is achieved by using the concept of operator overloading. prepare down a program to concatenate strings by using operator-overloading concept.
Q5. Illustrate the fundamental difference between manipulators and ios member functions in terms of implementation? Design the two manipulators, currency which displays “Rs.” in front of currency value and form that print float values with the given specifications:
10 Column width, Right-justified, Two-digit precision, Filling of unused places with * and trailing zeros shown.
Q6. For the given problem definition, prepare down a program in C++ which exhibits run-time polymorphism.
Make a class publication which stores the title, price of a publication. From this class derive two classes book that adds a page count: and tape that adds playing time in fractions of minutes. Each of such three classes must have getdata() and putdata() functions to get and display data from/to the user. prepare down main() function to test the book and tape classes by making instances of them asking the user to fill the data with getdata(), and display data with putdata().
Q7. prepare down six differences between the structure and class in C++.