1. : What is the primary purpose of the status register in a microprocessor?
(A) To control the clock speed
(B) To store data temporarily
(C) To indicate the state of the processor
(D) To manage memory operations
2. : Which flag is set when the result of an arithmetic operation is zero?
(A) Carry Flag
(B) Zero Flag
(C) Sign Flag
(D) Parity Flag
3. : The Carry Flag (CF) is set when a(n) ______ occurs during an arithmetic operation.
(A) Overflow
(B) Underflow
(C) Borrow or carry
(D) Shift
4. : What is the function of the Parity Flag (PF)?
(A) Indicates if a result is positive or negative
(B) Checks if an overflow occurred
(C) Determines the parity of the result (even or odd)
(D) Indicates if a division by zero occurred
5. : Which flag is used to indicate whether a subtraction resulted in a borrow?
(A) Carry Flag
(B) Overflow Flag
(C) Zero Flag
(D) Sign Flag
6. : What does the Overflow Flag (OF) indicate?
(A) An arithmetic result exceeds the capacity of the destination operand
(B) A logical error in the program
(C) Memory overflow
(D) A division by zero error
7. : When the result of an operation is negative, which flag is set?
(A) Sign Flag
(B) Zero Flag
(C) Carry Flag
(D) Overflow Flag
8. : The Auxiliary Carry Flag (AF) is mainly used for which type of arithmetic operation?
(A) Floating-point
(B) Addition
(C) Binary-coded decimal (BCD)
(D) Multiplication
9. : The Zero Flag (ZF) is cleared when the result of an arithmetic operation is:
(A) Non-zero
(B) Negative
(C) Positive
(D) Overflow
10. : What is the size of the flags register in most x86 processors?
(A) 8 bits
(B) 16 bits
(C) 32 bits
(D) 64 bits
11. : Which of the following flags is NOT a part of the condition code register (CCR)?
(A) Overflow Flag
(B) Zero Flag
(C) Parity Flag
(D) Stack Pointer Flag
12. : In a microcontroller, which flag is commonly set when a subtraction results in a borrow?
(A) Carry Flag
(B) Overflow Flag
(C) Zero Flag
(D) Auxiliary Flag
13. : The Sign Flag is set if the result of an operation is:
(A) Positive
(B) Even
(C) Negative
(D) Zero
14. : In which scenario is the Carry Flag set to 1?
(A) When an arithmetic operation results in overflow
(B) When an arithmetic operation causes a borrow or carry
(C) When an operand exceeds the memory limit
(D) When a division results in a non-integer value
15. : The purpose of the Direction Flag (DF) in x86 processors is to:
(A) Control data transfer direction in string instructions
(B) Indicate the result of division
(C) Store the program counter
(D) Control interrupts
16. : What does the Interrupt Flag (IF) control in a processor?
(A) Execution of arithmetic instructions
(B) Enabling and disabling of interrupts
(C) Direction of memory access
(D) Status of peripheral devices
17. : Which flag is cleared to prevent interrupts in a microprocessor?
(A) Zero Flag
(B) Overflow Flag
(C) Interrupt Flag
(D) Direction Flag
18. : The Overflow Flag (OF) is set during which of the following conditions?
(A) Division by zero
(B) Memory read failure
(C) When signed overflow occurs in arithmetic operations
(D) When even parity is detected
19. : When a processor encounters an even number of 1’s in a result, the Parity Flag is:
(A) Set to 1
(B) Cleared to 0
(C) Ignored
(D) Inverted
20. : What does the Auxiliary Carry Flag (AF) indicate?
(A) A carry from bit 3 to bit 4 in a binary addition
(B) A borrow during subtraction
(C) A sign change in the result
(D) Overflow in multiplication
21. : Which flag is used to detect errors in transmission systems?
(A) Zero Flag
(B) Carry Flag
(C) Parity Flag
(D) Sign Flag
22. : The Direction Flag (DF) is cleared to make string operations process:
(A) Left to right
(B) Right to left
(C) Bottom to top
(D) Random order
23. : Which register contains flags like Zero, Carry, and Overflow in most processors?
(A) Data Register
(B) Instruction Register
(C) Status Register
(D) Memory Address Register
24. : When the result of an addition overflows a signed integer’s range, which flag is set?
(A) Overflow Flag
(B) Carry Flag
(C) Zero Flag
(D) Sign Flag
25. : Which flag can indicate that no more instructions should be executed in a pipeline?
(A) Zero Flag
(B) Halt Flag
(C) Interrupt Flag
(D) Direction Flag
26. : In a microprocessor, which flag is checked to determine if a loop operation should continue?
(A) Sign Flag
(B) Carry Flag
(C) Zero Flag
(D) Overflow Flag
27. : When the result of an arithmetic operation is even, which flag will be set?
(A) Sign Flag
(B) Zero Flag
(C) Parity Flag
(D) Carry Flag
28. : Which of the following flags will be cleared if the result of an operation is positive?
(A) Zero Flag
(B) Carry Flag
(C) Sign Flag
(D) Overflow Flag
29. : The Zero Flag is primarily used to:
(A) Indicate a non-zero result
(B) Indicate that a division was performed
(C) Check for an overflow error
(D) Indicate whether the result of an operation is zero
30. : Which flag is used to signal when an arithmetic result is too large for the destination operand?
(A) Carry Flag
(B) Zero Flag
(C) Overflow Flag
(D) Sign Flag
31. : The Direction Flag (DF) is typically used in which type of instruction?
(A) Arithmetic
(B) Logical
(C) String
(D) Branch
32. : Which flag is often checked before branching in conditional jump instructions?
(A) Parity Flag
(B) Sign Flag
(C) Carry Flag
(D) Zero Flag
33. : In x86 architecture, which flag is set if the result is less than zero in a subtraction operation?
(A) Carry Flag
(B) Sign Flag
(C) Zero Flag
(D) Overflow Flag
34. : What is the main function of the Status Register in most CPUs?
(A) To store memory addresses
(B) To manage hardware interrupts
(C) To reflect the result of the last operation
(D) To indicate the power status
35. : Which of the following flags is used in decimal arithmetic operations?
(A) Sign Flag
(B) Auxiliary Carry Flag
(C) Overflow Flag
(D) Direction Flag
36. : The Carry Flag (CF) is typically checked in which of the following operations?
(A) Branching
(B) Addition and subtraction
(C) Multiplication
(D) Memory access
37. : When the Zero Flag (ZF) is set, it usually indicates:
(A) An overflow occurred
(B) The result was negative
(C) The result was zero
(D) The operation was not performed
38. : What happens to the Overflow Flag if an addition operation exceeds the signed integer limit?
(A) It is set to 1
(B) It is cleared to 0
(C) It causes a system interrupt
(D) It resets the CPU
39. : The Parity Flag is used to check:
(A) Whether an instruction is valid
(B) The parity (even or odd) of the number of 1’s in the result
(C) The overflow of a result
(D) The size of the operand
40. : Which flag indicates that a string operation will proceed from lower to higher memory addresses?
(A) Sign Flag
(B) Direction Flag (DF)
(C) Carry Flag
(D) Overflow Flag
41. : When a microprocessor executes a logical AND operation, which flag is NOT affected?
(A) Zero Flag
(B) Sign Flag
(C) Carry Flag
(D) Parity Flag
42. : Which flag is typically affected by an arithmetic right shift operation?
(A) Zero Flag
(B) Sign Flag
(C) Parity Flag
(D) Carry Flag
43. : In an x86 processor, the condition of which flag is used to control the IN/OUT instructions?
(A) Direction Flag
(B) Interrupt Flag
(C) Carry Flag
(D) Overflow Flag
44. : Which flag can help identify if the system has encountered an integer overflow error?
(A) Zero Flag
(B) Overflow Flag
(C) Parity Flag
(D) Carry Flag
45. : In a string comparison, which flag is crucial in determining if the strings are equal?
(A) Carry Flag
(B) Zero Flag
(C) Overflow Flag
(D) Sign Flag
46. : What does it mean when the Carry Flag is set to 1 after a subtraction?
(A) The result is negative
(B) The result is zero
(C) There was a borrow in the operation
(D) An overflow occurred
47. : The Auxiliary Carry Flag is set during operations that involve:
(A) Even number of 1’s
(B) Binary-coded decimal arithmetic
(C) Unsigned overflow
(D) Floating-point operations
48. : The direction of string operations in assembly language is controlled by the:
(A) Sign Flag
(B) Overflow Flag
(C) Direction Flag
(D) Interrupt Flag
49. : Which flag is used in signed number arithmetic to indicate a change in sign?
(A) Sign Flag
(B) Carry Flag
(C) Parity Flag
(D) Auxiliary Carry Flag
50. : If the result of a computation is zero, which flag will be set to 1?
(A) Overflow Flag
(B) Carry Flag
(C) Zero Flag
(D) Sign Flag