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

GATE 2009

66 questions

MCQ 661-mark 24 · 2-mark 42

Questions 41–45 of 66

Q41Finite Automata2 marksMCQ−0.67 if wrong
0 0 1 1 0 1
The above DFA accepts the set of all strings over {0,1} that

Q42Finite Automata2 marksMCQ−0.67 if wrong
Given the following state table of an FSM with two states A and B, one input and one output:
Present State A Present State B Input Next State A Next State B Output 0 0 0 0 0 1 0 1 0 1 0 0 1 0 0 0 1 0 1 1 0 1 0 0 0 0 1 0 1 0 0 1 1 0 0 1 1 0 1 0 1 1 1 1 1 0 0 1
If the initial state is A = 0, B=0, what is the minimum length of an input string which will take the machine to the state A=0, B=1 with Output=1?

Q43Finite Automata1 markMCQ−0.33 if wrong
Which one of the following is FALSE?

Q44Regular Language1 markMCQ−0.33 if wrong
S→\rightarrowaSa|bSb|a|b; The language generated by the above grammar over the alphabet {a,b} is the set of

Q45Context Free Language2 marksMCQ−0.67 if wrong
Let L=L1∩L2L=L_{1}\cap L_{2} , where L1L_{1} and L2L_{2} are languages as defined below:
L1={ambmcanbn∣m,n≥0}L_{1}= \{a^{m}b^{m} c a^{n} b^{n}|m,n\geq 0 \}
L2={aibjck∣i,j,k≥0}L_{2}=\{a^{i}b^{j}c^{k}|i,j,k\geq 0 \}

Then L is