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 2000

The value of j at the end of the execution of the following C program
int incr (int i)
{
static int count = 0;
count = count + i;
return (count);
}
main () {
int i,j;
for (i = 0; i <= 4; i++)
j = incr(i);
}
is
A
10
B
4
C
6
D
7
2

### GATE CSE 1999

Consider the following C function definition
int Trial (int a, int b, int c)
{
if ((a > = b) && (c < b)) return b;
else if (a > = b) return Trial (a,c,b);
else return Trial (b,a,c);
}
The function Trial:
A
Finds the maximum of a, b and c
B
Finds the minimum of a, b and c
C
Finds the middle number of a, b, c
D
None of the above
3

### GATE CSE 1998

What value would the following function return for the input x = 95?
Function fun (x:integer):integer;
Begin
If x > 100 then fun : x – 10
Else fun : fun(fun (x + 11))
End;
A
89
B
90
C
91
D
92
4

### GATE CSE 1998

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
Write for Us

Do you want to write for us? Help us by contributing to our platform.

### 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

NEET

Class 12