Simulating Microcontroller Behavior Using Flip-Flops and Logic Gates

Post Test

Q1. Which type of flip-flop is commonly used in registers for storing data in a microcontroller simulation?

a) T flip-flop

b) JK flip-flop

c) D flip-flop

d) SR flip-flop


Q2. In the microcontroller simulation, what is the function of the clock signal in registers?

a) It performs logical operations

b) It triggers data storage at specific intervals

c) It controls the ALU’s operations

d) It sets the value of status flags


Q3. What happens to the carry flag after an addition operation in the ALU if the result exceeds the register’s maximum value?

a) It is set to one

b) It is reset to zero

c) It remains unchanged

d) It is set to match the input value


Q4. In your simulation, which logic gate outputs a 1 only if all of its inputs are 1?

a) OR gate

b) Xor gate

c) Not gate

d) AND gate


Q5. When the store input of a register is inactive, what effect does it have on the register during a clock pulse?

a) The register updates its value

b) The register performs an arithmetic operation

c) The register ignores the input data and retains its current value

d) The register resets to zero


Lab contributed by: BTKIT, Dwarahat,Uttarakhand