2070
Object Oriented Programming
Full Marks: 60
Pass Marks: 24
Time: 3 hours
Long Questions:
Attempt any two questions: (2 × 10=20)
- Write any four features of object-oriented programming. Differentiate between operator overloading and function overloading.
- Why do we need the preprocessor directive # include < io stream >? Describe the major parts of a C++ program.
- What do you mean by overloading of a function? When do we use this concept? Explain with example.
Short Questions
Attempt any eight questions: (8 × 5=40)
- What do you mean by dynamic initialization of variables?
- Explain with example of an inline function.
- What is virtual function? Explain.
- Differentiate between structure and class in terms of access modifier.
- What are the characteristics of constructor?
- Differentiate between overriding vs overloading.
- Explain the function templates with example.
- How can we define our functions inside the namespace and use them outside?
- Write the syntax and use of getline() and write() functions.
- Explain the friend function with its syntax.