5. How does the ALU know which function to perform?
The arithmetic logical unit (ALU) carries out the logical operations such as comparisons and arithmetic operations such as addition and multiplication, required during the program execution.
The ALU knows which operations to perform because it is controlled by signals from the control unit.