Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
UART stands for Universal Asynchronous Receiver Transmitter, used for serial communication.
Question 18 of 60 · UART · Easy
A UART primarily converts data between:
Not quite. Try another option.
Answer: Serial and parallel forms
A UART converts parallel data from the CPU into serial form for transmission and vice versa on reception.
Question 19 of 60 · UART · Easy
In asynchronous serial transmission, each character frame typically begins with a:
Not quite. Try another option.
Answer: Start bit
Asynchronous transmission uses a start bit to signal the beginning of a character frame, followed by data and stop bits.
Question 20 of 60 · Input/Output Processor · Easy
An Input/Output Processor (IOP) is best described as a:
Not quite. Try another option.
Answer: Processor dedicated to handling I/O operations
An IOP is a specialized processor that manages I/O tasks independently, relieving the CPU of I/O handling.
Question 21 of 60 · Peripheral Devices · Medium
A 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?
Not quite. Try another option.
Answer: A synchronous input device
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.
Question 22 of 60 · Peripheral Devices · Medium
Why do most peripheral devices require an interface circuit rather than connecting directly to the CPU bus?
Not quite. Try another option.
Answer: To resolve differences in data rate, signal level, and format between device and CPU
Peripherals operate at different speeds, voltages, and data formats than the CPU, so an interface performs the necessary conversion and synchronization.
Question 23 of 60 · Input Output Interface · Medium
In isolated (I/O-mapped) I/O, how does the CPU distinguish an access to an I/O port from an access to memory?
Not quite. Try another option.
Answer: By using separate control lines and dedicated I/O instructions
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.
Question 24 of 60 · Input Output Interface · Medium
A system uses memory-mapped I/O. What is a direct consequence of this design choice?
Not quite. Try another option.
Answer: Part of the memory address space is consumed by I/O ports
Memory-mapped I/O assigns memory addresses to device registers, so some of the usable memory address range is reserved for I/O.
Question 25 of 60 · Priority interrupt · Medium
In a daisy-chain priority interrupt scheme, how is priority among devices determined?
Not quite. Try another option.
Answer: By the physical position of the device in the chain
In daisy chaining, the device closest to the CPU in the serial acknowledge line has highest priority; position in the chain sets the order.
Question 26 of 60 · Priority interrupt · Medium
A priority encoder for 4 interrupt sources produces which of the following outputs?
Not quite. Try another option.
Answer: A 2-bit code identifying the highest-priority active request
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.
Question 27 of 60 · Priority interrupt · Medium
In a priority interrupt system, what is the primary purpose of the interrupt mask register?
Not quite. Try another option.
Answer: To selectively enable or disable individual interrupt sources
The mask register lets software enable or disable specific interrupt lines, allowing higher-priority routines to block selected lower ones.
Question 28 of 60 · Direct memory access transfer · Medium
During a DMA transfer in cycle-stealing mode, what happens to the CPU?
Not quite. Try another option.
Answer: It is paused only for the individual bus cycles the DMA uses
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.
Question 29 of 60 · Direct memory access transfer · Medium
A 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)?
Not quite. Try another option.
Answer: Address 2200 and count 312
The address register increments by the words transferred () and the count register decrements ().
Question 30 of 60 · Direct memory access transfer · Medium
Why must the CPU issue a bus grant (BG) signal before a DMA controller can begin a transfer?
Not quite. Try another option.
Answer: To relinquish control of the address, data, and control buses to the DMA
DMA needs exclusive use of the system buses; the CPU asserts bus grant in response to a bus request to hand over bus control.
Question 31 of 60 · Modes of data transfer · Medium
In programmed I/O, what does the CPU spend most of its time doing while waiting for a slow device?
Not quite. Try another option.
Answer: Repeatedly reading and testing the device status flag
Programmed I/O relies on busy-waiting: the CPU continually polls the status flag, wasting cycles until the device is ready.
Question 32 of 60 · Modes of data transfer · Medium
Which mode of data transfer allows the CPU to continue useful work and be notified only when a device needs service?
Not quite. Try another option.
Answer: Interrupt-initiated I/O
Interrupt-driven I/O frees the CPU from polling; the device raises an interrupt when ready, so the CPU only stops to service it.
Question 33 of 60 · Modes of data transfer · Medium
For transferring a large block of data from a high-speed disk to memory with minimal CPU involvement, which mode is most appropriate?
Not quite. Try another option.
Answer: Direct memory access (DMA)
DMA moves entire blocks directly between device and memory without per-word CPU intervention, ideal for high-speed bulk transfers.
Question 34 of 60 · Modes of data transfer · Medium
In the strobe control method of asynchronous data transfer, what is a key limitation compared to handshaking?
Not quite. Try another option.
Answer: The sender cannot confirm the receiver actually accepted the data
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.
Question 35 of 60 · UART · Medium
A 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?
Not quite. Try another option.
Answer:
Each frame has bits; 8 of them are data, so the useful fraction is .
Question 36 of 60 · UART · Medium
In a UART, what is the primary function of the shift registers used during transmission and reception?
Not quite. Try another option.
Answer: Converting between parallel CPU data and serial line data
The UART's transmit shift register serializes parallel data, and the receive shift register reassembles serial bits into parallel form.
Question 37 of 60 · UART · Medium
A UART transmits data asynchronously. How does the receiver know when a new character begins?
Not quite. Try another option.
Answer: By detecting the falling edge of the start bit
The line idles high; a transition to the low start bit signals the receiver to begin sampling the incoming character bits.
Question 38 of 60 · Input/Output Processor · Medium
How does an Input/Output Processor (IOP) differ fundamentally from a simple DMA controller?
Not quite. Try another option.
Answer: An IOP can execute its own I/O program with instructions, not just transfer data
An IOP is a specialized processor that fetches and executes I/O instructions from memory, handling complex transfers, whereas DMA only moves data blocks.
Question 39 of 60 · Input/Output Processor · Medium
In an IOP-based system, how do the CPU and IOP typically coordinate their activities?
Not quite. Try another option.
Answer: Through commands and status information exchanged in shared memory
The CPU and IOP communicate by leaving command words and status/return information in common memory locations, letting each operate independently.
Question 40 of 60 · Input/Output Processor · Medium
What is the main advantage of using an IOP in a computer system with heavy I/O demands?
Not quite. Try another option.
Answer: The CPU is offloaded from managing detailed I/O operations
By handling I/O sequencing and data movement independently, the IOP frees the CPU to focus on computation, improving overall throughput.
Question 41 of 60 · Direct memory access transfer · Hard
A 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?
Not quite. Try another option.
Answer:
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.
Question 42 of 60 · Priority interrupt · Hard
In 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?
Not quite. Try another option.
Answer:
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 .
Question 43 of 60 · UART · Hard
A 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)?
Not quite. Try another option.
Answer:
Each frame = 1 start + 8 data + 1 parity + 2 stop = bits. Frames/s . Only 8 data bits are payload, so throughput bytes/s.
Question 44 of 60 · Modes of data transfer · Hard
In 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?
Not quite. Try another option.
Answer:
The CPU polls continuously during the wait. Number of checks polls before the device is ready.
Question 45 of 60 · Input Output Interface · Hard
An 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?
Not quite. Try another option.
Answer: Only specialized I/O instructions (IN/OUT) can access ports, limiting addressing/manipulation flexibility
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.
Question 46 of 60 · Direct memory access transfer · Hard
A 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?
Not quite. Try another option.
Answer:
A count of transfers writes to addresses through . The count decrements to zero on the last transfer.
Question 47 of 60 · Priority interrupt · Hard
A 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?
Not quite. Try another option.
Answer: Bit position 0 (highest)
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.
Question 48 of 60 · Input/Output Processor · Hard
In 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?
Not quite. Try another option.
Answer: Test I/O / Start I/O instruction that hands off a command word to the IOP
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.
Question 49 of 60 · UART · Hard
A 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?
Not quite. Try another option.
Answer: Around 25 bits (drift accumulates to ~half a bit period)
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.
Question 50 of 60 · Modes of data transfer · Hard
Consider 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?
Not quite. Try another option.
Answer: About
Interrupt-driven: . DMA: . Speedup .
Question 51 of 60 · Peripheral Devices · Hard
A 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?
Not quite. Try another option.
Answer: About
Rotational latency . Transfer time . Total .
Question 52 of 60 · Direct memory access transfer · Hard
During 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?
Not quite. Try another option.
Answer: Cycle stealing combined with CPU operating from cache when no memory access is needed
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.
Question 53 of 60 · Priority interrupt · Hard
In 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?
Not quite. Try another option.
Answer: Saved state and re-enabled interrupts (with priority masking) to permit higher-priority preemption
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.
Question 54 of 60 · Input Output Interface · Hard
An 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?
Not quite. Try another option.
Answer: The interface asserts done only after the data buffer is fully latched and stable
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.
Question 55 of 60 · Input/Output Processor · Hard
A selector channel and a multiplexer channel differ fundamentally. Which statement correctly characterizes a multiplexer (byte-multiplexer) channel?
Not quite. Try another option.
Answer: It interleaves bytes from multiple slow devices, servicing them concurrently in a time-shared manner
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.
Question 56 of 60 · Modes of data transfer · Hard
A 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?
Not quite. Try another option.
Answer:
Cycles/s for overhead . Fraction .
Question 57 of 60 · UART · Hard
A UART's transmit shift register and transmit holding register are separate. Why does this double buffering improve throughput at high baud rates?
Not quite. Try another option.
Answer: The CPU can load the next byte into the holding register while the current byte is still shifting out, eliminating inter-byte gaps
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.
Question 58 of 60 · Peripheral Devices · Hard
Comparing an SSD and an HDD for random 4 KB reads, the SSD dominates. Which architectural property of the SSD is the primary reason?
Not quite. Try another option.
Answer: Absence of mechanical seek and rotational latency, giving near-constant low access latency
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.
Question 59 of 60 · Direct memory access transfer · Hard
In 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?
Not quite. Try another option.
Answer: The CPU may read stale cached data instead of the newer DMA-written data unless the cache line is invalidated
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.
Question 60 of 60 · Priority interrupt · Hard
A 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?
Not quite. Try another option.
Answer: Faster dispatch since the source is identified directly by its vector, at the cost of extra hardware for vector generation
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.
That's unit 4
Answer a few questions and your score shows up here.
Nearly through. Did unit 4 of CSE211 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 4 of CSE211 save you a night before the exam?
Then you can help keep it free for the next batch. 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.