You are on page 1of 1

St.

Mother Theresa Engineering College, Vagaikulam


Department of Computer Science and Engineering
Second Internal Assessment Test


Subject Code: CS2311 Subject Name: Object Oriented Programming
Date: 27-08-2014 Time: 1.5 hours
Part A 5*2=10
1. Write down the syntax for operator overloading.
2. What are the types of inheritance.
3. What is a virtual function.
4. What is
(i) Friend Function
(ii) Friend Class
5. Write the rules to be followed in inheritance.
Part B (8+16+16)
1. Write down the program to overload an Unary operator. (8)
2. Write down the program to overload a Binary operator with and without using friend
function. (16)
3. With neat diagram and example explain the types of inheritance. (16)

You might also like