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

GATE 2025 (Session 2)

65 questions

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

Questions 26–30 of 65

Q26CPU Scheduling1 markMCQ−0.33 if wrong
Processes P1,P2,P3,P4P_1, P_2, P_3, P_4 arrive in that order at times 0, 1, 2, and 8 milliseconds respectively, and have execution times of 10, 13, 6, and 9 milliseconds respectively. Shortest Remaining Time First (SRTF) algorithm is used as the CPU scheduling policy. Ignore context switching times.
Which ONE of the following correctly gives the average turnaround time of the four processes in milliseconds?

Q27Transaction1 markMSQ
An audit of a banking transactions system has found that on an earlier occasion, two joint holders of account AA attempted simultaneous transfers of Rs. 10000 each from account AA to account BB. Both transactions read the same value, Rs. 11000, as the initial balance in AA and were allowed to go through. BB was credited Rs. 10000 twice. AA was debited only once and ended up with a balance of Rs. 1000.
Which of the following properties is/are certain to have been violated by the system?

One or more options are correct.

Q28Machine Instruction1 markMSQ
Which of the following is/are part of an Instruction Set Architecture of a processor?

One or more options are correct.

Q29Graph Traversal (BFS and DFS)1 markMSQ
Which of the following statements regarding Breadth First Search (BFS) and Depth First Search (DFS) on an undirected simple graph GG is/are TRUE?

One or more options are correct.

Q30Recursive Language1 markMSQ
Consider the two lists List I and List II given below:
List IList II(i)Context free languages(a)Closed under union(ii)Recursive languages(b)Not closed under complementation(iii)Regular languages(c)Closed under intersection\begin{array}{|c l|c l|} \hline \textbf{List I} & & \textbf{List II} & \\ \hline \text{(i)} & \text{Context free languages} & \text{(a)} & \text{Closed under union} \\ \hline \text{(ii)} & \text{Recursive languages} & \text{(b)} & \text{Not closed under complementation} \\ \hline \text{(iii)} & \text{Regular languages} & \text{(c)} & \text{Closed under intersection} \\ \hline \end{array}
For matching of items in List I with those in List II, which of the following option(s) is/are CORRECT?

One or more options are correct.