Object Oriented Programming 2070

Tribhuwan University
Institute of Science and Technology
2070
Bachelor Level / Third Semester / Science
Computer Science and Information Technology ( CSC-202 )
( Object Oriented Programming )
Full Marks: 60
Pass Marks: 24
Time: 3 hours
Candidates are required to give their answers in their own words as far as practicable.
The figures in the margin indicate full marks.

Section A

Attempt any two questions: (2x10=20)

1. Write any four features of object-oriented programming. Differentiate between operator overloading and function overloading.

10 marks view

2. Why do we need the preprocessor directive # include < io stream >? Describe the major parts of a C++ program.

10 marks view

3. What do you mean by overloading of a function? When do we use this concept? Explain with example.

10 marks view

Section B

Attempt any eight questions: (8x5 = 40)

4. What do you mean by dynamic initialization of variables?

5 marks view

5. Explain with example of an inline function.

5 marks view

6. What is virtual function? Explain.

5 marks view

7. Differentiate between structure and class in terms of access modifier

5 marks view

8. What are the characteristics of constructor?

5 marks view

9. Differentiate between overriding vs overloading.

5 marks view

10. Explain the function templates with example.

5 marks view

11. How can we define our functions inside the namespace and use them outside?

5 marks view

12. Write the syntax and use of get line () and write () functions.

5 marks view

13. Explain the friend function with its syntax.

5 marks view