C++ Friend Function Quiz - Quizizz
C++ Friend Function Quiz - Quizizz
C++ Friend Function Quiz - Quizizz
Multiple Choice
Multiple Choice
Multiple Choice
a) No b) Yes
c) Only in certain cases d) Sometimes
Multiple Choice
5. What is the difference between a friend function and a member function in C++?
Multiple Choice
6. True or False: A friend function can access protected members of a class in C++.
Multiple Choice
7. True or False: A friend function can be declared in the private section of a class in
C++.
8. True or False: A friend function can be called using the dot operator in C++.
Multiple Choice
Multiple Choice
10. d) False