Home > C++ Programming > Quizzes > C++ Programming Practice Test: Class and Objects
C++ Programming Practice Test: Class and Objects
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 27% Most missed: “What is an abstract class in C++?”
C++ Programming Practice Test: Class and Objects
Time left 00:00
25 Questions

1. How many Destructors are allowed in a Class?
2. When destructors are called?
3. Pick out the correct statement about the override.
4. Where does the abstract class is used?
5. What is the header file for the string class?
6. Which is the correct syntax of defining a pure virtual function?
7. Which is also called as abstract class?
8. Pick out the correct statement.
9. What is the identifier given to string class to declare string objects?
10. Which header file is used to include the string object functions in C++?
11. What is the role of destructors in Classes?
12. How many parameters does a default constructor require?
13. Which of the following can derived class inherit?
14. What is meant by pure virtual function?
15. How constructors are different from other member functions of the class?
16. When a copy constructor is called?
17. Pick out the correct option.
18. What is the role of a constructor in classes?
19. How many types of constructors are there in C++?
20. How destructor overloading is done?
21. Pick the correct statement.
22. Which is used to return the number of characters in the string?
23. Which of the following constructors are provided by the C++ compiler if not defined in a class?
24. Why constructors are efficient instead of a function init() defined by the user to initialize the data members of an object?
25. Where is the derived class is derived from?