C++ Questions
C++ Questions
Contd./p-2
Page-2
5Q. Write the answer of the following programs (Answers any five) (10 x 5=50)
1. Write a Program in c++ enter two number and find out different calculation using
different sub functions such as addition, subtraction, multiplication and division.
2. A program to read data such as name, roll number, sex, height, and weight from the
keyboard and display the contents of the class on the screen using single inheritance
concept, which consists of a base class and a derived class.
3. A program to generate a series of fibonacci numbers using the constructor where the
constructor member function has been defined in the scope of class definition itself.
4. Write a Program to creat multilevel inheritance. Creat classes A1, A2 and A3.
5. Write a Program in c++ Enter the number to check this number is a prime number
or not a prime number.
6. Write a program in c++ enter a student name, mark and address on screen but that
store in a file.
7. Write a program in c++ invocation of constructors and destructors.
*****….*****
(Best of luck)