English

The process of calling a method in such a way that the change in the formal arguments reflects on the actual parameter is known as: - Computer Applications

Advertisements
Advertisements

Question

The process of calling a method in such a way that the change in the formal arguments reflects on the actual parameter is known as:

Options

  • Call by reference

  • Call by value

  • Call by method

  • None

MCQ

Solution

Call by reference

Explanation:

In a call by reference, the method receives the address (reference) of the actual parameter. This means that the formal parameters correspond to the exact memory location as the actual parameters, and any changes to the formal parameters directly impact the actual parameters.

shaalaa.com
  Is there an error in this question or solution?
Chapter 5: User - Defined Methods - EXERCISES [Page 335]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 5 User - Defined Methods
EXERCISES | Q I. 4. | Page 335
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×