4
AssignmentMultiple Choice

Unit Test

Question 4 • VA-Information Technology Fundamentals B

What is a return statement used for?

Answer
A
beginning a function
B
repeating a value
C
copying a function
D
exiting a function

Explanation

A return statement ends the function’s execution and can send a value back to the code that called it. So the correct choice is exiting a function. It does not begin, repeat, or copy a function.

AI-written and checked against the verified answer.

Previous
Next