0% found this document useful (0 votes)
38 views3 pages

C-- IMP

Uploaded by

prashant.iron1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views3 pages

C-- IMP

Uploaded by

prashant.iron1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

C++ Important Questions

Don’t get scared by seeing a number of questions. Most of them are the same, that's
why I grouped them together.
(Warning : I created below important questions list based on my experience and last 5 years question papers. So don’t expect
only these questions will come in your exams. But first prepare these questions and once you will get time prepare other topics
also)

Questions highlighted in red color or most important one.

1. State any six principal advantages of object-oriented programming.


2. Writing any six important features of object-oriented programming.

3. What is a Friend Function? Give any four characteristics of Friend Function.


4. Write any three characteristics of Friend function.
5. What is Friend Function? Write four rules for friend function.

6. Explain different types of inheritance with a suitable diagram.


7. Explain any three types of inheritance.

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

9. State any eight rules for operator overloading.


10. Explain operator overloading with a suitable example. Write any two characteristics of operator
overloading.

11. Explain the concept of function overloading with an example.

12. What is Polymorphism? Explain the different types of Polymorphism with examples.
13. What is polymorphism? Explain how it is achieved by: (i) Compile-time (ii) Run Time

14. What is a Virtual Function? Write any six syntax rules of Virtual Function.
15. List any six characteristics of virtual function.
16. Write any eight basic rules for virtual function that satisfies the compiler requirements.

17. What is a pointer in C++? Give the advantages of using pointers.


18. What is a pointer in C++? Give a suitable example.

19. Explain basic type to Class Type Conversion with an example.


20. Explain any two types of type conversion in C++ with an example.

21. Explain the syntax of C++ program structure with an example.


22. What is Class? Explain the general form of class declaration.

23. What is constructor and destructor? Explain each with the help of a suitable example.
24. What is Constructor and Destructor? Explain each with the help of a suitable example.
25. What is a constructor in C++? State any four special characteristics of a constructor function.
26. What is Constructor? State any four syntax rules for writing constructors.
27. Explain Constructor and Destructor with an example in C++.

28. Describe how function are defined inside and outside a class in C++?
29. Explain how function of a class can be defined outside the class definition and inside the class
definition with example in C++.

30. Define following terms in C++ file handling.


(i) Ifstream
(ii) Ofstream
(iii) Fstream
31. Explain following functions related to file handling in C++.

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

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)

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

Programs

1. Write a C+ program which finds a fibonacci series of n'' terms.


2. Write a C+ program to find factorial of a number during execution by using constructor function. (Also
learn how to do without using constructor)
3. Write C++ program to read any integer and then check whether it's prime or not prime no.
4. Write a function in C++ to accept 10 integers. Find the smallest integer and print it. (Also learn for how
to find largest)
5. Write class based C + + program to accept two integers and find it’s G.C.D. (Greatest Common Divisor).
6. Write a C++ program to accept 10 integers in an array and find its sum and average.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy