• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

ISRO | ISRO CS 2020 | Question 22

In the following procedure
Integer procedure P(X, Y);
Integer X,Y:
value x;
begin
  K = 5;
  L = 8;
  P = x + y;
end 
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

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments