128 Flashcards
(122 cards)
Select which of the following are part of the compilation process:
Lexical Analysis, Syntax Analysis, Optimization, linking, code generation
In the compilation process, the ______ performs program analysis and optimization.
Middle Stage
Which of the follow best matches the definition for Syntax Analysis?
Performs syntax rules checking and constructs a symbol table and abstract syntax tree.
Which of the follow best matches the definition for Lexical Analysis?
Separates the input source code text into tokens.
Which of the follow best matches the function of the Middle Stage in the compilation process?
Performs program analysis and optimization.
In the compilation process, the ______ separates the input source code text into tokens.
Lexical Analyzer (lexer)
A computer consists of five major modules. What module do registers belong to?
Data Path
The ______ of the CPU stores a small number of pieces of information, commonly the temporary results of calculations.
Registers
Which of the following best matches the definition of the Bus?
Carries data between the ALU, registers, memory, and peripherals.
The ______ of the CPU acts as an interface between the processor and the outside world, including long-term storage and user interfaces.
IO / Peripherals
A computer consists of five major modules. What module does ALU belong to?
Data Path
If two computers made by different companies have the same machine language, that means they have the same:
Architecture
Which of the following best matches the definition of the Datapath?
Contains the ALU and Registers, and the interconnection between them.
The ______ of the CPU carries data between the ALU, registers, memory, and peripherals.
Bus
The ______ of the CPU contains the ALU and Registers, and the interconnection between them.
Datapath
Which of the following best matches the definition of the Control Unit?
Coordinates the flow of information around the processor.
The ______ of the CPU stores a small number of pieces of information, commonly the temporary results of calculations.
Registers
Instruction cycle
fetch, decode, execute, store
Decode Hardware
Data Memory, control unit
Fetch Hardware
Instruction Memory, program counter
Execute Hardware
ALU
Store Hardware
Data Memory, program counter
System Clock
Coordinates Activity, latches memory
Select the hardware that is active during the Execute Stage of the instruction cycle:
ALU