A function that is prototype as int calculate(int num); may

[amp_mcq option1=”receive an integer variable named num from the main() program” option2=”receive any integer variable from the main() program” option3=”either (a) or (b)” option4=”neither (a) nor (b)” correct=”option1″]

The correct answer is: A. receive an integer variable named num from the main() program.

A function that is prototyped as int calculate(int num) can only receive an integer variable named num from the main() program. This is because the function declaration specifies that the function takes one argument, which is an integer variable named num. The function can only access the value of num that is passed to it from the main() program. It cannot access any other integer variables in the main() program.

Option B is incorrect because the function declaration specifies that the function takes one argument, which is an integer variable named num. The function cannot receive any other integer variables from the main() program.

Option C is incorrect because the function declaration specifies that the function takes one argument, which is an integer variable named num. The function cannot receive any other integer variables from the main() program.

Option D is incorrect because the function declaration specifies that the function takes one argument, which is an integer variable named num. The function can receive the value of num that is passed to it from the main() program.