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

Q121: What is the purpose of using the stack in subroutine calls?
  • A: To store subroutine code
  • B: To pass parameters
  • C: To save return addresses and registers
  • D: To store the array being sorted
View Answer
C

Q122: Which register combination gives the physical address of the stack top?
  • A: AX
  • B: CS
  • C: SS
  • D: DX
View Answer
C

Q123: In the context of the CALL and RET instructions, what does "near call" refer to?
  • A: A subroutine within the same segment
  • B: A subroutine in a different segment
  • C: A subroutine that uses PUSH/POP
  • D: A subroutine that uses stack
View Answer
A

Q124: What is the main disadvantage of the subroutine in the given bubble sort example?
  • A: It cannot handle large arrays
  • B: It destroys some registers
  • C: It does not return properly
  • D: It requires too many parameters
View Answer
B

Q125: What type of stack is used by the 8088 processor?
  • A: Incrementing
  • B: Decrementing
  • C: Rotating
  • D: Fixed
View Answer
B

Q126: Why is the stack considered a LIFO data structure?
  • A: Because the last element in is the first out
  • B: Because it can only hold one element at a time
  • C: Because it only works with registers
  • D: Because it uses the stack pointer
View Answer
A

Q127: What operation is performed by the "POP" instruction?
  • A: Places a value on the stack
  • B: Removes a value from the top of the stack
  • C: Clears the entire stack
  • D: Increments the stack pointer by 1
View Answer
B

Q128: What is the effect of the "shl cx, 1" instruction in the context of sorting?
  • A: It doubles the value of CX
  • B: It halves the value of CX
  • C: It compares array elements
  • D: It shifts the array
View Answer
A

Q129: How many times is the bubble sort subroutine called in Example 5.2?
  • A: Once
  • B: Twice
  • C: Three times
  • D: Four times
View Answer
B

Q130: What is the role of the "mov ax, 0x4c00" instruction at the end of the program?
  • A: Starts a new subroutine
  • B: Terminates the program
  • C: Calls the bubble sort subroutine
  • D: Restores the stack
View Answer
B

Test Your Knowledge

Take a timed quiz on Computer Architecture & Assembly Language

🚀 Start Quiz Now