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

GATE 2024 (Session 2)

65 questions

MCQ 32 · MSQ 18 · NAT 151-mark 30 · 2-mark 35

Questions 21–25 of 65

Q21Matching1 markMCQ−0.33 if wrong
Consider the following two sets:
Set XSet YP. Lexical Analyzer1. Abstract Syntax TreeQ. Syntax Analyzer2. TokenR. Intermediate Code Generator 3. Parse TreeS. Code Optimizer4. Constant Folding \begin{array}{ll} \textbf{Set X} & \textbf{Set Y} \\ \text{P. Lexical Analyzer} & \text{1. Abstract Syntax Tree} \\ \text{Q. Syntax Analyzer} & \text{2. Token}\\ \text{R. Intermediate Code Generator } & \text{3. Parse Tree} \\ \text{S. Code Optimizer} & \text{4. Constant Folding } \end{array}
Which one of the following options is the CORRECT match from Set X to Set Y ?

Q22Regular Expression1 markMCQ−0.33 if wrong
Which one of the following regular expressions is equivalent to the language accepted by the DFA given below?
0 1 0 1

Q23Network Layer Protocol1 markMSQ
Node X has a TCP connection open to node Y. The packets from X to Y go through an intermediate IP router R. Ethernet switch S is the first switch on the network path between X and R. Consider a packet sent from X to Y over this connection.
Which of the following statements is/are TRUE about the destination IP and MAC addresses on this packet at the time it leaves X?

One or more options are correct.

Q24Memory Management1 markMSQ
Which of the following tasks is/are the responsibility/responsibilities of the memory management unit (MMU) in a system with paging-based memory management?

One or more options are correct.

Q25Process1 markMSQ
Consider a process P running on a CPU. Which one or more of the following events will always trigger a context switch by the OS that results in process P moving to a non-running state (e.g., ready, blocked)?

One or more options are correct.