Differentiate: OOP and POP.
[7 marks]Write the characteristic of static data member and static member function. Explain the concept with a suitable example.
[7 marks]Explain the concept of friend function with a suitable example.
[7 marks]What is a constructor? List the characteristics of a constructor. Explain different types with suitable example.
[7 marks]What is the use of destructor in C++? Explain with a suitable example.
[7 marks]Explain runtime polymorphism. Explain and demonstrate, how virtual function is used to achieve runtime polymorphism?
[7 marks]Define a class name “Point” with two data member: variable x & y and member functions for getting the value for variables from user and displaying the value of variables. 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 point Q(x, y) Euclidean distance = sqrt((x - x)2 + (y - y)2)]
[7 marks]Describe the use of "this" pointer with an example.
[7 marks]Create a class coordinate containing three private variables: x, y and z. Perform operations for incrementing, adding and comparing object(s) by overloading ++, + = & = = operators respectively. Define necessary functions to set and display the variables.
[7 marks]What is inheritance? List different types of inheritance. Explain any one type with a suitable example.
[7 marks]Write a program which uses command line argument to copy the contents of a file A.txt into another file B.txt by reversing case of the characters. E.g. File A.txt: aBCd File B.txt: AbcD
[7 marks]Explain different visibility modes with a suitable example.
[7 marks]Explain various file mode parameters in C++. Write a program to copy the contents of a source file student1.txt to a destination file student2.txt character by character.
[7 marks]Explain various stream classes for console I/Ooperations.
[7 marks]Define Exception. Write a C++ program to handle “division by zero” exception.
[7 marks]Explain STL with its core components.
[7 marks]Write a program for swapping two values of different data types using the concept of templates.
[7 marks]