GATE 2026 (Session 1)
65 questions
MCQ 28 · MSQ 24 · NAT 131-mark 30 · 2-mark 35
Questions 16–20 of 65
Which one of the following dependencies among the register operands of different instructions can cause a data hazard in a pipelined processor?
Answer: (B)
A data hazard happens when an instruction needs the result of a nearby instruction that is still not finished in the pipeline.
- Read-after-Write (RAW): a later instruction reads a register before an earlier instruction has written the new value. This is a true (flow) dependency. It causes a real data hazard in a pipeline.
- Write-after-Read (WAR) and Write-after-Write (WAW) are anti-dependency and output-dependency. They cause hazards only in pipelines that allow out-of-order completion. A simple in-order pipeline does not have them.
- Read-after-Read is not a dependency. Two reads never conflict.
Answer: Read-after-write
- Read-after-Write (RAW): a later instruction reads a register before an earlier instruction has written the new value. This is a true (flow) dependency. It causes a real data hazard in a pipeline.
- Write-after-Read (WAR) and Write-after-Write (WAW) are anti-dependency and output-dependency. They cause hazards only in pipelines that allow out-of-order completion. A simple in-order pipeline does not have them.
- Read-after-Read is not a dependency. Two reads never conflict.
Answer: Read-after-write
Consider the following recurrence relations:
For all ,
Assume that for all and .
Which one of the following options is correct?
For all ,
Assume that for all and .
Which one of the following options is correct?
Answer: (A)
Start by solving .
The values are , so we get . Now grows slower than by a polynomial factor, since . So by the Master theorem (Case 1):
.
Next, solve .
The values are , so we get . The extra term is . It grows slower than by a polynomial factor, because .
So by Master theorem Case 1: .
Answer:
The values are , so we get . Now grows slower than by a polynomial factor, since . So by the Master theorem (Case 1):
.
Next, solve .
The values are , so we get . The extra term is . It grows slower than by a polynomial factor, because .
So by Master theorem Case 1: .
Answer:
With respect to a TCP connection between a client and a server, which one of the following statements is true?
Answer: (D)
Let us check every statement about a TCP connection:
- TCP sets up a connection with a three-way handshake (SYN, SYN-ACK, ACK). It does not use a two-way handshake. So this is false.
- Both sides, client or server, can start closing the connection first. The server does not have to wait for the client. So this is false.
- TCP is full-duplex. Data can move in both directions at the same time. So "half-duplex" is false.
- TCP allows a simultaneous close. The client and the server can both send a FIN at about the same time, and each one acknowledges the FIN of the other. This is a valid way to close a connection in the TCP state machine.
Answer: The client and server can initiate closing of the connection at the same time
- TCP sets up a connection with a three-way handshake (SYN, SYN-ACK, ACK). It does not use a two-way handshake. So this is false.
- Both sides, client or server, can start closing the connection first. The server does not have to wait for the client. So this is false.
- TCP is full-duplex. Data can move in both directions at the same time. So "half-duplex" is false.
- TCP allows a simultaneous close. The client and the server can both send a FIN at about the same time, and each one acknowledges the FIN of the other. This is a valid way to close a connection in the TCP state machine.
Answer: The client and server can initiate closing of the connection at the same time
Which of the following statements is/are true with respect to the interaction of a web browser with a web server using HTTP ?
One or more options are correct.
Answer: (A), (C), (D)
HTTP/1.1 brought in persistent connections and pipelining over one TCP connection:
- (A) True. Many objects of one webpage can be fetched over a single persistent TCP connection if they sit on the same server. This is the main purpose of persistent connections.
- (B) False. One TCP connection links one client with one particular server. Objects kept on a different server need a separate TCP connection to that server.
- (C) True. HTTP/1.1 supports pipelining. The client can send a new request over the same connection before the reply to the earlier request is fully received.
- (D) True. The TCP connection stays open and is not closed after one request and response. So several webpages from the same server can be downloaded one after another over that single connection.
Answer: (A), (C), (D)
- (A) True. Many objects of one webpage can be fetched over a single persistent TCP connection if they sit on the same server. This is the main purpose of persistent connections.
- (B) False. One TCP connection links one client with one particular server. Objects kept on a different server need a separate TCP connection to that server.
- (C) True. HTTP/1.1 supports pipelining. The client can send a new request over the same connection before the reply to the earlier request is fully received.
- (D) True. The TCP connection stays open and is not closed after one request and response. So several webpages from the same server can be downloaded one after another over that single connection.
Answer: (A), (C), (D)
Let . Consider an matrix with its elements from . Let the vector be in the null space of .
Which of the following options is/are always correct?
Which of the following options is/are always correct?
One or more options are correct.
Answer: (B), (D)
The vector is in the null space of , so we have . But times this unit vector just picks out the 2nd column of . So the 2nd column of is all zeros.
- Determinant: A matrix with a column of all zeros always has determinant . So "" is always true, but "" is always false.
- Rank: The rank can be anything from to , since it depends on the other columns. So "rank " is not always true.
- Null space size: The null space contains the nonzero vector , so it also contains every scalar multiple of it (for example and ). This gives infinitely many distinct non-zero vectors, so there are at least two. This is always true.
Answer: Determinant of M is 0; and there are at least two non-zero vectors in the null space of M.
- Determinant: A matrix with a column of all zeros always has determinant . So "" is always true, but "" is always false.
- Rank: The rank can be anything from to , since it depends on the other columns. So "rank " is not always true.
- Null space size: The null space contains the nonzero vector , so it also contains every scalar multiple of it (for example and ). This gives infinitely many distinct non-zero vectors, so there are at least two. This is always true.
Answer: Determinant of M is 0; and there are at least two non-zero vectors in the null space of M.