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

C++ Theory Quetions

This document contains questions about object-oriented programming concepts in C++ including classes, objects, inheritance, encapsulation, functions, references, static keywords, data types, overloading, destructors, constructors, dynamic memory allocation, scope resolution, namespaces, templates, main functions, variables, containers, parameters, libraries, operators, and recursion.

Uploaded by

OTHEOZ NFT
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)
29 views3 pages

C++ Theory Quetions

This document contains questions about object-oriented programming concepts in C++ including classes, objects, inheritance, encapsulation, functions, references, static keywords, data types, overloading, destructors, constructors, dynamic memory allocation, scope resolution, namespaces, templates, main functions, variables, containers, parameters, libraries, operators, and recursion.

Uploaded by

OTHEOZ NFT
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

1. What is the full form of OOPS?

2. What is a class?
3. What is an object?
4. List the types of inheritance supported
in C++.
5. What is the role of protected access
specifier?
6. What is encapsulation?
7. What is an inline function?
8. What is an friend function?
9. What is a reference variable in C++
10. What is role of static keyword on class
member variable?
11. Explain the static member function.
12. What is the data type to store the
Boolean value?
13. What is function overloading?
14. When a class member is defined
outside the class, which operator can be
used to associate the function definition to
a particular class?
15. What is a destructor?
16. Can it be overloaded?
17. What is a constructor?
18. What is a default constructor? Can we
provide one for our class?
19. Which operator can be used in C++ to
allocate dynamic memory?
20. Can we implement all the concepts of
OOPS using the keyword struct?
21. What is the scope resolution operator?
22. What is a namespace?
23. What is a class template?
24. Can a program be compiled without
main() function?
25. Where an automatic variable is stored?
26. What is a container class?
27. What are command line arguments?
28. What are the different ways of passing
parameters to the functions? Which to use
when?
29. What is reminder for 5.0 % 2?
30. Which compiler switch to be used for
compiling the programs using math library
with g++ compiler?
31. Which operator can be used to
determine the size of a data type/class or
variable/object?
32. What is recursion?

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