đź§Ş OOPS MCQ Quiz Hub

OOPS Mcq Question Set 3

Choose a topic to test your knowledge and improve your OOPS skills

1. How is it possible to have both const and non-const version of a function?




2. When both the const and non-const version of functions are required?




3. If a function is to be made const, which is the correct syntax?




4. Functions which differ in const-ness are considered _________




5. If const version of a function when overloading is used, the function ______




6. Which among the following is recommended for const functions?




7. Use of const member function in a program ______




8. How many types of member functions are possible in general?




9. Simple member functions are ________




10. What are static member functions?




11. How can static member function can be accessed directly in main() function?




12. Correct syntax to access the static member functions from the main() function is _______




13. What are const member functions?




14. Which among the following best describes the inline member functions?




15. What are friend member functions (C++)?




16. What is the syntax of a const member function?




17. Which keyword is used to make a nonmember function as friend function of a class?




18. Member functions ______




19. All type of member functions can’t be used inside a single class.




20. Which among the following is true?




21. Which keyword is used to define the static member functions?




22. Which keyword is used to define the inline member function?




23. Which among the following best describes member functions?




24. How many types of member functions are generally there in C++?




25. How can a static member function be called in the main function?




26. What are inline member functions?




27. How to access members of the class inside a member function?




28. For overloading “( )”, “[ ]” or “->” operators, a class _____




29. If a virtual member function is defined _________




30. Member functions of a generic class are ______




31. Member function of a class can ______




32. Which among the following is proper syntax for class given below? class A { int a,b; public : void disp(); }




33. A member function can _____ of the same class.




34. Which member function doesn’t require any return type?




35. Which among the following is not possible for member function?




36. Which among the following is correct definition for static member functions?




37. Which is correct syntax to access the static member functions with class name?




38. Which among the following is not applicable for the static member functions?




39. Which among the following is true?




40. The static members are _______




41. Which among the following is true?




42. The static member functions ______




43. Which keyword should be used to declare the static member functions?




44. The keyword static is used ______




45. Which among the following can’t be used to access the members in any way?




46. We can use the static member functions and static data member _______




47. The static data member ________




48. If static data member are made inline, ______




49. Which among the following best describes member function overriding?




50. Which among the following is true?