CPUs and architecture
What is the role of the ALU (arithmetic logic unit) in a CPU?
- AStoring instructions and data long term
- BDisplaying images on the screen
- CPerforming calculations such as addition and logical operations
Show answer and explanation
Answer: C. Performing calculations such as addition and logical operations
The ALU (arithmetic logic unit) is the circuit that performs arithmetic operations such as addition and subtraction and logical operations such as AND, OR and comparison. Following the decoded instruction, it operates on data received from registers and returns the result.
- A. Long-term storage is the role of storage devices.
- B. Displaying images is the role of the GPU and display circuitry.
- C. Correct. It performs arithmetic and logical operations.