Multiple choice

Which of the following is an incorrect statement about copy restore method?

  1. Copy restore method is a hybrid between call by value and call by name.

  2. Copy-in-copy-out is another name for copy restore.

  3. Calling procedure calculates the value of the actual parameter and it then copies to activation record for the called procedure.

  4. During execution of called procedure, the actual parameter value is not affected.

  5. If the actual parameter has L-value, then at return, the value of formal parameter is copied to actual parameter.

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

Copy restore method is a hybrid between call by value and call by reference. Hence, it is an incorrect answer.