NEW
New Website Launch
Experience the best way to solve previous year questions with mock tests (very detailed analysis), bookmark your favourite questions, practice etc...
1

GATE CSE 1998

MCQ (Single Correct Answer)
What is the result of the following program?
program side-effect (input, output);
var x, result: integer:
fucntion f (var x:integer):integer;
begin
    x:x+1;f:=x;
end
begin
    x:=5
    result:=f(x)*f(x)
    writeln(result)
end
A
5
B
25
C
36
D
42
2

GATE CSE 1995

MCQ (Single Correct Answer)
What is the value of X printed by the following program?
program COMPUTE (input, output);
var
    X:integer;
procedure FIND (X:real);
    begin
    X:=sqrt(X);
    end;
begin
   X:=2
   Find(X)
   Writeln(X)
end
A
2
B
$$\sqrt 2 $$
C
Runtime error
D
None of the above
3

GATE CSE 1993

MCQ (Single Correct Answer)
What does the following code do?
var a, b : integer;
begin
    a:=a+b;
    b:=a-b;
    a:=a-b;
end;
A
exchanges a and b
B
doubles a and stores in b
C
doubles b and stores in a
D
leaves a and b unchanged

Joint Entrance Examination

JEE Main JEE Advanced WB JEE

Graduate Aptitude Test in Engineering

GATE CSE GATE ECE GATE EE GATE ME GATE CE GATE PI GATE IN

Medical

NEET

CBSE

Class 12