Skip to content
IT-304 · Object Oriented Programming & Methodology/Important Questions

Object Oriented Programming & Methodology (IT-304) - Important Questions

  1. 7 Marks High Priority Asked: 2025, 2024

    What are the unique advantages of the object-oriented programming paradigm?

    Appeared 2x (2025, 2024)

  2. 7 Marks High Priority Asked: 2025, 2024

    Explain function overloading with example.

    Appeared 2x (2025, 2024)

  3. 7 Marks High Priority Asked: 2025, 2022

    How is Data Encapsulation different from Information Hiding? Explain with example.

    Appeared 2x (2025, 2022)

  4. 7 Marks High Priority Asked: 2025, 2020

    What is an inline function, how is a function declared inline with syntax, and what are the advantages of inline functions?

    Appeared 3x (2025, 2020)

  5. 7 Marks High Priority Asked: 2025

    Explain about call by reference and return by reference with program.

    Appeared 1x (2025)

  6. 7 Marks Medium Priority Asked: 2024

    Explain call by reference and return by reference with a program.

    Appeared 1x (2024)

  7. 7 Marks Medium Priority Asked: 2024

    In C++, a variable can be declared anywhere in the scope. What is the significance of this feature?

    Appeared 1x (2024)

  8. 7 Marks Medium Priority Asked: 2023

    What are the features of object-oriented programming and how is C++ different from C?

    Appeared 1x (2023)

  9. 7 Marks Medium Priority Asked: 2023

    Explain ways to take input in a C++ program.

    Appeared 1x (2023)

  10. 7 Marks Medium Priority Asked: 2023

    Write a C++ program demonstrating inline member functions and discuss similarities and differences between macros and inline functions.

    Appeared 1x (2023)

  11. 7 Marks Low Priority Asked: 2022

    What concepts or techniques are used in object-oriented approach for handling system complexity?

    Appeared 1x (2022)

  12. 7 Marks Low Priority Asked: 2022

    Write C++ overloaded Max function to return the larger of two integers, two reals, or two strings.

    Appeared 1x (2022)

  13. 7 Marks High Priority Asked: 2025, 2024, 2020

    How polymorphism is achieved at compile time and at run time

    Appeared 3x (2025, 2024, 2020)

  14. 7 Marks High Priority Asked: 2025, 2022

    Difference between overloading and overriding and role of binding in polymorphism with example

    Appeared 2x (2025, 2022)

  15. 7 Marks High Priority Asked: 2025, 2022

    Write a C++ program with a Student class including a validateExamMarks() method to validate examination marks in the range 65 to 100 inclusive.

    Appeared 2x (2025, 2022)

  16. 7 Marks High Priority Asked: 2024, 2023

    Compare differences between C++ structure and C++ class, illustrated with an example program.

    Appeared 3x (2024, 2023)

  17. 14 Marks Medium Priority Asked: 2024

    Describe the mechanism of accessing data members and member functions inside the main program, inside a member function of the same class, and inside a member function of another class.

    Appeared 1x (2024)

  18. 7 Marks Medium Priority Asked: 2024

    Write a program to explain the concept of array of objects.

    Appeared 1x (2024)

  19. 7 Marks Medium Priority Asked: 2024

    What is a constructor? Write a program to demonstrate the copy constructor and its use.

    Appeared 1x (2024)

  20. 7 Marks Medium Priority Asked: 2024

    Write a C++ program for area of rectangle and circle using run time polymorphism

    Appeared 1x (2024)

  21. 7 Marks Medium Priority Asked: 2023, 2018

    Explain the purpose of constructors in C++ with examples and how constructors are invoked, including constructor overloading and calling one constructor from another.

    Appeared 2x (2023, 2018)

  22. 14 Marks Medium Priority Asked: 2023

    Differentiate with example between abstract and non-abstract classes and between runtime and compile-time polymorphism

    Appeared 1x (2023)

  23. 14 Marks Low Priority Asked: 2022

    Create Telephone base class and ElectronicPhone derived class overriding Ring() to illustrate polymorphic method

    Appeared 1x (2022)

  24. 7 Marks Low Priority Asked: 2022

    Write a C++ class to store marks of 3 subjects with setters/getters and a getResults() method to print grade based on average.

    Appeared 1x (2022)

  25. 7 Marks High Priority Asked: 2025, 2023, 2022, 2020, 2019

    What is inheritance, what are its advantages/importance, and explain different types of inheritance including multilevel and multiple inheritance with examples, diagrams and syntax.

    Appeared 6x (2025, 2023, 2022, 2020, 2019)

  26. 7 Marks High Priority Asked: 2025, 2020

    Define operator overloading and explain how to overload unary and binary operators with syntax and example program.

    Appeared 2x (2025, 2020)

  27. 7 Marks Medium Priority Asked: 2024

    Explain Access Specifiers with respect to inheritance.

    Appeared 1x (2024)

  28. 7 Marks Medium Priority Asked: 2024

    Explain the order in which base class and derived class constructors are called when a derived class object is created.

    Appeared 1x (2024)

  29. 7 Marks Medium Priority Asked: 2023

    Explain unary operator overloading with an example and discuss its pros and cons.

    Appeared 1x (2023)

  30. 7 Marks Low Priority Asked: 2022

    Write a C++ program to define derived class constructors that initialize base class members, including explicit invocation of a base class constructor that has no default constructor.

    Appeared 2x (2022)

  31. 7 Marks Low Priority Asked: 2022

    Define a Complex number class with member functions for addition, subtraction and multiplication.

    Appeared 1x (2022)

  32. 7 Marks Low Priority Asked: 2022

    Create a class called Employee whose objects are records for an employee. This class will be derived class of the class Person which you will have to copy into a file of your own and compile. An employee record has an employee's name (inherited from the class Person), an annual salary represented as a single value of type double, a year the employee started work as a single value of type int and a national insurance number, which is a value of type String. Your class should have a reasonable number of constructors and accessor methods, as well as an equals method. Write a main( ) method to fully test your class definition.

    Appeared 1x (2022)

  33. 7 Marks Low Priority Asked: 2022

    What ambiguity arises in multiple inheritance and how can it be overcome, explained with an example.

    Appeared 1x (2022)

  34. 7 Marks High Priority Asked: 2025, 2022

    What is friend function? Explain application of friend function with suitable example.

    Appeared 2x (2025, 2022)

  35. 7 Marks High Priority Asked: 2025, 2020

    Explain virtual function with suitable example and its purpose

    Appeared 2x (2025, 2020)

  36. 7 Marks High Priority Asked: 2025

    Explain i) new and delete keywords and ii) this pointer.

    Appeared 1x (2025)

  37. 7 Marks Medium Priority Asked: 2024

    Explain, with an example, how you would create space for an array of objects using pointers.

    Appeared 1x (2024)

  38. 9 Marks Medium Priority Asked: 2023, 2020, 2018

    Explain/discuss virtual functions and friend functions (including static/pure functions, syntax, and role of virtual function and abstract class) with examples

    Appeared 3x (2023, 2020, 2018)

  39. 7 Marks Medium Priority Asked: 2023

    Explain dynamic memory management in C++ using new and delete, with example of allocating and clearing memory used by an object.

    Appeared 2x (2023)

  40. 7 Marks High Priority Asked: 2025, 2024

    What are exceptions? Distinguish between synchronous and asynchronous exceptions.

    Appeared 2x (2025, 2024)

  41. 7 Marks High Priority Asked: 2025, 2020

    What are stream classes and stream errors? Explain various stream classes including input and output streams with examples.

    Appeared 2x (2025, 2020)

  42. 7 Marks High Priority Asked: 2025

    Write a short note on disk file I/O with streams and on data hiding.

    Appeared 1x (2025)

  43. 7 Marks Medium Priority Asked: 2024

    Explain overloaded function templates with a suitable example program.

    Appeared 1x (2024)

  44. 14 Marks Medium Priority Asked: 2023

    Explain with an example file I/O and debugging pointers.

    Appeared 1x (2023)

  45. 7 Marks Medium Priority Asked: 2023

    Explain the different keywords used for handling runtime exceptions.

    Appeared 1x (2023)

Go to where you left off?

Quick Add to Notes

Save questions, your own notes and screenshots into notes filed by unit. It takes a free account.

Create free account

Have an account? Log in