1. What is compiler ? Junior A. building the parse tree from the input tokens up to the start symbol by reductions, as in LR parsers B. a program that translates an entire source program into machine or intermediate code before execution C. a data structure storing identifiers with their types, scopes, and attributes for use across phases D. a parse tree mirrors every grammar rule, while an abstract syntax tree keeps only meaningful structure Reveal the answer + AI explanation — free account
2. Which term means: "a program that translates an entire source program into machine or intermediate code before execution"? Junior A. compiler B. lexical analysis C. syntax analysis D. parse tree vs AST Reveal the answer + AI explanation — free account
3. Which statement is correct? Junior A. compiler — building the parse tree from the input tokens up to the start symbol by reductions, as in LR parsers B. compiler — the first compiler phase that scans source characters and groups them into tokens C. compiler — a program that translates an entire source program into machine or intermediate code before execution D. compiler — LL scans left-to-right with leftmost derivation top-down, while LR uses rightmost derivation bottom-up Reveal the answer + AI explanation — free account
4. What is interpreter ? Junior A. a machine-independent representation, such as three-address code, generated between front and back ends B. the first compiler phase that scans source characters and groups them into tokens C. a program that executes source code statement by statement without producing a separate binary D. building the parse tree from the start symbol toward the input, as in recursive-descent and LL parsers Reveal the answer + AI explanation — free account
5. Which term means: "a program that executes source code statement by statement without producing a separate binary"? Junior A. token B. parse tree vs AST C. interpreter D. bottom-up parsing Reveal the answer + AI explanation — free account
6. Which statement is correct? Junior A. interpreter — LL scans left-to-right with leftmost derivation top-down, while LR uses rightmost derivation bottom-up B. interpreter — a machine-independent representation, such as three-address code, generated between front and back ends C. interpreter — building the parse tree from the start symbol toward the input, as in recursive-descent and LL parsers D. interpreter — a program that executes source code statement by statement without producing a separate binary Reveal the answer + AI explanation — free account
7. What is lexical analysis ? Junior A. a parse tree mirrors every grammar rule, while an abstract syntax tree keeps only meaningful structure B. the phase that transforms intermediate code to run faster or use fewer resources without changing meaning C. building the parse tree from the start symbol toward the input, as in recursive-descent and LL parsers D. the first compiler phase that scans source characters and groups them into tokens Reveal the answer + AI explanation — free account
8. Which term means: "the first compiler phase that scans source characters and groups them into tokens"? Junior A. intermediate code B. top-down parsing C. lexical analysis D. code optimization Reveal the answer + AI explanation — free account
9. Which statement is correct? Junior A. lexical analysis — a program that translates an entire source program into machine or intermediate code before execution B. lexical analysis — building the parse tree from the start symbol toward the input, as in recursive-descent and LL parsers C. lexical analysis — the first compiler phase that scans source characters and groups them into tokens D. lexical analysis — a data structure storing identifiers with their types, scopes, and attributes for use across phases Reveal the answer + AI explanation — free account
10. What is token ? Junior A. a program that executes source code statement by statement without producing a separate binary B. a data structure storing identifiers with their types, scopes, and attributes for use across phases C. a categorized lexical unit such as a keyword, identifier, operator, or literal D. building the parse tree from the start symbol toward the input, as in recursive-descent and LL parsers Reveal the answer + AI explanation — free account
11. Which term means: "a categorized lexical unit such as a keyword, identifier, operator, or literal"? Junior A. token B. symbol table C. syntax analysis D. code optimization Reveal the answer + AI explanation — free account
12. Which statement is correct? Junior A. token — the phase that transforms intermediate code to run faster or use fewer resources without changing meaning B. token — a categorized lexical unit such as a keyword, identifier, operator, or literal C. token — building the parse tree from the start symbol toward the input, as in recursive-descent and LL parsers D. token — a program that executes source code statement by statement without producing a separate binary Reveal the answer + AI explanation — free account
13. What is syntax analysis ? Junior A. a machine-independent representation, such as three-address code, generated between front and back ends B. the parsing phase that builds a parse tree by checking tokens against the grammar C. the phase that checks meaning rules like type compatibility and declared-before-use using the symbol table D. a categorized lexical unit such as a keyword, identifier, operator, or literal Reveal the answer + AI explanation — free account
14. Which term means: "the parsing phase that builds a parse tree by checking tokens against the grammar"? Junior A. syntax analysis B. code optimization C. lexical analysis D. parse tree vs AST Reveal the answer + AI explanation — free account
15. Which statement is correct? Junior A. syntax analysis — LL scans left-to-right with leftmost derivation top-down, while LR uses rightmost derivation bottom-up B. syntax analysis — building the parse tree from the start symbol toward the input, as in recursive-descent and LL parsers C. syntax analysis — the phase that checks meaning rules like type compatibility and declared-before-use using the symbol table D. syntax analysis — the parsing phase that builds a parse tree by checking tokens against the grammar Reveal the answer + AI explanation — free account
16. What is semantic analysis ? Mid A. the phase that transforms intermediate code to run faster or use fewer resources without changing meaning B. the phase that checks meaning rules like type compatibility and declared-before-use using the symbol table C. a program that executes source code statement by statement without producing a separate binary D. a program that translates an entire source program into machine or intermediate code before execution Reveal the answer + AI explanation — free account
17. Which term means: "the phase that checks meaning rules like type compatibility and declared-before-use using the symbol table"? Mid A. code generation B. semantic analysis C. bottom-up parsing D. interpreter Reveal the answer + AI explanation — free account
18. Which statement is correct? Mid A. semantic analysis — the phase that checks meaning rules like type compatibility and declared-before-use using the symbol table B. semantic analysis — the first compiler phase that scans source characters and groups them into tokens C. semantic analysis — the parsing phase that builds a parse tree by checking tokens against the grammar D. semantic analysis — a program that translates an entire source program into machine or intermediate code before execution Reveal the answer + AI explanation — free account
19. What is intermediate code ? Mid A. a categorized lexical unit such as a keyword, identifier, operator, or literal B. LL scans left-to-right with leftmost derivation top-down, while LR uses rightmost derivation bottom-up C. a machine-independent representation, such as three-address code, generated between front and back ends D. building the parse tree from the start symbol toward the input, as in recursive-descent and LL parsers Reveal the answer + AI explanation — free account
20. Which term means: "a machine-independent representation, such as three-address code, generated between front and back ends"? Mid A. code optimization B. syntax analysis C. intermediate code D. token Reveal the answer + AI explanation — free account
21. Which statement is correct? Mid A. intermediate code — a categorized lexical unit such as a keyword, identifier, operator, or literal B. intermediate code — a machine-independent representation, such as three-address code, generated between front and back ends C. intermediate code — LL scans left-to-right with leftmost derivation top-down, while LR uses rightmost derivation bottom-up D. intermediate code — the first compiler phase that scans source characters and groups them into tokens Reveal the answer + AI explanation — free account
22. What is code optimization ? Mid A. the phase that checks meaning rules like type compatibility and declared-before-use using the symbol table B. LL scans left-to-right with leftmost derivation top-down, while LR uses rightmost derivation bottom-up C. the phase that transforms intermediate code to run faster or use fewer resources without changing meaning D. the parsing phase that builds a parse tree by checking tokens against the grammar Reveal the answer + AI explanation — free account
23. Which term means: "the phase that transforms intermediate code to run faster or use fewer resources without changing meaning"? Mid A. code optimization B. syntax analysis C. intermediate code D. interpreter Reveal the answer + AI explanation — free account
24. Which statement is correct? Mid A. code optimization — a program that executes source code statement by statement without producing a separate binary B. code optimization — the phase that checks meaning rules like type compatibility and declared-before-use using the symbol table C. code optimization — a program that translates an entire source program into machine or intermediate code before execution D. code optimization — the phase that transforms intermediate code to run faster or use fewer resources without changing meaning Reveal the answer + AI explanation — free account
25. What is code generation ? Mid A. the parsing phase that builds a parse tree by checking tokens against the grammar B. the final phase that maps optimized intermediate code into target machine instructions C. building the parse tree from the start symbol toward the input, as in recursive-descent and LL parsers D. a categorized lexical unit such as a keyword, identifier, operator, or literal Reveal the answer + AI explanation — free account
26. Which term means: "the final phase that maps optimized intermediate code into target machine instructions"? Mid A. interpreter B. token C. LL vs LR parsing D. code generation Reveal the answer + AI explanation — free account
27. Which statement is correct? Mid A. code generation — the first compiler phase that scans source characters and groups them into tokens B. code generation — the final phase that maps optimized intermediate code into target machine instructions C. code generation — the phase that checks meaning rules like type compatibility and declared-before-use using the symbol table D. code generation — a categorized lexical unit such as a keyword, identifier, operator, or literal Reveal the answer + AI explanation — free account
28. What is symbol table ? Mid A. the final phase that maps optimized intermediate code into target machine instructions B. a data structure storing identifiers with their types, scopes, and attributes for use across phases C. a program that translates an entire source program into machine or intermediate code before execution D. the phase that transforms intermediate code to run faster or use fewer resources without changing meaning Reveal the answer + AI explanation — free account
29. Which term means: "a data structure storing identifiers with their types, scopes, and attributes for use across phases"? Mid A. symbol table B. bottom-up parsing C. token D. intermediate code Reveal the answer + AI explanation — free account
30. Which statement is correct? Mid A. symbol table — a data structure storing identifiers with their types, scopes, and attributes for use across phases B. symbol table — building the parse tree from the start symbol toward the input, as in recursive-descent and LL parsers C. symbol table — the final phase that maps optimized intermediate code into target machine instructions D. symbol table — a parse tree mirrors every grammar rule, while an abstract syntax tree keeps only meaningful structure Reveal the answer + AI explanation — free accountShowing 30 of 42 Compilers · Phases questions — the full set, with answers, explanations and an AI tutor on every question, is inside.