Integrate the ALU designed in the Digital Electronics section into the microprocessor simulation.

Post Test

Q1. What is the role of the ALU in executing instructions in a microprocessor?

A) Managing input/output operations

B) Storing program data

C) Performing arithmetic and logical operations

D) Controlling the timing of instruction execution

Q2. In a scenario where the ALU performs a logical AND operation on two register values, where would the result of the operation be placed?

A) In a separate output register specified by the ALU

B) In one of the input registers

C) Instruction Register In the status register to update the flags

D) In the memory unit, ready for the next instruction

Q3. What kind of operations can an ALU perform besides arithmetic tasks?

A) Memory management

B) Logical operations like AND, OR, and NOT

C) Direct input/output communication

D) Program control flow

Q4. What is the primary function of the registers when working with the ALU?

A) To store the ALU’s output temporarily before sending it to memory

B) To hold the opcode for the ALU’s operation

C) To provide input data for the ALU’s operations and store the results

D) To provide clock signals to synchronize the ALU

Q5. When an addition operation is performed by the ALU, where does the data typically come from?

A) From external memory

B) From the ALU's internal registers

C) From the register file or the input registers

D) Directly from the program counter

Lab contributed by: BTKIT, Dwarahat,Uttarakhand