1
GATE CSE 1999
MCQ (Single Correct Answer)
+2
-0.6
Consider the following program in a language that has dynamic scooping:
var x: real;
procedure show;
begin print(x); end;
procedure small;
var x: real;
begin x: = 0.125; show; end;
begin x:=0.25;
show; small
end;
Then the output of the program is:2
GATE CSE 1998
MCQ (Single Correct Answer)
+2
-0.6
Faster access to non-local variables is achieved using an array of pointers to
activation records called a
3
GATE CSE 1997
MCQ (Single Correct Answer)
+2
-0.6
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
4
GATE CSE 1996
MCQ (Single Correct Answer)
+2
-0.6
The correct matching for the following pairs is
List - I
(A) Activation record
(B) Location counter
(C) Reference counts
(D) Address relocation
List - II
(1) Linking loader
(2) Garbage collection
(3) Subroutine call
(4) Assembler
GATE CSE Subjects
Browse all chapters by subject
Theory of Computation
Operating Systems
Algorithms
Database Management System
Data Structures
Computer Networks
Software Engineering
Compiler Design
Web Technologies
General Aptitude
Discrete Mathematics
Programming Languages