11.
What is the output of the following code: int square(int x) { return x * x; } int main() { cout << square(3) + square(2); } in C++?

12.
What is the correct syntax for defining a recursive function in C++?

13.
What is the purpose of a function header in C++?

14.
What will be the output of the following code: int max(int a, int b) { return (a > b) ? a : b; } cout << max(5, 3); in C++?

15.
Which of the following is true about function recursion in C++?

17.
Which of the following is true about function parameters in C++?

19.
What is the purpose of the 'void' keyword in a function declaration in C++?

20.
What is the output of the following code: int multiply(int x, int y) { return x * y; } int main() { cout << multiply(3, 4); } in C++?

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.