Explain the concept of data abstraction and encapsulation in OOP.
[3 marks]Describe the concept of enumerated data Type in C++ with a proper example.
[4 marks]What is call by reference and return by reference? Explain with a suitable example.
[7 marks]Write any three benefits of Object Oriented Programming.
[3 marks]Explain the use of C++ operators: new and delete.
[4 marks]What is function polymorphism? Explain it with an appropriate C++ program.
[7 marks]Write characteristics of static data member and static member function. Explain the concept of static data member and static member function with a C++ program.
[7 marks]Explain basic to class type conversion with appropriate example.
[3 marks]Write a program to find out product of two private data members p and q of two classes Xand Yusing a common friend function. Assume that the prototype for both the classes will be: void product(X, Y);
[4 marks]What is a constructor? Explain different types of constructors with an appropriate example.
[7 marks]Explain inline function with suitable example.
[3 marks]What is the use of destructor in C++? Explain with a suitable example.
[4 marks]Explain runtime polymorphism. Explain and demonstrate, how virtual function to achieve runtime polymorphism?
[7 marks]Describe the use of "this" pointer with an example.
[3 marks]Explain following functions with example 1. put() 2. get()
[4 marks]Explain various forms of inheritance with diagrammatic illustrations. Also explain any one type of inheritance with an appropriate program.
[7 marks]Explain visibility mode with its types.
[3 marks]Write a program that uses following functions: width(), precision().1
[4 marks]Write a following C++ program to explain objects as function arguments. Define a class name “Point” with two data member variable x and y, member function for getting the value of member variable from user and second member function for displaying the value of member variable. Define third member function that takes another Point object as an argument and returns the Euclidean distance between the two Point objects. [for point P(x ,y ) and point11 Q(x ,y ) Euclidean distance = sqrt((x -x )2 + (y -y )2)]
[7 marks]Describe various stream classes for console I/Ooperations.
[3 marks]Write a C++ program to handle Exception “division by zero” situation.
[4 marks]What is the general format of function template? Write a C++ program for bubble sort using template functions.
[7 marks]Explain ios::app, ios::ate and ios::trunc flags.
[3 marks]Write a program for swapping two values of different data types using template.
[4 marks]Explain STL with its core components.
[7 marks]