Multiple choice technology programming languages

What is true of passing by value and result in the following code? More than one answer is correct. Perform calculate_sales using amount. FORM calculate_sales changing value(f_amount) a) Formal Parameter f_amount is allocated it’s own memory space b) The address of the actual parameter is passed to the formal parameter c) Formal parameter is copied to memory space of actual parameter at the end of the form d) Formal parameter is not copied to memory space of actual parameter

  1. a&b

  2. a&c

  3. b&c

  4. b&d

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

In ABAP, CHANGING VALUE implements pass-by-value-and-result. The formal parameter gets its own memory space (a is true), the address is NOT passed (b is false - that's reference), and at the end, the formal parameter's value IS copied back to the actual parameter's space (c is true, d is false). Therefore a&c is correct.