1) What do you understand by recursion? Write a recursive program in C++ to print Fibonacci series up to nth number.
2) Write a program in C++ to determine sum of digits of a number.
3)(a) Write a program in C++ to read a line and determine the number of vowels and consonants present in the given line.
(b) Write a program in C++ to compare the two given strings using a pointer.
4)(a) What is meant by a union? Write down the difference between a structure data type and a union.
(b) What do you mean by a nested class? How is a nested class declared and defined in C++?
5)(a) Write down the merits and demerits of copy constructor.
(b) What do you mean by a container class? Write down the pros and cons of declaring container classes.
6)(a) Write a program in C++ using operator overloading to determine a factorial of a given number.
(b) Describe different techniques of defining a pure virtual function.
7) Write brief notes on the following:
(a) Early binding and late binding.
(b) Multiple inheritance.