Object Oriented Programming 2073

Question Paper Details
Tribhuwan University
Institute of Science and Technology
2073
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:(2 x 10 = 20)

Official Answer
AI Generated Answer

AI is thinking...

1. What is object-oriented approach? How is it different from structured programming approach? Discuss the features of object-oriented languages in detail.

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

2. How can we use inheritance for code reusability? Discuss multiple inheritance with suitable example. 

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

3. What is function overloading? How is it different from function overriding? Write a program that gives an example of function overriding.

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:(8 x 5 = 40) 

Official Answer
AI Generated Answer

AI is thinking...

4. Explain abstraction with example.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

5. Discuss input and output with C in and C out respectively.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

6. Discuss relationship between pointers and arrays.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

7. Explain the use of inline function with example.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

8. What is class? Differentiate it with object.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

9. How can you define a member function outside a class ? Explain with suitable example. 

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

10. Write a program that increases an integer value by 1 (one) overloading + + operator.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

11. Discuss importance of template. Write syntax of function template. 

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

12. Discuss different keywords used in exception handling.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...