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

Q131: How does the RET instruction determine where to return after a CALL?
  • A: It reads the instruction pointer
  • B: It uses a label
  • C: It uses the stack
  • D: It uses the segment register
View Answer
C

Q132: What does the instruction RETF do in assembly language?
  • A: Pops the IP followed by popping CS
  • B: Pushes AX and CX onto the stack
  • C: Swaps two memory operands
  • D: Saves the caller's registers
View Answer
A

Q133: Which instruction is used to exchange the contents of two operands in assembly language?
  • A: MOV
  • B: PUSH
  • C: POP
  • D: XCHG
View Answer
D

Q134: What does the PUSH instruction do to the stack pointer (SP)?
  • A: Increments SP by 2
  • B: Decrements SP by 2
  • C: Increments SP by 4
  • D: Decrements SP by 4
View Answer
B

Q135: What is the purpose of the POP instruction in assembly language?
  • A: Loads data into memory
  • B: Transfers a word from the top of the stack
  • C: Loads data into a register
  • D: Swaps data between two registers
View Answer
C

Q136: In the bubblesort subroutine, which register is used to store the starting address of the array?
  • A: AX
  • B: BX
  • C: CX
  • D: SI
View Answer
B

Q137: What happens if PUSH and POP operations are not used in the correct order?
  • A: Stack will overflow
  • B: Registers will be corrupted
  • C: Data will be lost
  • D: System will crash
View Answer
B

Q138: Which instruction is responsible for returning control to the caller after a subroutine call?
  • A: CALL
  • B: JMP
  • C: RET
  • D: XCHG
View Answer
C

Q139: In the provided example, what does the swapflag variable indicate?
  • A: Start of the array
  • B: Number of elements in the array
  • C: Whether a swap has occurred
  • D: Address of the subroutine
View Answer
C

Q140: What is the correct order of operations when multiple registers are pushed onto the stack?
  • A: POP first, then PUSH
  • B: PUSH in reverse order, POP in reverse
  • C: PUSH in order, POP in reverse order
  • D: POP in order, PUSH in reverse order
View Answer
C

Test Your Knowledge

Take a timed quiz on Computer Architecture & Assembly Language

🚀 Start Quiz Now