230

.pdf

School

Arizona State University *

*We aren’t endorsed by this school

Course

113

Subject

Computer Science

Date

Jun 9, 2024

Type

pdf

Pages

99

Uploaded by GeneralPorcupineMaster370

2.1: Inside the Compiler 0.2 / 0.2 pts Question 1 Select which of the following are NOT part of the compilation process: Program Execution Correct! Correct! Syntax Analysis Debugging Correct! Correct! Machine Code Generation Lexical Analysis Optimization Testing Correct! Correct! 0 / 0.2 pts Question 2
In the compilation process, the ______ performs program analysis and optimization. Linker Lexical Analyzer (lexer) Assembler Middle Stage rrect Answer rrect Answer Syntax Analyzer (parser) Backend u Answered u Answered 0.2 / 0.2 pts Question 3 Which of the follow best matches the function of the Backend in the compilation process? Separates the input source code text into tokens. Combines partial programs and libraries into a single executable. Performs syntax rules checking and constructs a symbol table and abstract syntax tree.
Performs program analysis and optimization. Arranges the symbol table in memory and generates final executable machine code. Correct! Correct! 0.2 / 0.2 pts Question 4 Which of the follow best matches the definition for Syntax Analysis? Translates assembly language code into machine code. Performs program analysis and optimization. Performs syntax rules checking and constructs a symbol table and abstract syntax tree. Correct! Correct! Combines partial programs and libraries into a single executable. Arranges the symbol table in memory and generates final executable machine code. Separates the input source code text into tokens. 0.2 / 0.2 pts Question 5
In the compilation process, the ______ arranges the symbol table in memory and generates final executable machine code. Linker Lexical Analyzer (lexer) Syntax Analyzer (parser) Backend Correct! Correct! Middle Stage
2.2: Inside a CPU 0.2 / 0.2 pts Question 1 A computer consists of five major modules. What module does ALU belong to? Memory Control Unit Data Path Correct! Correct! Peripheral 0.2 / 0.2 pts Question 2 The ______ of the CPU act(s) as an interface between the processor and the outside world, including long-term storage and user interfaces. ALU
Datapath Memory Control Unit I/O Peripherals Correct! Correct! Registers 0.2 / 0.2 pts Question 3 Which of the following best matches the definition of the Registers? Operates on one or more numerical values to perform calculations and operations on data. Contains the ALU and Registers, and the interconnection between them. Acts as an interface between the processor and the outside world, including long-term storage and user interfaces. Stores a small number of pieces of information, commonly the temporary results of calculations. Correct! Correct! Stores a large number of pieces of information, including program data and instructions.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help