CSIT 2nd Semester
Object Oriented Programming Board Question Paper 2082 Old Course


CSC 166-2082 ✡
Tribhuvan University
Institute of Science and Technology
2082
Bachelor Level/First Year/Second Semester/Science
Computer Science Information Technology (CSC 166)
(Object Oriented Programming)
(Old Course)
Full Marks:60 Pass Marks:24 Time:3 hours

Candidates are required to give their answers in their own words as for as practicable.
The figures in the margin indicate full marks

Section A
Long Answer Questions
Attempt any Two question.
[2x10=20]
1.

What is base class? Explain the types of inheritance.

2.

Define class and object. How do you access members of a class? Write a program to demonstrate the concept of passing objects as function parameters and returning objects.

3.

List the restrictions on operator overloading. How do you convert user defined data type to another user defined data type? Explain with an example.

Section B

Attempt any Eight questions

[8x5=40]
4.

Differentiate between structure programing and object oriented programming approach.

5.

Define inline function and namespace. What are the tasks of new and delete?

6.

How do you create and call destructor? Illustrate with an example.

7.

What are the advantages of inheritance? How do you overload unary operator?

8.

Distinguish between virtual and pure virtual function. Why do we need friend function?

9.

Write the hierarchy of stream class. List some formatted and unformatted Input Output functions in file handling.

10.

What is file access pointer? Write a program to copy the content of one file to another?

11.

Define exception. Write a template function to add the different types of two numbers.

12.

What is class template? Define virtual base class, concrete class and polymorphism.