Vous êtes sur la page 1sur 2

Answer to any 4 questions.

3 * 10M = 40Marks

1) Write the OOPS properties?


2) Give an example program on passing object and argument and returning object an argument
3) Write a program to perform common friend ship using friend keyword.
4) Write a program perform biggest of three numbers using multilevel inheritance?
5) Write a program for static member and static member function?
6) Write a program for binary operator overloading on addition operator ( + )
7) What is template and write an example on class template?

Answer to the following questions 5 * 2M = 10 Marks

1. What is friend function? Write the characteristics of friend function


2. What is this pointer? Give an example
3. What is virtual function? Why you need it?
4. What is inheritance and write the syntax?
5. What is polymorphism? Difference between and static and dynamic polymorphism.

Answer to the following questions 10 * 1M = 10 Marks

1. Which of the following is not a type of constructor?


A. Copy constructor B. Friend constructor
C. Default constructor D. Parameterized constructor

2. Which of the following concepts means determining at runtime what method to invoke?
A. Data Hiding B. Dynamic Typing
C. Dynamic binding D. Dynamic loading
3. How many instances of an abstract class can be created?

A. 1 B. 5
C. 10 D. 0

4. Which of the following concepts of OOPS means exposing only necessary information to
client?

A. Encapsulation B. Abstraction
C. Data Hiding D. Data binding

5. cout is a/an __________

A. operator B. function
C. Object D. macro
6. Default access specifiers to members of a class?

A. Private B. protected
C. public D. Need to be assigned

7. Find out the non over loading operators?

A. + B. >>
C. :: D. >

8. Which of the following members do get inherited but become private members in child class
A. Private B. protected
C. public D. All the above

9. There are virtual constructor of a class in c++

A. False B. True

10. The output of this program is


int a = 10;
void main()
{
int a = 20;
cout << a << ::a;
}

a. Syntax error
b. 10 20
c. 20 10
d. 20 20

Vous aimerez peut-être aussi