Questions: Arithmetic Logic Unit (ALU)

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

An ALU needs to compute A − B. Given that no subtraction circuit exists in the design, how does it perform the operation?

AIt routes the operands to a separate subtraction unit outside the ALU
BIt computes NOT(A) + B + 1 using the adder
CIt computes A + NOT(B) + 1 using the adder, exploiting two's complement negation
DIt cannot perform subtraction without a dedicated subtractor circuit
Question 2 Multiple Choice

A high-level language statement `if (a < b)` is compiled and executed on a CPU. What does the ALU actually do to evaluate this condition?

AIt reads the values of a and b from memory and compares their addresses
BIt performs a − b, discards the numeric result, and checks the negative and overflow flags
CIt uses a dedicated comparison circuit separate from the arithmetic path
DThe control unit evaluates the condition directly without invoking the ALU
Question 3 True / False

The ALU's function-select inputs determine which operation (ADD, AND, OR, etc.) is performed on the current clock cycle.

TTrue
FFalse
Question 4 True / False

The ALU decides which arithmetic or logic operation to perform based on the instruction currently being executed.

TTrue
FFalse
Question 5 Short Answer

Why can an ALU perform subtraction using only an adder circuit, and why does this require two's complement representation?

Think about your answer, then reveal below.