Consider the following statements S1, S2 and S3 : S1 : In call-by-value,…

PYQ UGC NET 2014

Consider the following statements S1, S2 and S3 :

S1 : In call-by-value, anything that is passed into a function call is unchanged in the caller’s scope when the function returns.

S2 : In call-by-reference, a function receives implicit reference to a variable used as argument.

S3 : In call-by-reference, caller is unable to see the modified variable used as argument.

  1. A.

    S3 and S2 are true.

  2. B.

    S3 and S1 are true.

  3. C.

    S2 and S1 are true.

  4. D.

    S1, S2, S3 are true.

Attempted by 473 students.

Sign up free to check your answer

Sign up free

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…