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

Q231: What does the cli instruction do in the provided assembly code?
  • A: Clears the interrupt flag
  • B: Initializes the data segment
  • C: Disables interrupts
  • D: Loads a new interrupt vector
View Answer
C

Q232: What does the trap flag (TF) control in a debugger?
  • A: It allows debugging after each instruction
  • B: It skips instructions
  • C: It sets memory access protection
  • D: It controls memory allocation
View Answer
A

Q233: What is the purpose of the single step interrupt in debugging?
  • A: It allows multiple instructions to be executed at once
  • B: It pauses execution after every instruction
  • C: It skips over certain instructions
  • D: It directly executes the next instruction in the sequence
View Answer
B

Q234: Which instruction is used to push the flags onto the stack?
  • A: PUSHF
  • B: POPFL
  • C: FLAGP
  • D: PUSHS
View Answer
A

Q235: What does the INT 3 interrupt do in debugging?
  • A: It causes a single step interrupt
  • B: It sets a breakpoint
  • C: It clears the breakpoint
  • D: It disables debugging interrupts
View Answer
B

Q236: Which interrupt is used for single stepping in the provided examples?
  • A: INT 1
  • B: INT 2
  • C: INT 3
  • D: INT 4
View Answer
A

Q237: What is the main concept behind multitasking in assembly language?
  • A: Simultaneous execution of multiple programs
  • B: Execution of one program at a time
  • C: Switching between tasks at high speed
  • D: Independent execution of tasks without switching
View Answer
C

Q238: Which interrupt is used to control multitasking in the provided examples?
  • A: IRQ 0
  • B: IRQ 1
  • C: IRQ 2
  • D: IRQ 3
View Answer
A

Q239: In Example 11.1, how is the current task index updated?
  • A: By incrementing and checking for out of range
  • B: By decrementing and checking for out of range
  • C: By using a timer interrupt to automatically update
  • D: By manually setting the index
View Answer
A

Q240: What is the purpose of the iret instruction in the multitasking code?
  • A: To return to the previous task after an interrupt
  • B: To initialize the current task
  • C: To save the state of the current task
  • D: To reset the system
View Answer
A

Test Your Knowledge

Take a timed quiz on Computer Architecture & Assembly Language

🚀 Start Quiz Now