Skip to content
CS-504 (B) · Object Oriented Programming/Unsolved PYQ Paper

CS-504 (B) Object Oriented Programming - Dec 2023 Question Paper

  1. Unit 2
    7 Marks
    aList iterative statements in C++. Explain each with suitable example.
  2. Unit 3
    7 Marks
    bDefine pointer? Write a C++ program to read the array of integers and print the biggest and smallest element among given array elements using pointers.
  3. Unit 4
    7 Marks
    aList the various preprocessor directives in C++. Explain with suitable example.
  4. Unit 5
    7 Marks
    bExplain the concept of default arguments using C++ program.
  5. Unit 5
    7 Marks
    aWhat is function overloading? What are the principles of function overloading?
  6. Unit 1
    7 Marks
    bWhat are the different types of variables scopes? Explain with an example.
  7. Unit 5
    7 Marks
    aExplain the difference between private, protected and public access specifiers in C++ programming. How do they affect the accessibility of class members? Explain with examples.
  8. Unit 5
    7 Marks
    bWhat is the "this" keyword in C++ programming? How is it used to refer to the current object? Explain with example.
  9. Unit 5
    7 Marks
    aHow does scope resolution operator (::) work in C++ programming? Explain with examples.
  10. Unit 5
    7 Marks
    bDiscuss the concept of virtual functions in inheritance in C++. How can we use virtual functions to achieve dynamic binding and polymorphism in derived classes? Explain with examples.
  11. Unit 5
    7 Marks
    aExplain how we can use constructors and destructors in inherited classes in C++. How do they work in the inheritance hierarchy?
  12. Unit 4
    7 Marks
    bDefine template. What is the need for templates in programming? Write C++ code to declare a Template class.
  13. Unit 5
    7 Marks
    aWhat are input and output streams in C++? How are they useful in handling data?
  14. Unit 5
    7 Marks
    bWrite a C++ program to read the content of one file and copy to another file.
  15. Unit 5
    5 Marks
    aFriend keyword
  16. Unit 5
    4 Marks
    bNew and delete operators
  17. Unit 1
    5 Marks
    cCall by value and call by reference
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