Object Oriented Programming 2070

Question Paper Details
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

Official Answer
AI Generated Answer

AI is thinking...

Attempt any two questions: (2x10=20)

Official Answer
AI Generated Answer

AI is thinking...

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

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

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. What do you mean by dynamic initialization of variables?

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

5. Explain with example of an inline function.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

6. What is virtual function? Explain.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

8. What are the characteristics of constructor?

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

9. Differentiate between overriding vs overloading.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

10. Explain the function templates with example.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

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

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

13. Explain the friend function with its syntax.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...