Home > Computer Engineering > Quizzes > Compiler Design MCQs
Compiler Design MCQs
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 28% Most missed: “Which tool is used for grouping of characters in tokens in the compiler?”
Compiler Design MCQs
Time left 00:00
25 Questions

1. Which is considered as the sequence of characters in a token?
2. In which derivation the right-most non-terminal symbol is replaced at each step?
3. Which statement is an abstract form of intermediate code?
4. Users write the programs in which language?
5. The execution time of the code depends on?
6. Which compiler runs on one machine and generates code for multiple machines?
7. The most general phase of structured grammar is?
8. From the following grammars, which describes the lexical syntax?
9. What is the linker?
10. Which graph describes the basic block and successor relationship?
11. Which of the following is used in various stages or phases of the compiler?
12. In the compiler, the function of using intermediate code is:
13. The value of which variable is updated inside the loop by a loop-invariant value?
14. Leaf nodes in a parse tree indicate?
15. The output of the lexical analyzer is _______
16. Which of the following parser is a top-down parser?
17. Which algorithm invokes a function GETREG()?
18. Which of the following are labeled by operator symbol?
19. Which symbol is not related to context-free grammar?
20. Does the compiler program translate the whole source code in one step?
21. Which phase of the compiler is also known as Scanner?
22. Which of the following component is important for semantic analysis?
23. Which derivation is generated by the top-down parser?
24. Which parser is known as the shift-reduce parser?
25. Which grammar gives multiple parse trees for the same string?