Function Overloading – MCQs

30 Score: 0 Attempted: 0/30 Subscribe
1. : What is function overloading in C++?





2. : Which of the following cannot be used to differentiate overloaded functions?





3. : What happens when two overloaded functions have the same parameters but different return types?





4. : Which of the following is an example of function overloading?





5. : Can constructors be overloaded in C++?





6. : What determines which overloaded function is called?





7. : Overloaded functions must differ by:





8. : Is it possible to overload a function by changing only the default values of parameters?





9. : Which feature allows the use of the same function name for different tasks?





10. : Which type of polymorphism does function overloading represent?





11. : What is required for two overloaded functions?





12. : What is the keyword for overloading functions in C++?





13. : Can the main function be overloaded in C++?





14. : Which of the following is invalid function overloading?





15. : Which one is a correct function overload?





16. : In which situation will function overloading fail?





17. : Which of the following overloads are valid?





18. : Can default arguments and function overloading coexist?





19. : What is resolved at compile time in function overloading?





20. : What kind of error occurs if two functions have the same name and parameter types?





21. : Overloading functions improves:





22. : Function overloading is related to:





23. : Function overloading is an example of:





24. : Which of the following is NOT a reason to use function overloading?





25. : What is required to overload a function successfully?





26. : What happens if two functions differ only by return type?





27. : Can overloaded functions have default arguments?





28. : Function overloading can occur in:





29. : Which of the following is not true about overloaded functions?





30. : Why use function overloading?





Leave a Comment

All copyrights Reserved by MCQsAnswers.com - Powered By T4Tutorials