Object Oriented Programming 2069

Question Paper Details
Tribhuwan University
Institute of Science and Technology
2069
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

Official Answer
AI Generated Answer

AI is thinking...

Attempt any two questions: (2x10=20)

Official Answer
AI Generated Answer

AI is thinking...

1. Differentiate between structural programming approach and object oriented programming approach. Explain the inheritance, polymorphism with example.

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

2. How is a member function of a class defined? Define friend function. What are the merits and  demerits of using friend function? Explain.

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

3. Define constructor, list some of the special properties of the constructor functions

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

Section B

Official Answer
AI Generated Answer

AI is thinking...

Attempt any eight questions: (8x5 = 40)

Official Answer
AI Generated Answer

AI is thinking...

4. Explain the do while structure.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

5. Explain the inline function with example.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

6. How is dynamic initialization of objects achieved?

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

7. What are the importance of destructors?

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

8. What is an operator function? Explain with syntax.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

9. Explain with example, how you create space for array of object using pointers?

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

10. Explain the features of I/O system supported by C++.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

11. Differentiate between overloaded functions and function templates.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

12. What are the main advantages of using exception handling mechanism in a program?

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

13. What are the major differences between overriding and overloading?

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...