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

GATE 2003

107 questions

MCQ 1071-mark 107

Questions 76–80 of 107

Q76Context Free Grammar1 markMCQ−0.33 if wrong
Consider the grammar shown below.
S →\rightarrow C C
C →\rightarrow cC | d
The grammar is

Q77Context Free Grammar1 markMCQ−0.33 if wrong
Let G = ({S}, {a, b} R, S) be a context free grammar where the rule set R is S→aSb∣SS∣ϵS\rightarrow aSb|SS|\epsilon
Which of the following statements is true?

Q78Context Free Grammar1 markMCQ−0.33 if wrong
Which of the following suffices to convert an arbitrary CFG to an LL(1) grammar?

Q79Context Free Language1 markMCQ−0.33 if wrong
If the strings of a language L can be effectively enumerated in lexicographic (i.e. alphabetic) order, which of the following statements is true?

Q80Turing Machine1 markMCQ−0.33 if wrong
Define languages L0 and L1 as follows :
  L0 = {< M, w, 0 > | M halts on w}
L1 = {< M, w, 1 > | M does not halts on w}   
Here <M,w,i>< M, w, i > is a triplet, whose first component. M is an encoding of a Turing Machine, second component, w, is a string, and third component, i, is a bit. Let L=L0∪L1L=L0 \cup L1. Which of the following is true ?