Object Oriented Programming 2067

Question Paper Details
Tribhuwan University
Institute of Science and Technology
2067
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. Discuss the feature of the Object-Oriented Programming. Differentiate between Object Oriented Programming and Procedural Oriented Programming.

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

2. What is constructor? Explain their types? Discuss user defined parameterized constructor with suitable example.

10 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

3. Define a clock class (with necessary constructors and member functions) in Object Oriented  Programming (abstract necessary attributes and their types). (Write a complete code in C++ programming language). 

  • Derive a wall_clock class from clock class adding necessary attributes. 
  • Create two objects of wall_clock class with all initial state to 0 or NULL.
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. How can you classify objects? Why dynamic objects are needed?

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

5. What is operator overloading? Explain their types with suitable examples.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

6. Why type conversion is necessary in OOP? Explain with example, the type conversion routine.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

7. What is Inheritance? Explain their types with their suitable examples.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

8. What is friend function? Why it is used in OOP? Explain with an example.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...

9. What is container class? Differentiate container class from inheritance.

5 marks
Details
Official Answer
AI Generated Answer

AI is thinking...