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

GATE 2014 (Session 1)

65 questions

MCQ 40 · NAT 251-mark 30 · 2-mark 35

Questions 41–45 of 65

Q41Deadlock2 marksMCQ−0.67 if wrong
An operating system uses the Banker's algorithm for deadlock avoidance when managing the allocation of three resource types X, Y, and Z to three processes P0, P1, and P2. The table given below presents the current system state. Here, the Allocation matrix shows the current number of resources of each type allocated to each process and the Max matrix shows the maximum number of resources of each type required by each process during its execution.
AllocationMax XYZ XYZ P0001843 P1320620 P2211333
There are 3 units of type X, 2 units of type Y and 2 units of type Z still available. The system is currently in a safe state. Consider the following independent requests for additional resources in the current state:
REQ1: P0 requests 0 units of X, 0 units of Y and 2 units of Z
REQ2: P1 requests 2 units of x, 0 units of Y and 0 units of Z
Which one of the following is TRUE?

Q42CPU Scheduling2 marksNAT
Consider the following set of processes that need to be scheduled on a single CPU. All the times are given in milliseconds
Process Name Arrival Time Execution Time A 0 6 B 3 2 C 5 4 D 7 6 E 10 3
Using the shortest remaining time first scheduling algorithm, the average process turnaround time (in msec) is ________.

Q43Memory Management2 marksNAT
Assume that there are 3 page frames which are initially empty. If the page reference string 1, 2, 3, 4, 2, 1, 5, 3, 2, 4, 6, the number of page faults using the optimal replacement policy is ______

Q44Parsing2 marksMCQ−0.67 if wrong
A canonical set of items is given below
S→L.>R\rightarrow L. \gt R
Q→\rightarrowR.
On input symbol <\lt the set has

Q45Recursive Language2 marksMCQ−0.67 if wrong
Let L be a language and Lˉ\bar{L} be its complement. Which of the following is NOT a viable possibility?