1. What is the correct syntax for defining a function in C++?
2. What is the purpose of a function prototype in C++?
3. Which keyword is used to define a function in C++ that does not return any value?
4. What is the correct way to call a function named "add" that takes two parameters in C++?
5. What does the 'return' statement do in a function in C++?
6. What is the output of the following code: int sum(int a, int b) { return a + b; } cout << sum(3, 5); in C++?
7. Which of the following is true about function overloading in C++?
8. What is the purpose of default arguments in C++ functions?
9. What is the correct syntax for declaring a function prototype in C++?
10. What is the purpose of passing arguments by reference in C++ functions?
Read More Section(Functions and Procedures in C plus plus)
Each Section contains maximum 100 MCQs question on Functions and Procedures in C plus plus. To get more questions visit other sections.