ACtE03 · Chapter 3Programming & Applications🏛️ Past Licensure QuestionID: d81c7f54
Which keyword transfers execution control and optional result data from a called function back to the calling function in C/C++?
Which keyword transfers execution control and optional result data from a called function back to the calling function in C/C++?
Multiple Choice Options
- A✓ Correct Option
return
- B
back
- C
yield
- D
exit
Detailed Technical Solution & Explanation
The return statement immediately terminates function execution, unwinds the current stack frame, and transfers control (along with an optional return expression value) back to the caller's call site.
Option Analysis:
•
Option A (return): Correct. Standard function return keyword.
•
Option B (back): Not a C/C++ keyword.
•
Option C (yield): Python generator keyword (or C++20 coroutine
co_yield).•
Option D (exit): Library function terminating the entire process, not returning to caller.
Reference: Mock Test 07NEC Licensure Syllabus