1
GATE CSE 2001
MCQ (Single Correct Answer)
+2
-0.6
Consider the following program
Program P2
var n:int;
procedure W(var x:int)
begin
x=x+1;
print x;
end
procedure D
begin
var n:int;
n=3;
W(n);
end
begin \\begin P2
n = 10;
D;
end
If the language has dynamic scooping and parameters are passed by reference,
what will be printed by the program?2
GATE CSE 1999
MCQ (Single Correct Answer)
+2
-0.6
Given the programming constructs:
(i) assignment
(ii) for loops where the loop parameter cannot be changed within the loop
(iii) if-then-else
(iv) forward go to
(v) arbitrary go to
(vi) non-recursive procedure call
(vii) recursive procedure/function call
(viii) repeat loop,
(i) assignment
(ii) for loops where the loop parameter cannot be changed within the loop
(iii) if-then-else
(iv) forward go to
(v) arbitrary go to
(vi) non-recursive procedure call
(vii) recursive procedure/function call
(viii) repeat loop,
which constructs will you not include in a programming language such that it should be possible to program the terminates (i.e., halting) function in the same programming language.
3
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:4
GATE CSE 1999
MCQ (Single Correct Answer)
+2
-0.6
A certain processor supports only the immediate and the direct addressing
modes. Which of the following programming language features cannot be
implemented on this processor?
Questions Asked from Basic of Programming Language (Marks 2)
Number in Brackets after Paper Indicates No. of Questions
GATE CSE 2024 Set 2 (1)
GATE CSE 2023 (1)
GATE CSE 2022 (1)
GATE CSE 2015 Set 1 (1)
GATE CSE 2014 Set 2 (2)
GATE CSE 2013 (1)
GATE CSE 2008 (1)
GATE CSE 2003 (2)
GATE CSE 2001 (2)
GATE CSE 1999 (3)
GATE CSE 1998 (1)
GATE CSE 1997 (1)
GATE CSE 1996 (1)
GATE CSE 1994 (1)
GATE CSE 1990 (2)
GATE CSE 1989 (2)
GATE CSE Subjects
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