Bsc Csit Nepal

2072

Object Oriented Programming

Full Marks: 60
Pass Marks: 24
Time: 3 hours

Long Questions:

Attempt any two questions: (2 × 10=20)

  1. Explain the object oriented programming with its advantages. What are the features of object oriented languages? Explain.
  2. Write a program to overload the unary minus operator using friend function.
  3. Explain the role of inheritance in object oriented programming. What is public, private and protected dentation? Explain.

Short Questions

Attempt any eight questions: (8 × 5=40)

  1. Explain the syntax and rules of multiple inheritance in C++ with example.
  2. Explain do/while structure with example.
  3. Explain the Inline function with example.
  4. What is multiple inheritance? Explain with example.
  5. Explain the static class members with example.
  6. Differentiate between macro and function.
  7. Explain the use of break and continue statements in switch case statements in C++.
  8. Explain the different storage classes in C++.
  9. Explain the multilevel inheritance. How is it different from multiple inheritance?
  10. Explain the exceptional handling with example.