Skip to main content

Compiler Construction MCQs with Answers

Practice important Compiler Construction MCQs with answers and explanations.

Multiple Choice Questions

Q881: What does the '•' symbol in an LR(1) item represent?
  • A: Parsing position in production
  • B: End of input
  • C: Start of input
  • D: Next token to scan
View Answer
A

Q882: Parser generators exist for which types of grammars?
  • A: LL(1) and LALR(1)
  • B: LR(0) and SLR
  • C: SLR and CLR
  • D: LL(1) and LR(0)
View Answer
A

Q883: Which parser generator is an example of LALR(1) parser?
  • A: YACC
  • B: ANTLR
  • C: JavaCC
  • D: Flex
View Answer
A

Q884: ANTLR is an example of which type of parser generator?
  • A: LL(1)
  • B: LALR(1)
  • C: Recursive Descent
  • D: LR(1)
View Answer
A

Q885: JavaCC uses which parsing technique?
  • A: Recursive Descent
  • B: LALR(1)
  • C: LL(1)
  • D: Operator Precedence
View Answer
A

Q886: YACC stands for:
  • A: Yet Another Compiler Compiler
  • B: Yet Another Code Compiler
  • C: Your Advanced Compiler
  • D: Young Advanced Compiler
View Answer
A

Q887: YACC appeared first in which year?
  • A: 1975
  • B: 1980
  • C: 1990
  • D: 1965
View Answer
A

Q888: The companion application to YACC that helps in lexical analysis is called:
  • A: Lex
  • B: ANTLR
  • C: Flex
  • D: JavaCC
View Answer
A

Q889: The input file for YACC is typically divided into how many sections?
  • A: 3
  • B: 2
  • C: 4
  • D: 1
View Answer
A

Q890: The section between %% and %% in YACC input file contains:
  • A: Rules
  • B: Definitions
  • C: C/C++ functions
  • D: Lexical specifications
View Answer
A

Test Your Knowledge

Take a timed quiz on Compiler Construction

🚀 Start Quiz Now