Object Oriented Programming 2070
Section A
Attempt any two questions: (2x10=20)
1. Write any four features of object-oriented programming. Differentiate between operator overloading and function overloading.
2. Why do we need the preprocessor directive # include < io stream >? Describe the major parts of a C++ program.
3. What do you mean by overloading of a function? When do we use this concept? Explain with example.
Section B
Attempt any eight questions: (8x5 = 40)
4. What do you mean by dynamic initialization of variables?
5. Explain with example of an inline function.
6. What is virtual function? Explain.
7. Differentiate between structure and class in terms of access modifier
8. What are the characteristics of constructor?
9. Differentiate between overriding vs overloading.
10. Explain the function templates with example.
11. How can we define our functions inside the namespace and use them outside?
12. Write the syntax and use of get line () and write () functions.
13. Explain the friend function with its syntax.