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

GATE 2025 (Session 1)

65 questions

MCQ 30 · MSQ 13 · NAT 221-mark 30 · 2-mark 35

Questions 36–40 of 65

Q36Cache Memory2 marksMCQ−0.67 if wrong
Consider a memory system with 1M bytes of main memory and 16K bytes of cache memory. Assume that the processor generates 20-bit memory address, and the cache block size is 16 bytes. If the cache uses direct mapping, how many bits will be required to store all the tag values? [Assume memory is byte addressable, 1K = 2102^{10}, 1M = 2202^{20}.]

Q37Machine Instruction2 marksMCQ−0.67 if wrong
A processor has 64 general-purpose registers and 50 distinct instruction types. An instruction is encoded in 32-bits. What is the maximum number of bits that can be used to store the immediate operand for the given instruction?

ADD R1, #25 // R1 = R1 + 25

Q38CPU Scheduling2 marksMCQ−0.67 if wrong
A computer has two processors, M1M_1 and M2M_2. Four processes P1,P2,P3,P4P_1, P_2, P_3, P_4 with CPU bursts of 20, 16, 25, and 10 milliseconds, respectively, arrive at the same time and these are the only processes in the system. The scheduler uses non-preemptive priority scheduling, with priorities decided as follows:

M1M_1 uses priority of execution for the processes as, P1>P3>P2>P4P_1 > P_3 > P_2 > P_4, i.e., P1P_1 and P4P_4 have highest and lowest priorities, respectively.
M2M_2 uses priority of execution for the processes as, P2>P3>P4>P1P_2 > P_3 > P_4 > P_1, i.e., P2P_2 and P1P_1 have highest and lowest priorities, respectively.

A process PiP_i is scheduled to a processor MkM_k, if the processor is free and no other process PjP_j is waiting with higher priority. At any given point of time, a process can be allocated to any one of the free processors without violating the execution priority rules. Ignore the context switch time. What will be the average waiting time of the processes in milliseconds?

Q39Tuple Calculus2 marksMCQ−0.67 if wrong
Consider two relations describing teams and players in a sports league:

teams(tid,tname):tid,tnameteams(tid, tname):tid, tname are team-id and team-name, respectively
players(pid,pname,tid):pid,pname,tidplayers(pid, pname, tid):pid,pname,tid denote player-id, player-name and the team-id of the player, respectively

Which ONE of the following tuple relational calculus queries returns the name of the players who play for the team having name as 'MI'?

Q40Network Layer Protocol2 marksMCQ−0.67 if wrong
A packet with the destination IP address 145.36.109.70 arrives at a router whose routing table is shown. Which interface will the packet be forwarded to?
Subnet AddressSubnet Mask (in CIDR notation)Interface145.36.0.0/16E1145.36.128.0/17E2145.36.64.0/18E3145.36.255.0/24E4Default−−E5\begin{array}{|c|c|c|} \hline \textbf{Subnet Address} & \textbf{Subnet Mask (in CIDR notation)} & \textbf{Interface} \\ \hline 145.36.0.0 & /16 & E1 \\ \hline 145.36.128.0 & /17 & E2 \\ \hline 145.36.64.0 & /18 & E3 \\ \hline 145.36.255.0 & /24 & E4 \\ \hline \text{Default} & -- & E5 \\ \hline \end{array}