A) 1 only
B) 2 only
C) 1 and 4 only
D) 1, 2, 3, and 4
Correct Answer
verified
Multiple Choice
A) I and II
B) I and IV
C) III and IV
D) I, III and IV
Correct Answer
verified
Multiple Choice
A) n1 < n2 < n3
B) n1 = n3 < n2
C) n1 = n2 = n3
D) n1 ? n3 ? n2
Correct Answer
verified
Multiple Choice
A) Both P and Q are true
B) P is true and Q is false
C) P is false and Q is true
D) Both P and Q are false
Correct Answer
verified
Multiple Choice
A) Finite state automata
B) Deterministic pushdown automata
C) Non-Deterministic pushdown automata
D) Turing Machine
Correct Answer
verified
Multiple Choice
A) Context-free grammar can be used to specify both lexical and syntax rules.
B) Type checking is done before parsing.
C) High-level language programs can be translated to different Intermediate Representations.
D) Arguments to a function can be passed using the program stack.
Correct Answer
verified
Multiple Choice
A) + is left associative, while ? is right associative
B) + is right associative, while ? is left associative
C) Both + and ? are right associative
D) Both + and ? are left associative
Correct Answer
verified
Multiple Choice
A) LL(1) but not LR(1)
B) LR(1) but not LR(1)
C) Both LL(1) and LR(1)
D) Neither LL(1) nor LR(1)
Correct Answer
verified
Multiple Choice
A) It is the position in a sentential form where the next shift or reduce operation will occur
B) It is non-terminal whose production will be used for reduction in the next step
C) It is a production that may be used for reduction in a future step along with a position in the sentential form where the next shift or reduce operation will occur
D) It is the production p that will be used for reduction in the next step along with a position in the sentential form where the right hand side of the production may be found
Correct Answer
verified
Multiple Choice
A) (i) and (ii)
B) (ii) and (iii)
C) (i) and (iii)
D) None of the above
Correct Answer
verified
Multiple Choice
A) Only I
B) Only II
C) Both I and II
D) Neither I nor II
Correct Answer
verified
Multiple Choice
A) Replace P + P by 2 * P or Replace 3 + 4 by 7.
B) Replace P * 32 by P < < 5
C) Replace P * 0 by 0
D) Replace (P < <4) - P by P * 15
Correct Answer
verified
Multiple Choice
A) 13
B) 6
C) 10
D) 9
Correct Answer
verified
Multiple Choice
A) Only (I)
B) Only (II) and (III)
C) All (I) , (II) , and (III)
D) None of these
Correct Answer
verified
Multiple Choice
A) Only I
B) Only II
C) Both I and II
D) Neither I nor II
Correct Answer
verified
Multiple Choice
A) 2 * 3 + 4
B) 2 * +3 4
C) 2 3 * 4 +
D) 2 3 4+*
Correct Answer
verified
Multiple Choice
A) ambiguous
B) left-recursive
C) right-recursive
D) an operator-grammar
Correct Answer
verified
Multiple Choice
A) a b
B) b b
C) b a
D) b a a b
Correct Answer
verified
Multiple Choice
A) the SLR(1) parser for G has S-R conflicts
B) the LR(1) parser for G has S-R conflicts
C) the LR(0) parser for G has S-R conflicts
D) the LALR(1) parser for G has reduce-reduce conflicts
Correct Answer
verified
Multiple Choice
A) parsing of the program
B) the code generation
C) the lexical analysis of the program
D) dataflow analysis
Correct Answer
verified
Showing 1 - 20 of 24