UART stands for Universal Asynchronous Receiver Transmitter, used for serial communication.
Incorrect! Try again.
18A UART primarily converts data between:
UART
Easy
A.Binary and decimal forms
B.Analog and digital forms
C.ASCII and Unicode forms
D.Serial and parallel forms
Correct Answer: Serial and parallel forms
Explanation:
A UART converts parallel data from the CPU into serial form for transmission and vice versa on reception.
Incorrect! Try again.
19In asynchronous serial transmission, each character frame typically begins with a:
UART
Easy
A.Parity bit
B.Data bit
C.Stop bit
D.Start bit
Correct Answer: Start bit
Explanation:
Asynchronous transmission uses a start bit to signal the beginning of a character frame, followed by data and stop bits.
Incorrect! Try again.
20An Input/Output Processor (IOP) is best described as a:
Input/Output Processor
Easy
A.Processor dedicated to handling I/O operations
B.Type of main memory
C.Cache controller
D.Power supply unit
Correct Answer: Processor dedicated to handling I/O operations
Explanation:
An IOP is a specialized processor that manages I/O tasks independently, relieving the CPU of I/O handling.
Incorrect! Try again.
21A device transfers data to the CPU at a rate that the CPU cannot control, and data must be read exactly when it arrives. Which category of peripheral behaviour does this best describe?
Peripheral Devices
Medium
A.A programmed polling device
B.A memory-mapped output device
C.An interrupt-driven storage device
D.A synchronous input device
Correct Answer: A synchronous input device
Explanation:
Synchronous devices deliver data at fixed timing that the CPU must match; the CPU cannot slow the source, so it must sample data exactly when available.
Incorrect! Try again.
22Why do most peripheral devices require an interface circuit rather than connecting directly to the CPU bus?
Peripheral Devices
Medium
A.To convert virtual addresses into physical addresses
B.To reduce the number of memory locations used by programs
C.To increase the clock frequency of the CPU
D.To resolve differences in data rate, signal level, and format between device and CPU
Correct Answer: To resolve differences in data rate, signal level, and format between device and CPU
Explanation:
Peripherals operate at different speeds, voltages, and data formats than the CPU, so an interface performs the necessary conversion and synchronization.
Incorrect! Try again.
23In isolated (I/O-mapped) I/O, how does the CPU distinguish an access to an I/O port from an access to memory?
Input Output Interface
Medium
A.By using the same instructions but a different data bus
B.By using separate control lines and dedicated I/O instructions
C.By disabling interrupts during I/O operations
D.By checking the most significant address bit
Correct Answer: By using separate control lines and dedicated I/O instructions
Explanation:
Isolated I/O uses distinct I/O read/write control signals and special instructions (like IN/OUT), keeping I/O address space separate from memory.
Incorrect! Try again.
24A system uses memory-mapped I/O. What is a direct consequence of this design choice?
Input Output Interface
Medium
A.Part of the memory address space is consumed by I/O ports
B.Separate IN and OUT instructions become mandatory
C.The CPU requires an additional dedicated I/O bus
D.I/O devices can no longer generate interrupts
Correct Answer: Part of the memory address space is consumed by I/O ports
Explanation:
Memory-mapped I/O assigns memory addresses to device registers, so some of the usable memory address range is reserved for I/O.
Incorrect! Try again.
25In a daisy-chain priority interrupt scheme, how is priority among devices determined?
Priority interrupt
Medium
A.By a programmable priority register in each device
B.By the physical position of the device in the chain
C.By the interrupt vector number assigned to the device
D.By the order interrupts are received in time
Correct Answer: By the physical position of the device in the chain
Explanation:
In daisy chaining, the device closest to the CPU in the serial acknowledge line has highest priority; position in the chain sets the order.
Incorrect! Try again.
26A priority encoder for 4 interrupt sources produces which of the following outputs?
Priority interrupt
Medium
A.A 4-bit one-hot code for all active requests
B.A 4-bit mask disabling lower-priority requests
C.A 2-bit code identifying the highest-priority active request
D.A single bit indicating any interrupt is active
Correct Answer: A 2-bit code identifying the highest-priority active request
Explanation:
A priority encoder for inputs outputs an -bit code; for 4 sources it produces a 2-bit code pointing to the highest-priority active line.
Incorrect! Try again.
27In a priority interrupt system, what is the primary purpose of the interrupt mask register?
Priority interrupt
Medium
A.To count the number of pending interrupts
B.To store the return address during an interrupt
C.To hold the vector address of the current interrupt
D.To selectively enable or disable individual interrupt sources
Correct Answer: To selectively enable or disable individual interrupt sources
Explanation:
The mask register lets software enable or disable specific interrupt lines, allowing higher-priority routines to block selected lower ones.
Incorrect! Try again.
28During a DMA transfer in cycle-stealing mode, what happens to the CPU?
Direct memory access transfer
Medium
A.It switches to executing the DMA controller's microcode
B.It is paused only for the individual bus cycles the DMA uses
C.It is halted for the entire duration of the block transfer
D.It continues executing without ever releasing the bus
Correct Answer: It is paused only for the individual bus cycles the DMA uses
Explanation:
In cycle stealing the DMA controller takes the bus for one cycle at a time, letting the CPU resume between transfers rather than halting entirely.
Incorrect! Try again.
29A DMA controller is configured with a starting address of 2000 and a word count of 512. After transferring 200 words, what values do the address register and count register hold (word-addressed)?
Direct memory access transfer
Medium
A.Address 2200 and count 312
B.Address 1800 and count 312
C.Address 2512 and count 200
D.Address 2000 and count 512
Correct Answer: Address 2200 and count 312
Explanation:
The address register increments by the words transferred () and the count register decrements ().
Incorrect! Try again.
30Why must the CPU issue a bus grant (BG) signal before a DMA controller can begin a transfer?
Direct memory access transfer
Medium
A.To load the starting address into the DMA controller
B.To generate an interrupt at the end of the transfer
C.To reset the DMA word-count register to zero
D.To relinquish control of the address, data, and control buses to the DMA
Correct Answer: To relinquish control of the address, data, and control buses to the DMA
Explanation:
DMA needs exclusive use of the system buses; the CPU asserts bus grant in response to a bus request to hand over bus control.
Incorrect! Try again.
31In programmed I/O, what does the CPU spend most of its time doing while waiting for a slow device?
Modes of data transfer
Medium
A.Repeatedly reading and testing the device status flag
B.Servicing interrupts from the device
C.Executing other user programs in the background
D.Transferring data directly to memory via DMA
Correct Answer: Repeatedly reading and testing the device status flag
Explanation:
Programmed I/O relies on busy-waiting: the CPU continually polls the status flag, wasting cycles until the device is ready.
Incorrect! Try again.
32Which mode of data transfer allows the CPU to continue useful work and be notified only when a device needs service?
Modes of data transfer
Medium
A.Synchronous polling I/O
B.Interrupt-initiated I/O
C.Programmed I/O
D.Handshaking I/O
Correct Answer: Interrupt-initiated I/O
Explanation:
Interrupt-driven I/O frees the CPU from polling; the device raises an interrupt when ready, so the CPU only stops to service it.
Incorrect! Try again.
33For transferring a large block of data from a high-speed disk to memory with minimal CPU involvement, which mode is most appropriate?
Modes of data transfer
Medium
A.Direct memory access (DMA)
B.Handshaking with strobe control
C.Programmed I/O with polling
D.Interrupt-driven single-word transfer
Correct Answer: Direct memory access (DMA)
Explanation:
DMA moves entire blocks directly between device and memory without per-word CPU intervention, ideal for high-speed bulk transfers.
Incorrect! Try again.
34In the strobe control method of asynchronous data transfer, what is a key limitation compared to handshaking?
Modes of data transfer
Medium
A.It requires two control lines instead of one
B.The sender cannot confirm the receiver actually accepted the data
C.It needs a shared clock between devices
D.It works only for output operations
Correct Answer: The sender cannot confirm the receiver actually accepted the data
Explanation:
Strobe control uses a single control line with no acknowledgment, so the source has no assurance the destination received the data; handshaking adds that reply.
Incorrect! Try again.
35A UART is configured for 8 data bits, 1 start bit, 1 stop bit, and no parity. What fraction of each transmitted frame carries actual data?
UART
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Each frame has bits; 8 of them are data, so the useful fraction is .
Incorrect! Try again.
36In a UART, what is the primary function of the shift registers used during transmission and reception?
UART
Medium
A.Detecting parity errors in received frames
B.Generating the baud-rate clock signal
C.Converting between parallel CPU data and serial line data
D.Storing multiple frames for buffered transfer
Correct Answer: Converting between parallel CPU data and serial line data
Explanation:
The UART's transmit shift register serializes parallel data, and the receive shift register reassembles serial bits into parallel form.
Incorrect! Try again.
37A UART transmits data asynchronously. How does the receiver know when a new character begins?
UART
Medium
A.By detecting the falling edge of the start bit
B.By checking the parity bit value first
C.By counting a fixed idle interval between characters
D.By reading a shared synchronizing clock line
Correct Answer: By detecting the falling edge of the start bit
Explanation:
The line idles high; a transition to the low start bit signals the receiver to begin sampling the incoming character bits.
Incorrect! Try again.
38How does an Input/Output Processor (IOP) differ fundamentally from a simple DMA controller?
Input/Output Processor
Medium
A.An IOP cannot access main memory directly
B.An IOP can execute its own I/O program with instructions, not just transfer data
C.An IOP transfers only one word at a time to memory
D.An IOP requires the CPU to remain halted during transfers
Correct Answer: An IOP can execute its own I/O program with instructions, not just transfer data
Explanation:
An IOP is a specialized processor that fetches and executes I/O instructions from memory, handling complex transfers, whereas DMA only moves data blocks.
Incorrect! Try again.
39In an IOP-based system, how do the CPU and IOP typically coordinate their activities?
Input/Output Processor
Medium
A.By sharing the same instruction register during execution
B.By running from a single common program counter
C.By the CPU directly controlling every I/O device register
D.Through commands and status information exchanged in shared memory
Correct Answer: Through commands and status information exchanged in shared memory
Explanation:
The CPU and IOP communicate by leaving command words and status/return information in common memory locations, letting each operate independently.
Incorrect! Try again.
40What is the main advantage of using an IOP in a computer system with heavy I/O demands?
Input/Output Processor
Medium
A.Main memory size requirements are reduced significantly
B.The CPU is offloaded from managing detailed I/O operations
C.Interrupts are eliminated entirely from the system
D.Peripheral devices become synchronous with the CPU clock
Correct Answer: The CPU is offloaded from managing detailed I/O operations
Explanation:
By handling I/O sequencing and data movement independently, the IOP frees the CPU to focus on computation, improving overall throughput.
Incorrect! Try again.
41A DMA controller transfers data in cycle-stealing mode. The CPU has a memory cycle time of , and the I/O device produces data at (one byte per transfer). What fraction of the memory bandwidth is consumed by DMA?
Direct memory access transfer
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The device needs transfers/s, i.e. one every . Since each memory cycle is , every single cycle is stolen by the DMA, consuming of the bandwidth — effectively equivalent to burst mode at this rate.
Incorrect! Try again.
42In a daisy-chain priority scheme with 4 devices, the priority-in () of the highest device is tied to 1. If device 2 (second in chain) is requesting an interrupt while device 1 is not, what are the (priority-out) values of devices 1, 2, 3, and 4 respectively?
Priority interrupt
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Device 1 passes through as since it has no request. Device 2 receives , has a request, so it blocks the chain and sets . Devices 3 and 4 receive and output .
Incorrect! Try again.
43A UART is configured for baud, 8 data bits, even parity, and 2 stop bits. What is the effective data throughput in bytes per second (payload only)?
UART
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Each frame = 1 start + 8 data + 1 parity + 2 stop = bits. Frames/s . Only 8 data bits are payload, so throughput bytes/s.
Incorrect! Try again.
44In programmed I/O, the CPU wastes cycles polling a status flag. If checking the flag takes and a device becomes ready on average every , roughly how many polling checks are wasted per transfer?
Modes of data transfer
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The CPU polls continuously during the wait. Number of checks polls before the device is ready.
Incorrect! Try again.
45An isolated I/O (I/O-mapped) system uses separate control lines for memory and I/O. Which is the primary architectural disadvantage compared to memory-mapped I/O?
D.It requires more address lines than memory-mapped I/O for the same port count
Correct Answer: Only specialized I/O instructions (IN/OUT) can access ports, limiting addressing/manipulation flexibility
Explanation:
Isolated I/O reserves separate address space accessed only via dedicated IN/OUT instructions, so the full range of memory-reference instructions and addressing modes cannot be applied to I/O ports, unlike memory-mapped I/O.
Incorrect! Try again.
46A DMA controller has a 16-bit address register and a 16-bit word-count register. It starts at address with a count of . After transferring in burst mode, at what address does the last word get written, assuming byte-addressable memory and 1 byte per transfer?
Direct memory access transfer
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
A count of transfers writes to addresses through . The count decrements to zero on the last transfer.
Incorrect! Try again.
47A parallel priority interrupt system uses a mask register and a priority encoder. If the mask register is (bit position 0 is highest priority, MSB) and pending interrupts are , which interrupt (bit position) will be serviced?
Priority interrupt
Hard
A.Bit position 0 (highest)
B.Bit position 3 (lowest)
C.Bit position 2
D.Bit position 1
Correct Answer: Bit position 0 (highest)
Explanation:
The mask enables bit positions 0 and 2. Pending AND mask = ; the priority encoder selects the highest-priority enabled pending interrupt, which is bit position 0.
Incorrect! Try again.
48In an IOP-based system, the CPU issues a command to the IOP by placing an instruction in memory and executing a specific operation. What is the term for the CPU-to-IOP communication that initiates channel program execution?
Input/Output Processor
Hard
A.A direct memory access cycle-steal request
B.A polling loop that busy-waits on the IOP status register
C.An interrupt vector fetch from the IOP
D.Test I/O / Start I/O instruction that hands off a command word to the IOP
Correct Answer: Test I/O / Start I/O instruction that hands off a command word to the IOP
Explanation:
The CPU and IOP communicate through memory-resident command words. The CPU issues a Start I/O type instruction handing off the address of the channel program, after which the IOP fetches and executes it independently.
Incorrect! Try again.
49A UART receiver samples each incoming bit at the baud rate. If the transmitter clock is faster than the receiver clock, after how many bits (from the start bit sampling point) is there risk of sampling the wrong bit, given the sample point drifts by per bit relative to center?
UART
Hard
A.Around 100 bits
B.Around 25 bits (drift accumulates to ~half a bit period)
C.Around 8 bits
D.Around 50 bits
Correct Answer: Around 25 bits (drift accumulates to ~half a bit period)
Explanation:
A per-bit drift accumulates; sampling fails once cumulative drift reaches half a bit (). bits. This is why UART frames are kept short and resynchronize each start bit.
Incorrect! Try again.
50Consider transferring a block. Interrupt-driven I/O costs overhead per byte (context save/restore), while DMA costs a fixed setup plus per byte. What is the approximate speedup of DMA over interrupt-driven I/O?
Modes of data transfer
Hard
A.About
B.About
C.About
D.About
Correct Answer: About
Explanation:
Interrupt-driven: . DMA: . Speedup .
Incorrect! Try again.
51A hard disk rotates at with an average seek time of and a transfer rate of . What is the approximate average access time to read a block?
Peripheral Devices
Hard
A.About
B.About
C.About
D.About
Correct Answer: About
Explanation:
Rotational latency . Transfer time . Total .
Incorrect! Try again.
52During DMA, the CPU is temporarily disconnected from the buses. Which technique allows the CPU to continue executing from cache/registers while DMA proceeds, minimizing stalling?
Direct memory access transfer
Hard
A.Disabling all interrupts during DMA
B.Cycle stealing combined with CPU operating from cache when no memory access is needed
C.Using memory-mapped I/O instead of isolated I/O
D.Forcing all DMA into burst mode
Correct Answer: Cycle stealing combined with CPU operating from cache when no memory access is needed
Explanation:
In cycle stealing, DMA takes only individual memory cycles the CPU is not using; if the CPU is executing from cache/registers and does not need the bus, it continues in parallel with minimal interference.
Incorrect! Try again.
53In a system with an interrupt priority structure, a low-priority ISR is executing when a higher-priority interrupt arrives. For correct nested handling, what must the low-priority ISR have done immediately upon entry?
Priority interrupt
Hard
A.Disabled all interrupts permanently until it completes
B.Cleared the mask register to zero
C.Saved state and re-enabled interrupts (with priority masking) to permit higher-priority preemption
D.Signaled priority-out as 1 to all lower devices
Correct Answer: Saved state and re-enabled interrupts (with priority masking) to permit higher-priority preemption
Explanation:
For nested/preemptive interrupts, the ISR saves its context then re-enables interrupts while masking equal/lower priorities, allowing only higher-priority interrupts to preempt it.
Incorrect! Try again.
54An I/O interface uses a status register with a busy flag and a done flag. A subtle race occurs if the CPU reads data before checking done. Which handshaking property prevents this data-corruption edge case?
Input Output Interface
Hard
A.The interface uses tri-state buffers on the data bus
B.The interface asserts done only after the data buffer is fully latched and stable
C.The done flag is cleared automatically on power-up
D.The CPU polls the busy flag twice for confirmation
Correct Answer: The interface asserts done only after the data buffer is fully latched and stable
Explanation:
Proper handshaking guarantees the done flag is set only once the data register holds valid, stable data, so a CPU that waits for done before reading always gets correct data.
Incorrect! Try again.
55A selector channel and a multiplexer channel differ fundamentally. Which statement correctly characterizes a multiplexer (byte-multiplexer) channel?
Input/Output Processor
Hard
A.It dedicates the full channel to one high-speed device until the transfer completes
B.It interleaves bytes from multiple slow devices, servicing them concurrently in a time-shared manner
C.It can only be used with memory-mapped I/O
D.It requires no subchannel status storage
Correct Answer: It interleaves bytes from multiple slow devices, servicing them concurrently in a time-shared manner
Explanation:
A byte-multiplexer channel time-shares among several low-speed devices by interleaving their bytes, maintaining separate subchannel state for each. A selector channel instead dedicates itself to one fast device at a time.
Incorrect! Try again.
56A processor runs at . Handling one interrupt costs cycles of overhead. A device interrupts times per second. What percentage of CPU time is spent on interrupt overhead alone?
Modes of data transfer
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Cycles/s for overhead . Fraction .
Incorrect! Try again.
57A UART's transmit shift register and transmit holding register are separate. Why does this double buffering improve throughput at high baud rates?
UART
Hard
A.The CPU can load the next byte into the holding register while the current byte is still shifting out, eliminating inter-byte gaps
B.It removes the need for start and stop bits
C.It allows parity to be computed twice for reliability
D.It doubles the effective baud rate of the line
Correct Answer: The CPU can load the next byte into the holding register while the current byte is still shifting out, eliminating inter-byte gaps
Explanation:
With a separate holding register, the next byte is queued during transmission of the current one, so the shift register never idles between bytes, sustaining back-to-back frames at high speed.
Incorrect! Try again.
58Comparing an SSD and an HDD for random 4 KB reads, the SSD dominates. Which architectural property of the SSD is the primary reason?
Peripheral Devices
Hard
A.Higher sequential transfer bandwidth alone
B.Larger onboard DRAM cache exclusively
C.Absence of mechanical seek and rotational latency, giving near-constant low access latency
D.Use of DMA instead of programmed I/O
Correct Answer: Absence of mechanical seek and rotational latency, giving near-constant low access latency
Explanation:
Random access dominates HDD time via seek + rotational latency (milliseconds). SSDs have no moving parts, so access latency is microseconds and roughly independent of location, giving vastly higher random IOPS.
Incorrect! Try again.
59In a system with cache, DMA writing to main memory can cause a coherence problem. What is the specific hazard if the CPU later reads that memory region?
Direct memory access transfer
Hard
A.The DMA controller overwrites the cache directly, corrupting tags
B.The CPU cannot access memory during DMA at all
C.The CPU may read stale cached data instead of the newer DMA-written data unless the cache line is invalidated
D.The DMA transfer count register underflows
Correct Answer: The CPU may read stale cached data instead of the newer DMA-written data unless the cache line is invalidated
Explanation:
If DMA writes to memory but the CPU holds an old copy in cache, a subsequent CPU read returns stale data. Cache invalidation (or hardware snooping) of the affected lines is required for coherence.
Incorrect! Try again.
60A vectored interrupt system stores the ISR address in a vector table. Compared to polled interrupts, what is the key latency advantage, and its main cost?
Priority interrupt
Hard
A.Faster dispatch since the source is identified directly by its vector, at the cost of extra hardware for vector generation
B.Lower latency and it eliminates the need for any ISR
C.Identical latency but simpler hardware than polling
D.Faster dispatch but it cannot support priorities
Correct Answer: Faster dispatch since the source is identified directly by its vector, at the cost of extra hardware for vector generation
Explanation:
Vectored interrupts let the device supply an identifier that directly indexes the ISR address, avoiding software polling of each source. The tradeoff is additional hardware to generate and manage the interrupt vectors.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →