Object Oriented Programming Using C++ Second Year Sem II: Two Marks Questions
Object Oriented Programming Using C++ Second Year Sem II: Two Marks Questions
9 What is I /O stream ?
13 What is “this” ?
14 What is container?
Write a C++ program to overload + & operator which perform the addition & subtraction of two
matrix of 3by3 respectively.
Describe the concept of call by value & call by reference with an programming example.
Write a C++ program to read a file name and display the content of file on screen.
Explain in detail
i.Data Abstraction & Encapsulation
ii.polymorphism
Write a program for addition of two complex numbers overload ‘+’ binary operator using friend
function
WAP to demonstrate use of static data members and static member function.
Write a program to implement inheritance shown below. Assume suitable member functionCreate
two object
What are the differences between inheriting a class with public & private visibility mode. What is
significance of protected.
Write a c++ program that illustrate how to achieve runtime polymorphism using virtual function.
Explain stream classes and stream class hierarchy for input /output
Write a c++ program to read a file name and display the content of file on screen
What do you mean by function with default parameters ?Explain it with programming example .
Write a program to create a class DATE having data members DD,MM,YY. i) constructor to
initialize the data members ii) show () to display date iii) overload ++ operator to increment
dat
e by one day iv) overload – operator to decrement date by one day .Consider one month =30 days
Write a program to swap two numbers using call by value & call by reference.
What does inheritance means in C++ ?What are differentforms of inheritance ?Give an ex
ample of each
Explain functions seekg, seekp, tellg ,tellp. Give proper example which show how they are used
for setting pointers during file operation
Write short note on (any three)
a)Static & dynamic binding
b)Virtual base class
c)Manipulators
d)Exception Handling
Write a C++ program to read employee details, such as empid, name, dept, salary , joining date for
10 employees. Make use of array of object.
Write a program in C++ to overload preincrement and post increment operator using friend
function.
Explain concept of constructor overloading.
Define exception.
Write a program in C++ to demonstrate the hierarchy of execution of default constructor &
destructor in multilevel inheritance.