Complete the code to identify the parameter passing mechanism where the actual parameter's value is copied to the formal parameter.
In [1], changes made to the parameter inside the function do not affect the original argument.
Call by value means the function receives a copy of the argument's value. Changes inside the function do not affect the original variable.
Complete the code to identify the parameter passing mechanism where the function can modify the caller's variable directly.
In [1], the function receives the address of the actual parameter, allowing direct modification.Call by reference passes the address of the variable, so the function can change the original variable's value.
Fix the error in the statement describing call by name parameter passing.
In call by name, the actual parameter is [1] each time it is used in the function body.
In call by name, the actual parameter expression is re-evaluated every time it is accessed inside the function.
Fill both blanks to complete the description of call by copy-restore mechanism.
In call by copy-restore, the actual parameter is [1] to the function and [2] back to the caller after the function finishes.
In call by copy-restore, the value is copied into the function at the start and copied back to the original variable after the function ends.
Fill all three blanks to complete the dictionary comprehension that maps parameter passing mechanisms to their key feature.
features = { [1]: [2] for [3] in ['call by value', 'call by reference', 'call by name'] }This dictionary comprehension creates a mapping from each parameter passing mechanism to its main characteristic.