GATE | GATE CS 1997 | Question 33
Given the following Pascal-like program segment
Procedure A;
x,y:intger;
Procedure B;
x,z:real
S1
end B;
Procedure C;
i:integer;
S2
end C;
end A;
The variables accessible in S1 and S2 are
(A) x of A, y, x of B and z in S1 and x of B, y and i in S2
(B) x of B, y and z in S1 and x of B, i and z in S2
(C) x of B, z and y in S1 and x of A, i and y in S2
(D) None of the above
Answer: (C)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post
Recommended Posts:
- GATE | GATE CS 1997 | Question 31
- GATE | GATE CS 1997 | Question 30
- GATE | GATE CS 1997 | Question 29
- GATE | GATE CS 1997 | Question 28
- GATE | GATE CS 1997 | Question 27
- GATE | GATE CS 1997 | Question 26
- GATE | GATE CS 1997 | Question 25
- GATE | GATE CS 1997 | Question 24
- GATE | GATE CS 1997 | Question 73
- GATE | GATE CS 1997 | Question 32
- GATE | GATE CS 1997 | Question 66
- GATE | GATE CS 1997 | Question 67
- GATE | GATE CS 1997 | Question 68
- GATE | GATE CS 1997 | Question 69
- GATE | GATE CS 1997 | Question 70


