Advanced Computer Architecture MCQs with Answers
Practice important Advanced Computer Architecture MCQs with answers and explanations.
Chapter: 26
Q621:
In the assembly code, what is the purpose of the instruction `out r1, controlp`?
A. Send data to the control port
B. Read data from the control port
C. Initialize the printer
D. Set the printer to busy mode
Correct Answer:
A
Chapter: 26
Q622:
What type of loop is used in the assembly code for polling the printer status?
A. Conditional loop
B. For loop
C. Infinite loop
D. Do-while loop
Correct Answer:
A
Chapter: 26
Q623:
What does the `addi r5, r5, 2` instruction do in the assembly program?
A. Decrements the character counter
B. Advances the buffer pointer
C. Increments the character counter
D. Resets the control register
Correct Answer:
B
Chapter: 27
Q624:
What is an interrupt?
A. A request to CPU to suspend normal processing
B. A program that executes without stopping
C. A command to the operating system to shut down
D. A signal from the GPU to increase performance
Correct Answer:
A
Chapter: 27
Q625:
What does ISR stand for?
A. Interrupt Service Routine
B. Interrupt Signal Resource
C. Integrated System Resource
D. Internal Service Routine
Correct Answer:
A
Chapter: 27
Q626:
Which of the following best describes the purpose of interrupts?
A. To allow multiple peripherals to communicate simultaneously
B. To ensure the CPU is always busy
C. To facilitate user input without polling
D. To manage memory more effectively
Correct Answer:
C
Chapter: 27
Q627:
What type of interrupt is generated by a key press?
A. Internal Interrupt
B. External Interrupt
C. Software Interrupt
D. Hardware Interrupt
Correct Answer:
B
Chapter: 27
Q628:
Internal interrupts are primarily used for:
A. Handling external events
B. Exception handling
C. Communicating with peripherals
D. Performing calculations
Correct Answer:
B
Chapter: 27
Q629:
Which of the following is an example of a software interrupt?
A. A timer expiration
B. A keyboard press
C. A system call to delete a file
D. A mouse click
Correct Answer:
C
Chapter: 27
Q630:
Fill in the blank: An interrupt that cannot be blocked is called a _______.
A. Maskable Interrupt
B. Non-maskable Interrupt
C. Software Interrupt
D. Hardware Interrupt
Correct Answer:
B
Chapter: 27
Q631:
What is the role of an Interrupt Vector Table?
A. To store memory addresses of ISRs
B. To manage CPU speed
C. To control user input
D. To prioritize software tasks
Correct Answer:
A
Chapter: 27
Q632:
What happens when an interrupt occurs?
A. The CPU stops all processes immediately
B. The CPU saves its state and executes an ISR
C. The CPU ignores the interrupt signal
D. The CPU polls all devices for input
Correct Answer:
B
Chapter: 27
Q633:
The process of determining the branch address of an ISR can be done through:
A. Non-vectored and vectored interrupts
B. Polling and interrupt handling
C. Software and hardware interrupts
D. Internal and external interrupts
Correct Answer:
A
Chapter: 27
Q634:
Fill in the blank: The instruction used to return from an ISR is called _______.
A. IRET
B. RETURN
C. EXECUTE
D. SAVE
Correct Answer:
A
Chapter: 27
Q635:
Which type of interrupt is associated with hardware events?
A. Internal Interrupt
B. Software Interrupt
C. External Interrupt
D. None of the above
Correct Answer:
C
Chapter: 27
Q636:
What does the CPU do with the program status word during an interrupt?
A. It discards it
B. Stores it on the stack
C. Restores it from memory
D. Transfers it to the ISR
Correct Answer:
B
Chapter: 27
Q637:
Fill in the blank: Interrupt latency refers to the time taken by the CPU to _______ an interrupt request.
A. Recognize
B. Service
C. Complete
D. Ignore
Correct Answer:
A
Chapter: 27
Q638:
What is an example of a hardware interrupt?
A. Mouse click
B. Key press
C. Timer signal
D. All of the above
Correct Answer:
D
Chapter: 27
Q639:
The CPU determines the address of the ISR from:
A. The interrupt vector table
B. The software documentation
C. The program counter
D. The user input
Correct Answer:
A
Chapter: 27
Q640:
Fill in the blank: The average longest interrupt latency occurs during _______ instructions.
A. Arithmetic
B. Branching
C. Memory access
D. IO operations
Correct Answer:
A