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