Difficulty: Easy
Correct Answer: passing a value
Explanation:
Introduction / Context:When functions or modules interact, they often exchange data via parameters. The way those parameters are transmitted determines whether the callee can alter the caller's original variable. This question asks for the term describing the practice of sending only a copy of the data to the callee.
Given Data / Assumptions:
Concept / Approach:
Step-by-Step Solution:
Identify the desired behavior: callee gets only a copy of the data.Associate this with the term: passing a value.Therefore, the correct answer is ”passing a value”.Verification / Alternative check:
Example: void f(int x){ x = 42; } int a=10; f(a); After the call, a remains 10 because x is a copy.Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
passing a value
Discussion & Comments