Home > C++ Programming > Quizzes > C++ Programming Practice Test: Inheritance
C++ Programming Practice Test: Inheritance
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 0% Most missed: “How many parameters are there in getline function?”
C++ Programming Practice Test: Inheritance
Time left 00:00
25 Questions

1. What will happen when the function call operator is overloaded?
2. If a class is derived privately from a base class then ______________________________
3. Which of the following is used to move the file pointer to start of a file?
4. Which is used to get the input during runtime?
5. How many types of output stream classes are there in c++?
6. How many specifiers are used to derive a class?
7. What can be used to input a string with blank space?
8. What is meant by ofstream in c++?
9. Which function is used in C++ to get the current position of file pointer in a file?
10. Pick out the correct statement.
11. Pick out the correct statement.
12. Which of the following is used to create a stream that performs both input and output operations?
13. Which specifier makes all the data members and functions of base class inaccessible by the derived class?
14. What is the use of function call operator?
15. In which form does the function call operator can be overloaded?
16. What is the use of ios::trunc mode?
17. Which is used to do the dereferencing?
18. Which of the following is used to create an output stream?
19. What is the use of functor?
20. Which of the following is the default mode of the opening using the ofstream class?
21. Which of the following is the default mode of the opening using the ifstream class?
22. Which of the following is the default mode of the opening using the fstream class?
23. How many groups of output of operation are there in c++?
24. Pick out the correct option.
25. What is the return type open() method?