Skip to main content

Computer Architecture & Assembly Language MCQs with Answers

Practice important Computer Architecture & Assembly Language MCQs with answers and explanations.

Multiple Choice Questions

Q51: In the context of register indirect addressing, which register was used to access the memory in the example provided?
  • A: AX
  • B: BX
  • C: CX
  • D: DX
View Answer
B

Q52: What does the CMP instruction do in assembly language?
  • A: Adds two operands
  • B: Subtracts source from destination
  • C: Multiplies two operands
  • D: Divides two operands
View Answer
B

Q53: Which flag is set when two equal numbers are subtracted using CMP?
  • A: Carry Flag
  • B: Zero Flag
  • C: Sign Flag
  • D: Overflow Flag
View Answer
B

Q54: Which flag indicates a borrow is needed during subtraction in CMP?
  • A: Sign Flag
  • B: Zero Flag
  • C: Carry Flag
  • D: Overflow Flag
View Answer
C

Q55: How are signed numbers represented in assembly language?
  • A: One’s complement
  • B: Two’s complement
  • C: BCD
  • D: ASCII
View Answer
B

Q56: What does the JZ (Jump if Zero) instruction do?
  • A: Jumps if the carry flag is set
  • B: Jumps if the zero flag is set
  • C: Jumps if the sign flag is set
  • D: Jumps if the overflow flag is set
View Answer
B

Q57: Which instruction is used to perform an unconditional jump?
  • A: JNZ
  • B: JE
  • C: JMP
  • D: JCXZ
View Answer
C

Q58: What happens when the CMP instruction is used with unsigned numbers?
  • A: The carry flag is ignored
  • B: The sign flag is used
  • C: The carry flag is used
  • D: The overflow flag is checked
View Answer
C

Q59: In a signed comparison, which flags are used to determine if a number is less?
  • A: Zero Flag and Carry Flag
  • B: Sign Flag and Overflow Flag
  • C: Parity Flag and Zero Flag
  • D: Carry Flag and Sign Flag
View Answer
B

Q60: Which instruction would you use to jump if two numbers are not equal?
  • A: JE
  • B: JZ
  • C: JNE
  • D: JG
View Answer
C

Test Your Knowledge

Take a timed quiz on Computer Architecture & Assembly Language

🚀 Start Quiz Now