GATE 2026 (Session 2) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2026 (Session 2)

65 questions

MCQ 35 · MSQ 11 · NAT 191-mark 30 · 2-mark 35

Questions 56–60 of 65

Q56Cache Memory2 marksNAT
Consider a system with 11 MB physical memory and a word length of 11 byte. The system uses a direct mapped cache, with block numbers starting from 00. The word with physical address 0xA2C28\text{0xA2C28} is mapped to the cache block number 17610176_{10}. The maximum possible size of the cache (in KB ) for this configuration is ________. (answer in integer)
Note: 1 K=2101 {~K}=2^{10} and 1M=2201 {M}=2^{20}

Q57Pipeline Processor2 marksNAT
A non-pipelined instruction execution unit that operates at 1.61.6 GHz clock takes an average of 55 clock cycles to complete the execution of an instruction. To improve the performance, the system was pipelined with a goal of achieving an average throughput of one instruction per clock cycle. However, it could operate only at 1.21.2 GHz due to pipeline overheads. While executing a program in the pipelined design, 30%30 \% of instructions encountered a stall of 22 cycles due to pipeline hazards. The speed-up obtained by the pipelined design over the non-pipelined one for this program is ________(rounded off to two decimal places)
Note: 1G=1091 {G}=10^{9}

Q58Transport Layer Protocol2 marksNAT
Consider a new TCP connection between a sender and a receiver. The receiver advertised window is constant at 4848 KB, the maximum segment size (MSS) is 22 KB, and the slow start threshold for TCP congestion control is 1616 KB. Assume that there are no timeouts or duplicate acknowledgements. The number of rounds of transmission required for the congestion control algorithm of the TCP connection to reach the congestion avoidance phase is ________. (answer in integer)
Note: 1 K=2101 {~K}=2^{10}

Q59Combinational Circuit2 marksNAT
Consider the digital circuit shown below with two input lines A\text{A} and B\text{B}, two select lines S0\text{S0} and S1\text{S1}, and an output line Y\text{Y}. The blocks Q\text{Q} and M\text{M} represent active high 2:42:4 decoder and 44-to-11 multiplexer, respectively. Out of 1616 possible input combinations, the number of combinations that produce Y=1{Y}=1 is ________ (answer in integer)
Note: One input combination is an instance of [A B S1 S0\text{A B S1 S0}].
A B Q M D0 D1 D2 D3 0 1 2 3 0 1 S1 S0 Y

Q60Array and Pointer2 marksNAT
Consider the following ANSI-C program.
#include <stdio.h>
 int main(){
  int *ptr, a, b, c;
  a=5; b=11; c=20;
  ptr=&a; *ptr=c; ptr=&c;
  a=*(&b); c=*ptr-a;
  printf("%d",c);
  return(0);
 } 
The output of this program is ________ . (answer in integer)
Note: Assume that the program compiles and runs successfully.