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

GATE 2006

191 questions

MCQ 1911-mark 191

Questions 136–140 of 191

Q136Recursive Language1 markMCQ−0.33 if wrong
Let L1 be regular language, L2 be a deterministic context-free language and L3 a recursively enumerable, but not recursive, language. Which one of the following statements is false?

Q137Recursive Language1 markMCQ−0.33 if wrong
For S∈(0+1)∗S \in (0+1)^{*}, let d(s) denote the decimal value of s (e.g. d(101)=5).
Let L={s ∈\in (0+1)*| d(s) mod 5=2 and d(s) mod 7≠\neq4}
Which one of the following statements is true?

Q138Parsing1 markMCQ−0.33 if wrong
The grammar

S→\rightarrowAC|CB
C→\rightarrowaCb|ε\varepsilon
A→\rightarrowaA|a
B→\rightarrowBb|b

generates the language L={aibj∣i≠j}L=\{a^{i}b^{j}|i\neq j\} , what is the length of the derivation (number of steps starting from S) to generate the string albma^{l}b^{m} with l≠ml \neq m?

Q139Parsing1 markMCQ−0.33 if wrong
Which one of the following grammars generates the language
L={aibj∣i≠j}L=\{a^{i}b^{j}|i\neq j\}
(A)                                   (B)  S → aS | Sb | a | b
    S → AC | CB
    C → aCb | a | b
    A → aA | ∈
    B → Bb | ∈
(C)                                   (D)
    S → AC | CB                           S → AC | CB
    C → aCb | ∈                           C → aCb | ∈
    A → aA | ∈                            A → aA | a
    B → Bb | ∈                            B → Bb | b

Q140Parsing1 markMCQ−0.33 if wrong
Consider the following grammar
S →\rightarrow FR
R →\rightarrow* S | ε\varepsilon
F →\rightarrow id
In the predictive parser table, M, of the grammar the entries M[S, id] and M[R,$] respectively