ISRO | ISRO CS 2020 | Question 22

In the following procedure

Integer procedure P(X, Y);
Integer X,Y:
value x;
  K = 5;
  L = 8;
  P = x + y;

X is called by value and Y is called by name. If the procedure were invoked by the following program fragment

K = 0;
  L = 0;
  Z = P(K, L); 

then the value Z would be set equal to
(A) 5
(B) 8
(C) 13
(D) 0

Answer: (D)


Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Article Tags :

Be the First to upvote.

Please write to us at to report any issue with the above content.