0% found this document useful (0 votes)
17 views

C++ Imp Que

Uploaded by

sonkusareakshat
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

C++ Imp Que

Uploaded by

sonkusareakshat
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

C++ Important Questions

(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.

(Q70) Explain different types of inheritance with suitable diagram.


(Q70) Explain any three types of inheritance.

(Q9) Explain the use of scope resolution operator and memory management operators in C++ with
examples.

(Q63) State any eight rules for operator overloading.


(Q63) Explain operator overloading with suitable example. Write any two characteristics of operator
overloading.

(Q15) Explain the concept of function overloading with example.

(Q79) What is Polymorphism? Explain the different types of Polymorphism examples.


(Q79) What is polymorphism? Explain how it is achieved by:
(i) Compile time
(ii) Run Time

(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.

(Q29) What is a pointer in C++? Give the advantages using pointers.


(Q29) What is a pointer in C++? Give suitable example.

(Q66) Explain basic type to Class Type Conversion with example.


(Q66) Explain any two types of type conversion in C++ with example.

(Q16) Explain the syntax of C++ program structure with example.

(Q42) What is Class? Explain general form of class declaration.

(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

(Q6(iii)) Write the size in bytes of following data types :

(i) Float
(ii) Double
(iii) Short int.
(vi) Char
(v) Long double
(iv) Unsigned int.

(Q86/Q87) Define following terms in C++ file handling.


(i) Ifstream
(ii) Ofstream
(iii) Fstream

(Q93) Explain following functions related to file handling in C++.

(i) seekg ()
(ii) tellg ()
(iii) eof()
(iv) open()

(Q83) Write the use of following file pointers with example.


(i) seekg() (ii) seekp() (iii) tellg() (iv) tellp()

(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)

You might also like