GATE 2022 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2022

65 questions

MCQ 32 · MSQ 15 · NAT 181-mark 30 · 2-mark 35

Questions 26–30 of 65

Q26Deadlock1 markMSQ
Which of the following statements is/are TRUE with respect to deadlocks?

One or more options are correct.

Q27Group Theory1 markMSQ
Which of the following statements is/are TRUE for a group GG?

One or more options are correct.

Q28Binary Search Tree1 markNAT
Suppose a binary search tree with 1000 distinct elements is also a complete binary tree. The tree is stored using the array representation of binary heap trees. Assuming that the array indices start with 0, the 3rd largest element of the tree is stored at index _______.

Q29Parsing1 markNAT
Consider the augmented grammar with {+,∗,(,),id}\{+, *, (, ), id \} as the set of terminals.
S′→SS→S+R∣RR→R∗P∣PP→(S)∣id\begin{aligned}&S' \rightarrow S \\ &S \rightarrow S+R|R \\ &R \rightarrow R*P|P \\ &P \rightarrow (S)|id \end{aligned}
If I0I_0 is the set of two LR(0)LR(0) items {[S′→S.],[S→S.+R]}\{ [S' \rightarrow S.], [S \rightarrow S.+R] \}, then goto(closure(I0),+)goto(closure(I_0 ),+) contains exactly ______ items.

Q30Graph Theory1 markNAT
Consider a simple undirected graph of 10 vertices. If the graph is disconnected, then the maximum number of edges it can have is .