C++ Programming questions
C++ Programming questions
7. Explain the association of dynamic binding and runtime polymorphism, with a suitable example.
9. What is the difference between function overloading and function overriding in C++? Explain the usage
of these concepts.
12. What is a stream in C++? Name the streams generally used for file I/O.
13. What is the difference between a keyword and an identifier? Explain with an example.
14. What is the purpose of exception handling? Explain how an exception is handled in C++.
15. What are the essential properties of object-oriented programming? How does object-oriented
programming differ from structured programming?
16. What do you understand by the scope of a variable? Compare global variable and local variable in
C++.
17. Compare structures and classes in C++. What are empty classes? Explain the purpose of empty
classes.
18. What are static members of a class? What is the utility of having static members?
19. What are constructors? Write the characteristics of a constructor. What are the limitations of a
constructor?
21. What is Polymorphism? What are the advantages of polymorphism? Mention the types of
polymorphism supported by C++.
23. What do you understand by the signature of a method? Briefly discuss the components of the
signature of a method.
25. Discuss the taxonomy of C++ data types with a suitable block diagram.
26. What are Breaking Statements? Give syntax of the following breaking statements:
break
continue
goto
exit
32. Compare multiple inheritance with multilevel inheritance and hierarchical inheritance.
Inline Functions
Exception Handling
Class Templates
Function Templates