GATE 2026 (Session 2)
65 questions
MCQ 35 · MSQ 11 · NAT 191-mark 30 · 2-mark 35
Questions 21–25 of 65
Consider a file of size million bytes being transferred between two hosts connected via a path consisting of three consecutive links of bandwidth Mbps , kbps , and Mbps , respectively. All processing delays and propagation delays are negligible. Assume that there is no other background traffic over the path and no other additional overhead to transfer the file.
Which one of the following is the total time (in seconds) to transfer the file?
Note:
Which one of the following is the total time (in seconds) to transfer the file?
Note:
Answer: (B)
Processing and propagation delays are negligible. So the speed of links in a series is set by the slowest (bottleneck) link on the path. Here that is kbps, the smallest of Mbps, kbps and Mbps.
File size: bytes, which bits.
Total transfer time: seconds.
Answer: 64
File size: bytes, which bits.
Total transfer time: seconds.
Answer: 64
Which one of the following protocols may need to broadcast some of its messages?
Answer: (C)
DHCP (Dynamic Host Configuration Protocol) lets a host get an IP address (and other network settings) on its own when it first joins a network. At that point the host has no IP address and does not know the server's address. So its first message, "DHCP Discover", must be broadcast on the local network. Then any DHCP server on the network can reply.
(mail), (file transfer) and (web) are normal client-server protocols. They talk to a specific server whose address is already known, using an ordinary unicast connection. They have no built-in need to broadcast.
Answer: DHCP
(mail), (file transfer) and (web) are normal client-server protocols. They talk to a specific server whose address is already known, using an ordinary unicast connection. They have no built-in need to broadcast.
Answer: DHCP
Which one of the following CPU scheduling algorithms cannot be preemptive?
Answer: (B)
Let us check each algorithm to see if it can be preemptive:
- SRTF is the preemptive form of Shortest-Job-First. It can stop the running process when a new process arrives with a shorter remaining time.
- Round Robin is preemptive by nature. When the time quantum of a running process ends, the process is forced off the CPU.
- Priority Scheduling can be preemptive or non-preemptive. In the preemptive form, a new process with higher priority takes the CPU from the current one. So it can be preemptive.
- FCFS (First Come First Serve) runs each process to completion in the order of arrival. In FCFS, a process that arrives later has no way to interrupt the one that is running. By definition it is non-preemptive.
Answer: First Come First Serve (FCFS) Scheduling cannot be preemptive.
- SRTF is the preemptive form of Shortest-Job-First. It can stop the running process when a new process arrives with a shorter remaining time.
- Round Robin is preemptive by nature. When the time quantum of a running process ends, the process is forced off the CPU.
- Priority Scheduling can be preemptive or non-preemptive. In the preemptive form, a new process with higher priority takes the CPU from the current one. So it can be preemptive.
- FCFS (First Come First Serve) runs each process to completion in the order of arrival. In FCFS, a process that arrives later has no way to interrupt the one that is running. By definition it is non-preemptive.
Answer: First Come First Serve (FCFS) Scheduling cannot be preemptive.
Consider the following functions, where is a positive integer.
Which one of the following options lists the functions in increasing order of asymptotic growth rate?
Note: Assume the base of log to be .
Which one of the following options lists the functions in increasing order of asymptotic growth rate?
Note: Assume the base of log to be .
Answer: (A)
Look at how fast each function grows (here the log is with base ):
- : this is the slowest of all. It grows slower than any polynomial.
- : this is a polynomial with a small fractional power. It grows faster than any power of , but slower than itself.
- (raising base to the power just gives back ). So it grows just like , which is faster than .
- : by Stirling's approximation, . This grows faster than alone, and so faster than .
So the increasing order is: .
Answer: log(n), n^(1/3), 2^log(n), log(n!)
- : this is the slowest of all. It grows slower than any polynomial.
- : this is a polynomial with a small fractional power. It grows faster than any power of , but slower than itself.
- (raising base to the power just gives back ). So it grows just like , which is faster than .
- : by Stirling's approximation, . This grows faster than alone, and so faster than .
So the increasing order is: .
Answer: log(n), n^(1/3), 2^log(n), log(n!)
Which of the following can be recurrence relation(s) corresponding to an algorithm with time complexity ?
One or more options are correct.
Answer: (A), (B)
Solve each recurrence and check whether it gives :
- : unrolling it gives . It matches.
- : use the Master theorem. Here , so . Since is polynomially smaller than , Case 1 applies and gives . It matches.
- : this is the well-known merge-sort recurrence. Here exactly (Case 2), so the result is . This is not .
- : unrolling it gives . This is not .
Answer: T(n)=T(n-1)+1 and T(n)=2T(n/2)+1 both match algorithms with Θ(n) time.
- : unrolling it gives . It matches.
- : use the Master theorem. Here , so . Since is polynomially smaller than , Case 1 applies and gives . It matches.
- : this is the well-known merge-sort recurrence. Here exactly (Case 2), so the result is . This is not .
- : unrolling it gives . This is not .
Answer: T(n)=T(n-1)+1 and T(n)=2T(n/2)+1 both match algorithms with Θ(n) time.