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

Q191: What is the purpose of the jmp start instruction in the provided code examples?
  • A: To jump to the printstr subroutine
  • B: To start execution of the main program
  • C: To jump to a label for screen clearing
  • D: To return from a subroutine
View Answer
B

Q192: Which instruction is used to scroll the screen up by a given number of lines?
  • A: MOVSW
  • B: SCASB
  • C: REP MOVSB
  • D: REP STOSW
View Answer
C

Q193: What does the shl instruction do in the context of printstr?
  • A: Shifts the value in AX left by one bit
  • B: Shifts the value in AX right by one bit
  • C: Adds a value to AX
  • D: Multiplies the value in AX
View Answer
A

Q194: How does the scrolldown subroutine differ from scrollup?
  • A: It uses std for auto-decrement mode
  • B: It uses cld for auto-increment mode
  • C: It clears lines at the top of the screen
  • D: It scrolls data from top to bottom
View Answer
A

Q195: In the strlen subroutine, what happens if the string length is zero?
  • A: AX is set to 0
  • B: AX is set to 1
  • C: The program halts
  • D: The subroutine returns immediately
View Answer
A

Q196: What type of register pair is involved in the LES and LDS instructions?
  • A: Segment
  • B: Offset
  • C: General purpose
  • D: General purpose
View Answer
A

Q197: What does an interrupt allow the processor to do?
  • A: Process instructions sequentially
  • B: Handle events from external sources
  • C: Increase processing speed
  • D: Ignore system errors
View Answer
B

Q198: What type of interrupt is generated internally by the processor?
  • A: Software interrupt
  • B: Hardware interrupt
  • C: Real-time interrupt
  • D: External interrupt
View Answer
A

Q199: What is the primary function of the INT instruction?
  • A: Terminate a program
  • B: Call a subroutine
  • C: Generate an interrupt
  • D: Execute a loop
View Answer
C

Q200: Which register is pushed onto the stack first during an interrupt?
  • A: IP
  • B: CS
  • C: FLAGS
  • D: AX
View Answer
C

Test Your Knowledge

Take a timed quiz on Computer Architecture & Assembly Language

🚀 Start Quiz Now