GATE 2021 (Session 1) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2021 (Session 1)

65 questions

MCQ 34 · MSQ 13 · NAT 181-mark 30 · 2-mark 35

Questions 31–35 of 65

Q31Queue1 markNAT
Consider the following sequence of operations on an empty stack.

push(54); push(52); pop(); push(55); push(62); s=pop();

Consider the following sequence of operations on an empty queue.

enqueue(21); enqueue(24); dequeue(); enqueue(28); enqueue(32); q=dequeue();

The value of s+q is ___________.

Q32Cache Memory1 markNAT
Consider a computer system with a byte-addressable primary memory of size 232 bytes2^{32} \text{ bytes}. Assume the computer system has a direct-mapped cache of size 32KB(1KB=210 bytes)32 KB (1 KB = 2^{10} \text{ bytes}), and each cache block is of size 64 bytes.
The size of the tag field is __________ bits.

Q33Relational Algebra1 markNAT
A relation r(A,B)r(A,B) in a relational database has 1200 tuples. The attribute AA has integer values ranging from 6 to 20, and the attribute BB has integer values ranging from 1 to 20. Assume that the attributes AA and BB are independently distributed.

The estimated number of tuples in the output of σ(A>10)∨(B=18)(r)\sigma _{(A \gt 10)\vee(B=18)}(r) is ____________

Q34Number System1 markNAT
Consider the following representation of a number in IEEE 754 single-precision floating point format with a bias of 127.

S:1
E:10000001
F:11110000000000000000000

Here, S,E and F denote the sign, exponent, and fraction components of the floating point representation.

The decimal value corresponding to the above representation (rounded to 2 decimal places) is ____________.

Q35CPU Scheduling1 markNAT
Three processes arrive at time zero with CPU bursts of 16, 20 and 10 milliseconds. If the scheduler has prior knowledge about the length of the CPU bursts, the minimum achievable average waiting time for these three processes in a non-preemptive scheduler (rounded to nearest integer) is _____________ milliseconds.