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

GATE 2016 (Session 1)

65 questions

MCQ 39 · NAT 261-mark 30 · 2-mark 35

Questions 26–30 of 65

Q26Context Free Grammar1 markMCQ−0.33 if wrong
Which of the following languages is generated by the given grammar?
S→aS∣bS∣εS\rightarrow aS|bS|\varepsilon

Q27Undecidability1 markMCQ−0.33 if wrong
Which of the following decision problems are undecidable?
I. Given NFAs N1 and N2, is L(N1)∩\capL(N2) = ϕ\phi?
II. Given a CFG G = (N,Σ\Sigma,P,S) and a string x∈Σ∗x \in\Sigma ^*, does x∈x \in L(G)?
III. Given CFGs G1 and G2, is L(G1) = L(G2)?
IV. Given a TM M, is L(M) = ϕ\phi?

Q28Regular Expression1 markMCQ−0.33 if wrong
Which one of the following regular expressions represents the language: the set of all binary strings having two consecutive 0s and two consecutive 1s?

Q29Intermediate Code Generation1 markNAT
Consider the following code segment.
x =u-t;
y =x*v;
x =y+w;
y =t-z;
y =x*y;
The minimum number of total variables required to convert the above code segment to static single assignment form is__________ .

Q30CPU Scheduling1 markMCQ−0.33 if wrong
Consider an arbitrary set of CPU-bound processes with unequal CPU burst lengths submitted at the same time to a computer system.Which one of the following process scheduling algorithms would minimize the average waiting time in the ready queue?