Computer Architecture & Assembly Language MCQs with Answers
Practice important Computer Architecture & Assembly Language MCQs with answers and explanations.
Chapter: 8
Q201:
Where is the interrupt vector table (IVT) located in memory?
A. 0x0000
B. 0x1000
C. 0x2000
D. 0x3000
Correct Answer:
A
Chapter: 8
Q202:
How is the address of an interrupt routine determined in the 8088 processor?
A. By direct address specified in the interrupt call
B. By looking up in the interrupt vector table
C. By calculating the address from the interrupt number
D. By using a fixed address in memory
Correct Answer:
B
Chapter: 8
Q203:
What happens when the INT instruction is executed?
A. The processor completes the current instruction and jumps to the interrupt service routine
B. Directly jumps to the interrupt service routine without completing the current instruction
C. The processor halts and does not process any further instructions
D. Returns immediately to the next instruction after the INT instruction
Correct Answer:
A
Chapter: 8
Q204:
What does the IRET instruction do?
A. Returns to the interrupt service routine
B. Restores the FLAGS register and returns to the interrupted program
C. Initiates another interrupt
D. Changes the vector for the next interrupt
Correct Answer:
B
Chapter: 8
Q205:
Which of the following is a reserved interrupt number used by the 8088 processor?
A. INT 0
B. INT 10
C. INT 20
D. INT 30
Correct Answer:
A
Chapter: 8
Q206:
In the example code provided, which interrupt number is hooked to display a custom message for a divide by zero error?
A. INT 0
B. INT 1
C. INT 2
D. INT 3
Correct Answer:
A
Chapter: 8
Q207:
What is the purpose of the BIOS interrupt INT 10?
A. Handle keyboard input
B. Display video output
C. Manage hard disk operations
D. Control printer functions
Correct Answer:
B
Chapter: 8
Q208:
Which service number is used with INT 10 to print a string on the screen?
A. 0x13
B. 0x10
C. 0x21
D. 0x16
Correct Answer:
A
Chapter: 8
Q209:
In the example code provided, what does the INT 16 service 0 do?
A. Print a string on the screen
B. Wait for a key press
C. Read a key from the keyboard
D. Terminate the program
Correct Answer:
C
Chapter: 9
Q210:
What is the purpose of the INT pin on the processor?
A. To generate interrupts
B. To send data to peripherals
C. To store program instructions
D. To control the memory bus
Correct Answer:
A
Chapter: 9
Q211:
What device generates an interrupt signal via IRQ 0?
A. Keyboard
B. Timer device
C. Floppy disk
D. Serial port
Correct Answer:
C
Chapter: 9
Q212:
Which interrupt controller arrangement was used in the IBM AT computer?
A. Single PIC
B. Double PIC
C. Triple PIC
D. Quad PIC
Correct Answer:
B
Chapter: 9
Q213:
What does IRQ 1 correspond to in a standard interrupt mapping?
A. Timer device
B. Keyboard
C. Floppy disk
D. Parallel port
Correct Answer:
B
Chapter: 9
Q214:
Which instruction is used to read from the peripheral address space?
A. MOV
B. OUT
C. IN
D. ADD
Correct Answer:
C
Chapter: 9
Q215:
What is the function of the PIC control port?
A. To enable or disable interrupts
B. To read interrupt signals
C. To send EOI signals
D. To fetch instructions from memory
Correct Answer:
A
Chapter: 9
Q216:
How does an interrupt handler signal the completion of its task?
A. By sending an EOI signal
B. By sending an IN signal
C. By generating a new interrupt
D. By writing to a memory location
Correct Answer:
A
Chapter: 9
Q217:
What does IRQ 6 correspond to in the standard interrupt mapping?
A. Floppy disk
B. Keyboard
C. Timer device
D. Parallel port
Correct Answer:
A
Chapter: 9
Q218:
What does the freemem pointer in DOS indicate?
A. Address of loaded program
B. Address of free memory
C. Address of loaded drivers
D. Address of command interpreter
Correct Answer:
B
Chapter: 9
Q219:
What does DOS service 4C do?
A. Terminates a program and frees memory
B. Terminates a program and keeps some memory
C. Loads a program
D. Initializes DOS data areas
Correct Answer:
B
Chapter: 9
Q220:
What is the purpose of TSR programs in DOS?
A. To manage memory allocation
B. To act as a command interpreter
C. To stay resident and intercept interrupts
D. To display system information
Correct Answer:
C