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

GATE 2003

107 questions

MCQ 1071-mark 107

Questions 81–85 of 107

Q81Turing Machine1 markMCQ−0.33 if wrong
A single tape Turing Machine M has two states q0 and q1, of which q0 is the starting state. The tape alphabet of M is {0, 1, B} and its input alphabet is {0, 1}. The symbol B is the blank symbol used to indicate end of an input string. The transition function of M is described in the following table
0 1 B q0 q1 q1, 1, R q1, 1, R Halt q1, 1, R q0, 1, L q0, B, L
The table is interpreted as illustrated below. The entry (q1, 1, R) in row q0 and column 1 signifies that if M is in state q0 and reads 1 on the current tape square, then it writes 1 on the same tape square, moves its tape head one position to the right and transitions to state q1. Which of the following statements is true about M ?

Q82Recursive Language1 markMCQ−0.33 if wrong
Nobody knows yet if P = NP. Consider the language L defined as follows : L={(0+1)∗      ifP=NPΦ    otherwiseL=\left\{\begin{matrix} (0+1)^{*}\; \; \; if P=NP\\ \Phi \; \; otherwise \end{matrix}\right.
Which of the following statements is true ?

Q83Undecidability1 markMCQ−0.33 if wrong
Consider two languages L1 and L2 each on the alphabet Σ\Sigma. Let f:Σ∗→Σ∗f:\Sigma^* \rightarrow \Sigma^* be a polynomial time computable bijection such that (∀x)[x∈L1    iff    f(x)∈L2](\forall x)[x \in L1 \; \; \text{iff} \; \; f(x) \in L2]. Further, let f−1f^{-1} be also polynomial time computable. Which of the following CANNOT be true?

Q84Parsing1 markMCQ−0.33 if wrong
Consider the grammar shown below
S→iEtSS′∣aS\rightarrow iEtSS'|a
S′→eS∣ϵS'\rightarrow eS|\epsilon
E→bE\rightarrow b
In the predictive parse table. M, of this grammar, the entries M[S',e] and M[S',$] respectively are

Q85Parsing1 markMCQ−0.33 if wrong
Assume that the SLR parser for a grammar G has n1 states and the LALR parser for G has n2 states. The relationship between n1 and n2 is