CSE 230 Questions with Correct Answers (Grade A+)
Question 1: In the compilation process, the ______ separates the input source code text into tokens.
Lexical Analyzer (lexer) Middle Stage Assembler Backend Syntax Analyzer (parser)Linker
Answer: Lexical Analyzer (lexer)
Question 2: The ________ translates assembly language code into machine code. Lexical Analysis
Testing Optimization Debugging Syntax Analysis Machine Code Generation Program Execution
Answer: Assembler Debugging Program Execution
Question 3: Select which of the following are NOT part of the compilation process:
Answer: Testing
Question 4: In the compilation process, the ______ arranges the symbol table in memory and generates
final executable machine code. Lexical Analyzer (lexer) Middle Stage Backend Linker Syntax Analyzer
(parser)
Answer: Backend
Question 5: Select which of the following are part of the compilation process: Syntax Analysis Machine
Code Generation Program Execution Optimization Testing Debugging Lexical Analysis
Answer: Machine Code Generation Optimization Lexical Analysis Syntax Analysis
Question 6: Which of the follow best matches the function of the Middle Stage in the compilation
process?
Answer: Performs program analysis and optimization.
Question 7: Which of the follow best matches the definition for an Assembler? Translates assembly
language code into machine code. Performs program analysis and optimization. Arranges the symbol
table in memory and generates final executable machine code. Combines partial programs and
libraries into a single executable. Separates the input source code text into tokens. Performs syntax
rules checking and constructs a symbol table and abstract syntax tree.
Answer: Translates assembly language code into machine code.
Page 1
, Question 8: Which of the follow best matches the definition for Syntax Analysis? Combines partial
programs and libraries into a single executable. Separates the input source code text into tokens.
Performs program analysis and optimization. Arranges the symbol table in memory and generates final
executable machine code. Performs syntax rules checking and constructs a symbol table and abstract
syntax tree. Translates assembly language code into machine code.
Answer: Performs syntax rules checking and constructs a symbol table and abstract syntax tree.
Question 9: In the compilation process, the ______ performs program analysis and optimization.
Answer: Middle Stage
Question 10: Which of the follow best matches the definition for Lexical Analysis? Combines partial
programs and libraries into a single executable. Separates the input source code text into tokens.
Performs program analysis and optimization. Arranges the symbol table in memory and generates final
executable machine code. Performs syntax rules checking and constructs a symbol table and abstract
syntax tree. Translates assembly language code into machine code.
Answer: Separates the input source code text into tokens
Question 11: The ______ of the CPU contains the ALU and Registers, and the interconnection between
them. IO / Peripherals ALU Control Unit Datapath Bus Registers Memory
Answer: Datapath
Question 12: Which of the following best matches the definition of the Bus? Stores a large number of
pieces of information, including program data and instructions. Stores a small number of pieces of
information, commonly the temporary results of calculations. Carries data between the ALU, registers,
memory, and peripherals. Coordinates the flow of information around the processor. Operates on one
or more numerical values to perform calculations and operations on data. Acts as an interface between
the processor and the outside world, including long-term storage and user interfaces. Contains the ALU
and Registers, and the interconnection between them.
Answer: Carries data between the ALU, registers, memory, and peripherals.
Question 13: A computer consists of five major modules. What module does ALU belong to? Memory
Control Unit Data Path Peripheral
Answer: Data Path
Page 2
Question 1: In the compilation process, the ______ separates the input source code text into tokens.
Lexical Analyzer (lexer) Middle Stage Assembler Backend Syntax Analyzer (parser)Linker
Answer: Lexical Analyzer (lexer)
Question 2: The ________ translates assembly language code into machine code. Lexical Analysis
Testing Optimization Debugging Syntax Analysis Machine Code Generation Program Execution
Answer: Assembler Debugging Program Execution
Question 3: Select which of the following are NOT part of the compilation process:
Answer: Testing
Question 4: In the compilation process, the ______ arranges the symbol table in memory and generates
final executable machine code. Lexical Analyzer (lexer) Middle Stage Backend Linker Syntax Analyzer
(parser)
Answer: Backend
Question 5: Select which of the following are part of the compilation process: Syntax Analysis Machine
Code Generation Program Execution Optimization Testing Debugging Lexical Analysis
Answer: Machine Code Generation Optimization Lexical Analysis Syntax Analysis
Question 6: Which of the follow best matches the function of the Middle Stage in the compilation
process?
Answer: Performs program analysis and optimization.
Question 7: Which of the follow best matches the definition for an Assembler? Translates assembly
language code into machine code. Performs program analysis and optimization. Arranges the symbol
table in memory and generates final executable machine code. Combines partial programs and
libraries into a single executable. Separates the input source code text into tokens. Performs syntax
rules checking and constructs a symbol table and abstract syntax tree.
Answer: Translates assembly language code into machine code.
Page 1
, Question 8: Which of the follow best matches the definition for Syntax Analysis? Combines partial
programs and libraries into a single executable. Separates the input source code text into tokens.
Performs program analysis and optimization. Arranges the symbol table in memory and generates final
executable machine code. Performs syntax rules checking and constructs a symbol table and abstract
syntax tree. Translates assembly language code into machine code.
Answer: Performs syntax rules checking and constructs a symbol table and abstract syntax tree.
Question 9: In the compilation process, the ______ performs program analysis and optimization.
Answer: Middle Stage
Question 10: Which of the follow best matches the definition for Lexical Analysis? Combines partial
programs and libraries into a single executable. Separates the input source code text into tokens.
Performs program analysis and optimization. Arranges the symbol table in memory and generates final
executable machine code. Performs syntax rules checking and constructs a symbol table and abstract
syntax tree. Translates assembly language code into machine code.
Answer: Separates the input source code text into tokens
Question 11: The ______ of the CPU contains the ALU and Registers, and the interconnection between
them. IO / Peripherals ALU Control Unit Datapath Bus Registers Memory
Answer: Datapath
Question 12: Which of the following best matches the definition of the Bus? Stores a large number of
pieces of information, including program data and instructions. Stores a small number of pieces of
information, commonly the temporary results of calculations. Carries data between the ALU, registers,
memory, and peripherals. Coordinates the flow of information around the processor. Operates on one
or more numerical values to perform calculations and operations on data. Acts as an interface between
the processor and the outside world, including long-term storage and user interfaces. Contains the ALU
and Registers, and the interconnection between them.
Answer: Carries data between the ALU, registers, memory, and peripherals.
Question 13: A computer consists of five major modules. What module does ALU belong to? Memory
Control Unit Data Path Peripheral
Answer: Data Path
Page 2