Computer Architecture & Assembly Language MCQs with Answers
Practice important Computer Architecture & Assembly Language MCQs with answers and explanations.
Multiple Choice Questions
Q221: How many bytes are there in a paragraph?
- A: 8 bytes
- B: 16 bytes
- C: 32 bytes
- D: 64 bytes
View Answer
B
Q222: In a timer interrupt service routine, what does the iret instruction do?
- A: Increments the tick count
- B: Sends End of Interrupt signal
- C: Returns from an interrupt
- D: Loads a new interrupt vector
View Answer
C
Q223: What is the function of the printnum subroutine in the provided assembly code?
- A: To print numbers to the screen
- B: To initialize the video memory
- C: To handle keyboard interrupts
- D: To manage parallel port communication
View Answer
A
Q224: How does the program handle the interrupt vector table (IVT) for storing interrupt handlers?
- A: It initializes the IVT with interrupt addresses
- B: It uses a static address for all handlers
- C: It saves and restores old interrupt handlers
- D: It only updates the data segment register
View Answer
C
Q225: What is the purpose of mov cl, 4 followed by shr dx, cl in the provided code?
- A: To shift bits left
- B: To round up the number of paragraphs
- C: To perform integer division
- D: To set up the timer interrupt
View Answer
B
Q226: What is the role of out 0x20, al in an interrupt service routine?
- A: To initialize the video memory
- B: To end an interrupt
- C: To set up the interrupt vector table
- D: To print numbers to the screen
View Answer
B
Q227: In the provided code, what happens when the left shift key is pressed?
- A: Timer starts counting
- B: Counter stops incrementing
- C: LED lights up
- D: Bulb brightness increases
View Answer
A
Q228: What is the function of the parallel interrupt service routine in Example 9.11?
- A: It gradually increases power to a bulb
- B: It reads characters from the keyboard
- C: It sends scancodes to the parallel port
- D: It controls the LEDs connected to the parallel port
View Answer
A
Q229: How is the timerflag variable used in Example 9.8?
- A: To determine whether to increment or stop the counter
- B: To control the state of LEDs
- C: To track the number of timer interrupts
- D: To manage the parallel port communication
View Answer
A
Q230: How does the program in Example 9.10 control the light pattern on LEDs?
- A: By sending data to the parallel port
- B: By modifying the timer interrupt settings
- C: By using a keyboard interrupt handler
- D: By adjusting the power to the parallel port
View Answer
A