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

GATE 2004

199 questions

MCQ 1991-mark 199

Questions 121–125 of 199

Q121Regular Expression1 markMCQ−0.33 if wrong
Which one of the following regular expressions is NOT equivalent to the regular expression (a+b+c)∗?(a + b + c)^*?

Q122Finite Automata1 markMCQ−0.33 if wrong
The following finite state machine accepts all those binary strings in which the number of 1's and 0's are respectively.
110001110001

Q123Regular Grammar1 markMCQ−0.33 if wrong
Consider the following grammar G:
S → bS | aA | b
A → bA | aB
B → bB | aS | a

Let Na(w) and Nb(w) denote the number of a's and b's in a string w respectively.
The language L(G)⊆{a,b}+L(G)\subseteq \{a,b\}^{+} generated by G is

Q124Regular Grammar1 markMCQ−0.33 if wrong
Let M=(K,Σ,σ,s,F)M=(K, \Sigma,\sigma ,s, F) be a finite state automaton, where
K={A,B},Σ={a,b},s=A,F={B}K=\{A, B\}, \Sigma=\{a, b\}, s=A, F=\{B\}
σ(A,a)=A,σ(A,b)=B,σ(B,a)=B and σ(B,b)=A\sigma(A, a)=A, \sigma(A, b)=B, \sigma(B, a)=B \text { and } \sigma(B, b)=A
A grammar to generate the language accepted by M can be specified as
G=(V,Σ,R,S), where V=K∪Σ, and S=AG=(V, \Sigma, R, S), \text { where } V=K \cup \Sigma, \text { and } S=A
Which one of the following set of rules will make L(G) = L(M) ?

Q125Context Free Grammar1 markMCQ−0.33 if wrong
Which one of the following statements is FALSE?