Home > C++ Programming > Quizzes > Introduction to C++ Practice Test
Introduction to C++ Practice Test
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 73% Most missed: “Which of the following statements is NOT valid about operator overloading?”
Introduction to C++ Practice Test
Time left 00:00
25 Questions

1. Which special character is used to mark the end of class?
2. Pick the correct statement.
3. How to access the object in the class?
4. How to declare operator function?
5. How many types of user-defined data type are in c++?
6. Which of the following statements is NOT valid about operator overloading?
7. How many types of models are available to create the user-defined data type?
8. Pick out the other definition of objects.
9. Inline functions are avoided when ____________________________
10. Which functions of a class are called inline functions?
11. Which is the correct example of a unary operator?
12. Which of these following members are not accessed by using direct member access operator?
13. What does a mutable member of a class mean?
14. Which of the following operators can’t be overloaded?
15. What is operator overloading in C++?
16. Operator overloading is ___________
17. Pick the incorrect statement about inline functions in C++?
18. In the case of friend operator overloaded functions how many maximum object arguments a binary operator overloaded function can take?
19. Pick the other name of operator function.
20. Which of the following operator can be overloaded?
21. Which is the correct example of a binary operator?
22. Constructors are used to ____________
23. Which of the following operator cannot be used to overload when that function is declared as friend function?
24. 10. Which of the following operator can be used to overload when that function is declared as friend function?
25. The data members and functions of a class in C++ are by default ____________