CU SEC-A-2 Object Oriented Programming in C++, 2022

University of Calcutta question paper, B.Sc. General Semester V, 2022. Object Oriented Programming in C++. Typed in LaTeX, searchable, with a printable PDF.

Open this paper in MathQP

  1. Which feature of object oriented programming indicates code reusability?
  2. Which header file is required in C++ to use OOP?
  3. How many types of access specifiers are provided in OOP (C++)?
  4. Instance of which type of class cannot be created?
  5. Which keyword is used to access the variable in namespace?
  6. Which is the default access specifier of a structure in C++?
  7. The brain of computer system is
  8. What will be the value of p, q after the execution of following code? texttt int p = 10, q = 20; texttt p = p + q; texttt q = p - q; texttt p = p - q;
  9. The verb | | and verb +||+ operators :
  10. Which of the following data type is supported in C++ but not in C?
  11. Write about friend function in C++.
  12. Explain different types of constructors in C++.
  13. Illustrate string handling functions used in C language.
  14. Write a C++ program to find all prime numbers between 1 to 100 .
  15. Write the difference between C and C++ language.
  16. Write about declaration of arrays in C++ language.
  17. Write a C++ program to find the L.C.M. of 24, 34 50 .
  18. Can we overload all operators? If no, then why? Describe Assignment operator and Conversion operator.
  19. Write a C++ program to compare two strings using operator overloading.
  20. What is the similarity between array name and pointer in C? How are they related in C++?
  21. Why copy constructor is called member-wise initialization? Write any three characteristics of the copy constructor in C++.
  22. Calculate the sum dfrac 1 1 + dfrac 1 2 + dfrac 1 3 + dots + dfrac 1 2N .
  23. Is exception handling an advantage of C++ over C? If yes, then explain why?
  24. What are Dynamic Binding and Virtual function? How do Templates work?
  25. Define exception. How is exception handled in C++?
  26. Find the differences between exception handling and traditional error handling.
  27. What is namespace in C++? Write the correct syntax of defining a namespace.
  28. Define copy constructor. How do you access the variables declared in a named namespace?
  29. Find the differences between template class and class template. Explain with example.
  30. Write a C++ program to swap two given numbers.
  31. Write a C++ program to develop a template to find the minimum value as stored in any array.