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

GATE 2008

185 questions

MCQ 1851-mark 52 · 2-mark 133

Questions 121–125 of 185

Q121Finite Automata2 marksMCQ−0.67 if wrong
Which of the following statements is false?

Q122Regular Language2 marksMCQ−0.67 if wrong
Which of the following languages is (are) non-regular?
L1={0m1n∣0≤m≤n≤10000}L_1 = \{0^m1^n \mid 0 \leq m \leq n \leq 10000\}
L2={w∣wL_2 = \{w \mid w reads the same forward and backward}\}
L3={w∈{0,1}∗∣wL_3 = \{w \in \{0, 1\} ^* \mid w contains an even number of 0's and an even number of 1's}\}

Q123Regular Language2 marksMCQ−0.67 if wrong
Which of the following are regular sets?

I.{anb2m∣n≥0,m≥0}I. \{a^{n}b^{2m}|n\geq 0,m\geq 0\}
II. {anbm∣n=2m}\{a^{n}b^{m}|n=2m\}
III. {anbm∣n≠m}\{a^{n}b^{m}|n\neq m\}
IV. {xcy∣x,y∈{a,b}∗}\{xcy|x,y\in \{a,b\}^*\}

Q124Context Free Grammar2 marksMCQ−0.67 if wrong
A CFG G is given with the following productions where S is the start symbol, A is a non-terminal and a and b are terminals.

S→aS∣AA→aAb∣bAa∣ϵ\begin{array}{l} S \rightarrow a S \mid A \\ A \rightarrow a A b|b A a| \epsilon \end{array}

For the string "aabbaab" how many steps are required to derive the string and how many parse trees are there?

Q125Context Free Grammar2 marksMCQ−0.67 if wrong
A CFG G is given with the following productions where S is the start symbol, A is a non-terminal and a and b are terminals.

S→aS∣AA→aAb∣bAa∣ϵ\begin{array}{l} S \rightarrow a S \mid A \\ A \rightarrow a A b|b A a| \epsilon \end{array}

Which of the following strings is generated by the grammar above?