C++ Imp Que
C++ Imp Que
(Q46) What is a Friend Function ? Give any four characteristics of Friend Function.
(Q46) Write any three characteristics of Friend function.
(Q46) What is Friend Function ? Write four rules for friend function.
(Q9) Explain the use of scope resolution operator and memory management operators in C++ with
examples.
(Q80) What is a Virtual Function ? Write any six syntax rules of Virtual Function.
(Q82) List any six characteristics of virtual function.
(Q82) Write any eight basic rules for virtual function that satisfies the compiler requirements.
(Q51/Q55) What is constructor and destructor? Explain each with the help of suitable example.
(Q51) What is Constructor and Destructor? Explain each with the help of suitable example.
(Q51) What is a constructor in C++? State any four special characteristics of constructor function.
( Q51 ) What is Constructor ? State any four syntax rules for writing constructors.
(Q51) Explain Constructor and Destructor with example in C++.
(Q43) Describe how member functions are defined inside and outside a class in C++?
(Q43) Explain how member functions of class can be defined outside the class definition and inside class
definition with example in C++.
C++ Important Questions
(i) Float
(ii) Double
(iii) Short int.
(vi) Char
(v) Long double
(iv) Unsigned int.
(i) seekg ()
(ii) tellg ()
(iii) eof()
(iv) open()
(b) Write a program in C++ to find factorial of entered number. (Ch. 3/Q. 20/Pg. 3-14) or (Ch. 3/Q. 143/Pg.
3-113)
(a) Impliment class GCD which have member function (a/c), which calculate greatest common divisor of two
number entered during program execution. Print() will Print GCD of two number. (Ch. 3/Q. 164/ Pg. 3-124)
(b) Write a C++ program to display a series of 15 term of the Fibonacci Series. (Ch. 3/Q. 18/Pg. 3-13)
C++ Important Questions
(a) Write a program in C++ to read a set of 10 numbers from keyboard and findout largest number in the
given array. (Ch. 3/Q. 158 / Pg. 3-120)
(b) Write a C++ program to find and print the greatest common divisor of two natural numbers. (Ch. 3/Q.
113/Pg. 3-95)
(a) Write a C++ program to accept a set of 10 numbers and print the numbers using pointers. (Ch. 3/Q.
38/Pg. 3-28)
(b) Write a program in C++ using OOP technique to compute circumference of circle. (Ch. 3/Q. 148/Pg.
3-115)
(a) Write a C" program to find the smallest of four given integers using function min() that returns the
smallest of four given integers. The function prototype is as below int min (int, int, int, int). (Ch. 3/Q. 115/Pg.
3-96)
(b) Write a class based C++ program to print 20 terms of fihonacci series. [Hint: Fibonacci series 0, 1, 1, 2,
3, 5,.....] (Ch. 3/Q. 165/Pg. No. 3-125)
(b ) Write a C++ program to accept an array of 10 integers and find smallest and largest element in
array......] (Ch. 3/Q. 167/Pg. No. 3-127)
(a) Write a C++ program to overload add () function which will add two integer [add(int, int)] and three
integers [add (int, int, int)].......] (Ch. 3/Q. 166/Pg. No. 3-126)
(a) Write a C++ program to find smallest in an array of 10 floats using pointer. (Ch. 3/Q. 169/Pg. No. 3-129)
(b) Write a class based program in C++ to find area of a Triangle.(Ch. 3/Q. 170/Pg. No. 3-129)
(a) Write a C++ function to accept two integers and find its G.C.D (Greatest Common Divisor). (Ch. 3/Q.
164/Pg. No. 3-124)
(b) Write a class based C++ program to find the area of a sphere. (Ch. 3/Q. 171/Pg. No. 3-130)
(b) Write a C++ function to find surface area of a sphere. (Ch. 3/Q. 124/Pg. No. 3-101) (Hint: Surface area of
sphere= A=4nr²)
C++ Important Questions
(b) Write a class based C++ program to accept two integers and find its G.C.D. (Greatest Common Factor)
(Ch. 3/Q. 45/Pg. No. 3-34) OR (Q. 164/Pg. No. 3-124)