Programming in C++
HNBGU MCA Previous Question Paper 2021-22
-
-
Define an object. How is it different from a class? Also
explain various advantages of OOP approach over procedural
approach.
-
How array are declared in C++? Write a C++ program to
explain how an array is passed as an argument to a function.
-
-
What is implicit and explicit type conversion? Write C++
Program to support your answer.
-
What are the character and symbolic constants? Discuss its
needs in C++
-
-
State any four points differentiate between compile time
polymorphism and runtime polymorphism.
-
Write a C++ program to add two complex numbers overloading
'+' operator.
-
What is the meaning of public and private inheritance? Explain
how various trypes of inheritance are implemented in C++.
-
-
Write a C++ program that reads a test file and count the
number of vowel present in it.
-
What is pure virtual function? Discuss its characteristics.
-
-
What is constructor? How is it different from destructor?
Explain with example.
-
Explain with example how default and copy constructor are
implemented in C++.
-
- Explain how exceptions are handeled in C++.
- What is the purpose of using friend function?
-
Write a program using friend function to overload any unary
operator.
-
Write notes on the following:
- Passing structure to a function in C++
- Recursion with its merits arid demerits
- Working of Inline member function