GATE 2022 Toppers Quiz 27
Attempt now to get your rank among 95 students!
Question 1
Question 2
#include<string.h>
int i = 10;
int f(int i)
{
i = 15;
}
int main ()
{
i = 5;
f(i);
printf("%d", i);
return 0;
}
The output for the above code is ______.
Question 3
Consider the following statements :
1) For a packet addressed to the destination 128.96.40.151, router uses R4 as the next hop.
2) For a packet addressed to the destination 192.4.153.17, router uses R4 as the next hop.
Which of the above is/are correct ?
Question 4
a = b + c
k = a – d
a = k + b
u = v + w
u = a – u
The minimum number of total variables required to convert the above code segment to static single assignment from is
Question 5
Which one is true about above schedules?
Question 6
L1:
for (i = 0; i < 60; i ++)
{
for (j = 0; j < 60; j++)
{
printf(“%d”, a[i][j]);
}
}
L2:
for (i = 59; i ≥ 0; i – –)
{
for (j = 59; j ≥ 0; j – –)
{
printf(“%d”, a[i][j]);
}
}
In case of direct mapped cache, the number of cache misses are ______ (Assume that cache is empty initially).
Question 7
f(X, Y, Z ) = X′Y′ + XZ′ and
g(X, Y, Z) = XYZ′ + X′Z′ + XY′
Which one of the following is correct?
Question 8
- 95 attempts
- 0 upvotes
- 0 comments
Tags :
GATE & PSU CSGeneral