Bsc Csit Nepal

2073

Object Oriented Programming

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

Long Questions:

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

  1. What is object-oriented approach? How is it different from structured programming approach? Discuss the features of object-oriented languages in detail.
  2. How can we use inheritance for code reusability? Discuss multiple inheritance with suitable example.
  3. What is function overloading? How is it different from function overriding? Write a program that gives an example of function overriding.

Short Questions

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

  1. Explain abstraction with example.
  2. Discuss input and output with C in and C out respectively.
  3. Discuss relationship between pointers and arrays.
  4. Explain the use of inline function with example.
  5. What is class? Differentiate it with object.
  6. How can you define a member function outside a class ? Explain with suitable example.
  7. Write a program that increases an integer value by 1 (one) overloading ++ operator.
  8. Discuss importance of template. Write syntax of function template.
  9. Discuss different keywords used in exception handling.