1(a)
Explain with example preprocessor directive available in C++.
8 M
1(b)
Explain dynamic memory allocation. What is the difference between static and dynamic memory allocation.
7 M
1(c)
Explain object-oriented design and object based design. Give example.
5 M
2(a)
What is a literal constant? Explain with example.
6 M
2(b)
What are the difference between a reference and a pointer? Give advantages of pointer.
8 M
2(c)
Distinguish between L-value and R-value. Give example for each .
6 M
3(a)
Discuss the following with example : i) Unary operators; ii) The Bitwise operator.
6 M
3(b)
Explain the switch statement with syntax. Write a program in C++ to find the roots of quadratic equation ax2 + bx + c = 0 use switch.
10 M
3(c)
With flowchart ,explain i) For ii) While.
4 M
4(a)
Explain call by value and call by reference parameter method with an example with an example of each.
8 M
4(b)
What is an inline function? Explain with example.
4 M
4(c)
Write a program to find the maximum number in an array use max ( ) function to implement.
8 M
5(a)
What is an exception handling? Name the different types of exception and explain the exception handling mechanism.
10 M
5(b)
Explain he different throwing mechanism. Write a program to realize the expression and handle the exception \( R=\dfrac{z}{y-x}\)/
10 M
6(a)
With simple C++ program, using class, explain the term, object, private, public, constructor and destructor.
10 M
6(b)
Write a C++ program to define a class 'stack' including member function push ( ) and pop ( ) and appropriate data members to perform the stack operation.
10 M
7(a)
What is operator overloading? Write a C++ program to add two complex members by overloading the operator +.
10 M
7(b)
What are new and delete operator? Explain overloaded operator new and delete with example.
10 M
8(a)
What is inheritance? Discuss the different types of inheritance?
10 M
8(b)
Explain what is the relationship between class, derived class and protected membes, with the help of examples.
10 M
More question papers from Programming in C++