Multiple choice

In case of arguments passed by values when calling a function such as Z = addition (x,y),

  1. Any modifications to the variables x & y from inside the function will not have any effect outside the function.

  2. The variables x and y will be updated when any modification is done in the function.

  3. The variables x and y will be passed back to the function addition.

  4. The result of a function cannot be assigned to a variable Z.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

When arguments are passed by value, the function receives copies of the original values. Any modifications made to x and y inside the function affect only the local copies - the original variables outside remain unchanged. This is why pass-by-reference (using &) is needed when you want modifications to affect the originals. Option C describes pass-by-reference behavior, and option D is incorrect because function results can be assigned to variables.