problem 1:
(a) Describe why Object Oriented Programming approach is better than Structured Programming Approach.
(b) prepare the simple C++ program to describe basic structure of C++ programming.
(c) Describe the usage of the following C++ operators with the help of the ex program.
(a) sizeof operator
(b) Logical Operators
(c) Scope resolution operator
problem 2:
(a) describe class Book with all basic attributes like title, author, publisher, price etc. Define default constructor, member functions display_data() for displaying the Book details. Use suitable access control specifiers in this program.
(b) Describe the following terms in the context of object oriented programming. Also describe how these concepts are implemented in C++ by giving the ex program for each.
(a) Abstraction
(b) Encapsulation
(c) Operator Overloading
(d) Static Member
problem 3:
(a) Define polymorphism? What are various forms of polymorphism? Describe implementation of polymorphism with the help of the C++ program.
(b) Define friend function? How it is implemented in C++? Describe advantages of using friend function with the help of the ex.
problem 4 :
(a) Describe the following functions for manipulating file pointers, with the help of ex program:
• seekg()
• seekp()
• tellg()
• tellp()
(b)describe exception? How an exception is different from an error? Describe how exceptions are handled in C++, with the help of the ex program.
problem 5:
(a) What do you understand by template? prepare suitable statements to create a template class for Stack data structure in C++.
(b) What is inheritance? What are various types of inheritance? Describe advantages of using inheritance.