CSE 230 Questions with Correct Answers (Grade A+)
Question 1: In the compilation process, the ______ arranges the symbol table in memory and generates
final executable machine code.
Answer: Backend
Question 2: Select which of the following are part of the compilation process:
Answer: Lexical Analysis Syntax Analysis Optimization Linking Code Generation
Question 3: In the compilation process, the ______ performs program analysis and optimization.
Answer: Middle Stage
Question 4: Which of the follow best matches the definition for Syntax Analysis?
Answer: Performs syntax rules checking and constructs a symbol table and abstract syntax tree.
Question 5: Which of the follow best matches the definition for Lexical Analysis?
Answer: Separates the input source code text into tokens.
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: In the compilation process, the ______ separates the input source code text into tokens.
Answer: Lexical Analyzer (lexer)
Question 8: A computer consists of five major modules. What module do registers belong to?
Answer: Data Path
Question 9: The ______ of the CPU stores a small number of pieces of information, commonly the
temporary results of calculations.
Answer: Registers
Question 10: Which of the following best matches the definition of the Bus?
Answer: Carries data between the ALU, registers, memory, and peripherals.
Page 1
, Question 11: The ______ of the CPU acts as an interface between the processor and the outside world,
including long-term storage and user interfaces.
Answer: IO / Peripherals
Question 12: A computer consists of five major modules. What module does ALU belong to?
Answer: Data Path
Question 13: If two computers made by different companies have the same machine language, that
means they have the same:
Answer: Architecture
Question 14: Which of the following best matches the definition of the Datapath?
Answer: Contains the ALU and Registers, and the interconnection between them.
Question 15: The ______ of the CPU carries data between the ALU, registers, memory, and
peripherals.
Answer: Bus
Question 16: The ______ of the CPU contains the ALU and Registers, and the interconnection between
them.
Answer: Datapath
Question 17: Which of the following best matches the definition of the Control Unit?
Answer: Coordinates the flow of information around the processor.
Question 18: Instruction cycle
Answer: fetch, decode, execute, store
Question 19: Decode Hardware
Answer: Data Memory Control Unit
Question 20: Fetch Hardware
Answer: Instruction Memory Program Counter
Page 2
Question 1: In the compilation process, the ______ arranges the symbol table in memory and generates
final executable machine code.
Answer: Backend
Question 2: Select which of the following are part of the compilation process:
Answer: Lexical Analysis Syntax Analysis Optimization Linking Code Generation
Question 3: In the compilation process, the ______ performs program analysis and optimization.
Answer: Middle Stage
Question 4: Which of the follow best matches the definition for Syntax Analysis?
Answer: Performs syntax rules checking and constructs a symbol table and abstract syntax tree.
Question 5: Which of the follow best matches the definition for Lexical Analysis?
Answer: Separates the input source code text into tokens.
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: In the compilation process, the ______ separates the input source code text into tokens.
Answer: Lexical Analyzer (lexer)
Question 8: A computer consists of five major modules. What module do registers belong to?
Answer: Data Path
Question 9: The ______ of the CPU stores a small number of pieces of information, commonly the
temporary results of calculations.
Answer: Registers
Question 10: Which of the following best matches the definition of the Bus?
Answer: Carries data between the ALU, registers, memory, and peripherals.
Page 1
, Question 11: The ______ of the CPU acts as an interface between the processor and the outside world,
including long-term storage and user interfaces.
Answer: IO / Peripherals
Question 12: A computer consists of five major modules. What module does ALU belong to?
Answer: Data Path
Question 13: If two computers made by different companies have the same machine language, that
means they have the same:
Answer: Architecture
Question 14: Which of the following best matches the definition of the Datapath?
Answer: Contains the ALU and Registers, and the interconnection between them.
Question 15: The ______ of the CPU carries data between the ALU, registers, memory, and
peripherals.
Answer: Bus
Question 16: The ______ of the CPU contains the ALU and Registers, and the interconnection between
them.
Answer: Datapath
Question 17: Which of the following best matches the definition of the Control Unit?
Answer: Coordinates the flow of information around the processor.
Question 18: Instruction cycle
Answer: fetch, decode, execute, store
Question 19: Decode Hardware
Answer: Data Memory Control Unit
Question 20: Fetch Hardware
Answer: Instruction Memory Program Counter
Page 2