Back to Practice Computer Architecture

I/O Systems - Practice MCQs for CCAT

50 Questions Section C: Hardware Computer Architecture

I/O Systems Question Bank for C-CAT

Topic-wise I/O Systems MCQs for CDAC C-CAT preparation with answers and explanations.

Q1.
Polling I/O:
AUses interrupts
BIs most efficient
CUses DMA
DCPU repeatedly checks device status
Show Answer & Explanation

Correct Answer: D - CPU repeatedly checks device status

Polling: CPU continuously checks if device is ready.

Q2.
Interrupt-driven I/O:
ADevice signals CPU when ready
BCPU polls device
CUses DMA controller
DCPU is always busy
Show Answer & Explanation

Correct Answer: A - Device signals CPU when ready

Device interrupts CPU when it needs attention.

Q3.
DMA stands for:
ADevice Memory Adapter
BData Memory Allocation
CDirect Memory Access
DDynamic Memory Area
Show Answer & Explanation

Correct Answer: C - Direct Memory Access

DMA = Direct Memory Access - transfers data without CPU.

Q4.
DMA advantage:
AUses more CPU
BSlower transfer
CFrees CPU during data transfer
DNo advantage
Show Answer & Explanation

Correct Answer: C - Frees CPU during data transfer

DMA frees CPU to do other work during large data transfers.

Q5.
Memory-mapped I/O:
AUses special I/O instructions
BI/O devices share memory address space
CIs not used
DUses only ports
Show Answer & Explanation

Correct Answer: B - I/O devices share memory address space

Memory-mapped I/O: devices accessed like memory locations.

Q6.
Isolated I/O (Port-mapped):
AUses memory addresses
BNo addresses
CSame as memory-mapped
DUses separate I/O address space
Show Answer & Explanation

Correct Answer: D - Uses separate I/O address space

Isolated I/O: separate address space with IN/OUT instructions.

Q7.
Which is fastest I/O method?
ADMA
BInterrupt
CPolling
DProgrammed I/O
Show Answer & Explanation

Correct Answer: A - DMA

DMA is fastest for large data transfers without CPU involvement.

Q8.
Bus in computer:
AStores data
BGenerates power
CProcesses data
DCommunication pathway
Show Answer & Explanation

Correct Answer: D - Communication pathway

Bus is communication pathway between components.

Q9.
Address bus is:
ABidirectional
BFor control only
CFor data only
DUnidirectional (CPU to memory)
Show Answer & Explanation

Correct Answer: D - Unidirectional (CPU to memory)

Address bus is unidirectional - CPU sends addresses.

Q10.
Data bus is:
AUnidirectional
BBidirectional
CFor addresses only
DFor control only
Show Answer & Explanation

Correct Answer: B - Bidirectional

Data bus is bidirectional - data flows both ways.

Q11.
What is programmed I/O?
ACPU continuously checks I/O device status
BI/O controlled by DMA
CI/O controlled by interrupts
DI/O controlled by external processor
Show Answer & Explanation

Correct Answer: A - CPU continuously checks I/O device status

In programmed I/O, the CPU continuously polls the I/O device status register to check if the device is ready for data transfer.

Q12.
What is the main disadvantage of programmed I/O?
AComplex hardware
BCPU time is wasted in polling
CHigh cost
DLimited device support
Show Answer & Explanation

Correct Answer: B - CPU time is wasted in polling

Programmed I/O wastes CPU cycles as the processor must continuously check device status instead of doing useful work.

Q13.
Which component manages DMA operations?
ACPU
BI/O Processor
CMemory Controller
DDMA Controller
Show Answer & Explanation

Correct Answer: D - DMA Controller

The DMA Controller (DMAC) manages DMA operations, taking over the bus to transfer data between I/O devices and memory.

Q14.
What is cycle stealing in DMA?
ADMA takes bus control from CPU for one bus cycle at a time
BDMA uses CPU cycles when CPU is idle
CCPU steals cycles from DMA
DClock cycles are reduced
Show Answer & Explanation

Correct Answer: A - DMA takes bus control from CPU for one bus cycle at a time

In cycle stealing, DMA controller takes control of the bus for one cycle at a time, interleaving with CPU bus operations.

Q15.
What is burst mode DMA?
ADMA transfers entire block of data before releasing bus
BDMA transfers one byte at a time
CDMA operates in short bursts
DMultiple DMA controllers operate together
Show Answer & Explanation

Correct Answer: A - DMA transfers entire block of data before releasing bus

In burst mode, DMA controller takes control of bus and transfers entire data block before releasing the bus to CPU.

Q16.
What is an I/O port?
APhysical connector on computer
BCPU register for I/O
CType of memory
DAddress used to communicate with I/O device
Show Answer & Explanation

Correct Answer: D - Address used to communicate with I/O device

An I/O port is an address or set of addresses used by the CPU to communicate with a specific I/O device.

Q17.
What is the Interrupt Service Routine (ISR)?
ARoutine that polls I/O devices
BRoutine that initializes interrupts
CCode that executes when an interrupt occurs
DService provided by OS for I/O
Show Answer & Explanation

Correct Answer: C - Code that executes when an interrupt occurs

ISR is the code that is executed by CPU in response to an interrupt, handling the event that caused the interrupt.

Q18.
What is interrupt latency?
ATime between interrupts
BDuration of ISR execution
CTime from interrupt request to start of ISR execution
DTime to return from interrupt
Show Answer & Explanation

Correct Answer: C - Time from interrupt request to start of ISR execution

Interrupt latency is the delay between when an interrupt is generated and when the ISR begins executing.

Q19.
What is the purpose of the Interrupt Vector Table?
AStores interrupt requests
BContains addresses of interrupt service routines
CLists all available interrupts
DControls interrupt priority
Show Answer & Explanation

Correct Answer: B - Contains addresses of interrupt service routines

The Interrupt Vector Table stores the starting addresses (vectors) of ISRs for each interrupt type.

Q20.
What is maskable interrupt?
AInterrupt that cannot be disabled
BInterrupt from external device
CInterrupt with highest priority
DInterrupt that can be disabled by software
Show Answer & Explanation

Correct Answer: D - Interrupt that can be disabled by software

A maskable interrupt can be disabled (masked) by software using the interrupt flag, preventing CPU from responding to it.

Q21.
What is non-maskable interrupt (NMI)?
AInterrupt that can be ignored
BInterrupt that cannot be disabled and must be serviced
CLow priority interrupt
DSoftware-generated interrupt
Show Answer & Explanation

Correct Answer: B - Interrupt that cannot be disabled and must be serviced

NMI is a high-priority interrupt that cannot be disabled by software, used for critical events like power failure.

Q22.
What is the control bus used for?
ACarrying data
BCarrying addresses
CCarrying control signals like read/write
DPower distribution
Show Answer & Explanation

Correct Answer: C - Carrying control signals like read/write

The control bus carries control signals like read/write, clock, interrupt requests, and bus request signals.

Q23.
What is handshaking in I/O?
APhysical connection of devices
BPower management
CError checking mechanism
DControl signal exchange between CPU and device for synchronization
Show Answer & Explanation

Correct Answer: D - Control signal exchange between CPU and device for synchronization

Handshaking is the exchange of control signals between CPU and I/O device to coordinate data transfer timing.

Q24.
What is bus arbitration?
ABus error detection
BBus speed control
CProcess of deciding which device gets bus control when multiple devices request it
DBus power management
Show Answer & Explanation

Correct Answer: C - Process of deciding which device gets bus control when multiple devices request it

Bus arbitration determines which of multiple devices requesting bus access should be granted control of the bus.

Q25.
What is transparent DMA?
ADMA that is visible to CPU
BDMA that operates only when CPU is not using the bus
CDMA without controller
DDMA with visible status
Show Answer & Explanation

Correct Answer: B - DMA that operates only when CPU is not using the bus

Transparent DMA transfers data only during cycles when CPU is not using the bus, appearing invisible to CPU operation.

Q26.
In programmed I/O, the CPU:
AIs free to execute other tasks during I/O
BTransfers data without CPU intervention
CContinuously checks the status of the I/O device
DUses interrupts to handle I/O
Show Answer & Explanation

Correct Answer: C - Continuously checks the status of the I/O device

In programmed I/O (also called polling), the CPU continuously checks (polls) the status of the I/O device to see if it is ready for data transfer. This keeps the CPU busy-waiting.

Q27.
What is the main advantage of interrupt-driven I/O over programmed I/O?
AFaster data transfer rate
BCPU can perform other tasks while waiting for I/O
CNo need for device drivers
DSimpler hardware implementation
Show Answer & Explanation

Correct Answer: B - CPU can perform other tasks while waiting for I/O

In interrupt-driven I/O, the CPU can execute other instructions while waiting for I/O. The I/O device sends an interrupt signal when ready, freeing the CPU from continuous polling.

Q28.
DMA (Direct Memory Access) allows:
ACPU to control every byte transfer
BFaster CPU processing
CData transfer between I/O devices and memory without CPU intervention
DDirect access to CPU registers
Show Answer & Explanation

Correct Answer: C - Data transfer between I/O devices and memory without CPU intervention

DMA allows I/O devices to transfer data directly to/from main memory without CPU involvement. The DMA controller handles the transfer, freeing the CPU to perform other tasks.

Q29.
Which I/O technique provides the highest data transfer rate?
AProgrammed I/O
BInterrupt-driven I/O
CPolling
DDMA
Show Answer & Explanation

Correct Answer: D - DMA

DMA provides the highest data transfer rate because data is transferred directly between the I/O device and memory without CPU intervention, eliminating the CPU bottleneck.

Q30.
What is a bus in computer architecture?
AA type of processor
BA memory storage device
CA shared communication pathway for data transfer between components
DA type of I/O device
Show Answer & Explanation

Correct Answer: C - A shared communication pathway for data transfer between components

A bus is a shared set of wires (communication pathway) that connects various components of a computer (CPU, memory, I/O devices) and allows them to transfer data between each other.

Q31.
The system bus typically consists of which three types of buses?
AInput bus, Output bus, Control bus
BData bus, Address bus, Control bus
CSerial bus, Parallel bus, Control bus
DInternal bus, External bus, System bus
Show Answer & Explanation

Correct Answer: B - Data bus, Address bus, Control bus

The system bus consists of: Data bus (carries data), Address bus (carries memory addresses), and Control bus (carries control signals like read/write, interrupt, clock).

Q32.
The width of the address bus determines:
AThe speed of data transfer
BThe number of I/O devices
CThe maximum addressable memory
DThe clock speed
Show Answer & Explanation

Correct Answer: C - The maximum addressable memory

The width of the address bus determines how many unique memory locations can be addressed. A 32-bit address bus can address 232 = 4GB of memory.

Q33.
Memory-mapped I/O means:
AI/O devices share the same address space as memory
BI/O devices have separate address space from memory
CMemory is mapped to disk
DI/O operations bypass the bus
Show Answer & Explanation

Correct Answer: A - I/O devices share the same address space as memory

In memory-mapped I/O, I/O device registers are assigned addresses in the same address space as memory. The CPU uses the same instructions (load/store) for both memory and I/O operations.

Q34.
In isolated I/O (port-mapped I/O), the I/O devices:
AShare the memory address space
BAre connected directly to the CPU
CHave a separate address space with special I/O instructions
DDo not use the bus
Show Answer & Explanation

Correct Answer: C - Have a separate address space with special I/O instructions

In isolated (port-mapped) I/O, I/O devices have a separate address space from memory and are accessed using special I/O instructions (IN/OUT) rather than memory load/store instructions.

Q35.
What happens during a DMA cycle stealing?
AThe CPU steals a memory cycle from DMA
BThe DMA controller steals a bus cycle from the CPU to transfer data
CBoth CPU and DMA access memory simultaneously
DThe DMA controller stops the CPU completely
Show Answer & Explanation

Correct Answer: B - The DMA controller steals a bus cycle from the CPU to transfer data

In cycle stealing mode, the DMA controller takes control of the bus for one cycle at a time to transfer one word, then returns bus control to the CPU. This causes minimal CPU slowdown.

Q36.
USB (Universal Serial Bus) is an example of:
ASerial bus
BParallel bus
CInternal bus
DSystem bus
Show Answer & Explanation

Correct Answer: A - Serial bus

USB is a serial bus standard that transmits data one bit at a time over a single data line. Despite being serial, modern USB versions (USB 3.0+) achieve very high data transfer rates.

Q37.
What is bus arbitration?
AThe process of increasing bus speed
BThe method of determining which device gets control of the bus
CThe process of adding more devices to the bus
DThe method of error checking on the bus
Show Answer & Explanation

Correct Answer: B - The method of determining which device gets control of the bus

Bus arbitration is the process of determining which device (bus master) gets control of the shared bus when multiple devices request access simultaneously.

Q38.
In daisy chain bus arbitration:
ADevices closer to the arbiter have higher priority
BAll devices have equal priority
CPriority is randomly assigned
DEach device has a dedicated bus
Show Answer & Explanation

Correct Answer: A - Devices closer to the arbiter have higher priority

In daisy chain arbitration, the bus grant signal passes through devices sequentially. Devices physically closer to the arbiter in the chain receive the grant first, giving them higher priority.

Q39.
What is the role of handshaking in I/O data transfer?
ATo encrypt data
BTo synchronize data transfer between devices using control signals
CTo compress data
DTo buffer data in cache
Show Answer & Explanation

Correct Answer: B - To synchronize data transfer between devices using control signals

Handshaking uses control signals (request, acknowledge) to synchronize data transfer between two devices, ensuring the receiving device is ready before data is sent.

Q40.
PCI Express (PCIe) uses which type of data transfer?
ASerial point-to-point communication
BParallel communication
CShared bus communication
DToken ring communication
Show Answer & Explanation

Correct Answer: A - Serial point-to-point communication

PCIe uses serial point-to-point links (lanes) rather than a shared parallel bus. Multiple lanes can be combined (x1, x4, x8, x16) for higher bandwidth.

Q41.
What is an I/O processor (IOP)?
AThe main CPU handling I/O
BA specialized processor dedicated to managing I/O operations
CA memory controller
DA bus arbiter
Show Answer & Explanation

Correct Answer: B - A specialized processor dedicated to managing I/O operations

An I/O processor (IOP) or channel is a specialized processor that handles I/O operations independently, further reducing the load on the main CPU compared to DMA.

Q42.
In burst mode DMA, the DMA controller:
ATransfers one word at a time
BShares the bus equally with the CPU
CTakes control of the bus and transfers an entire block of data before releasing
DOnly operates when the CPU is idle
Show Answer & Explanation

Correct Answer: C - Takes control of the bus and transfers an entire block of data before releasing

In burst mode, the DMA controller takes exclusive control of the bus and transfers an entire block of data in one continuous burst before releasing the bus back to the CPU.

Q43.
An interrupt vector is:
AA type of I/O device
BA type of DMA transfer
CA bus signal
DThe address of the interrupt service routine (ISR)
Show Answer & Explanation

Correct Answer: D - The address of the interrupt service routine (ISR)

An interrupt vector is a memory address (or table entry) that points to the starting address of the interrupt service routine (ISR) associated with a specific interrupt.

Q44.
What is the purpose of an I/O buffer?
ATo temporarily store data during transfer between devices with different speeds
BTo increase the speed of I/O devices
CTo convert serial data to parallel
DTo provide error correction
Show Answer & Explanation

Correct Answer: A - To temporarily store data during transfer between devices with different speeds

An I/O buffer temporarily holds data during transfer between devices that operate at different speeds, smoothing out the speed mismatch between fast CPU/memory and slow I/O devices.

Q45.
Maskable interrupts are those that:
ACannot be disabled by the CPU
BCan be disabled or ignored by the CPU using interrupt flags
CAre generated by software only
DHave the highest priority
Show Answer & Explanation

Correct Answer: B - Can be disabled or ignored by the CPU using interrupt flags

Maskable interrupts can be enabled or disabled by the CPU through the interrupt mask flag. When masked (disabled), the CPU ignores these interrupts until they are unmasked.

Q46.
Non-maskable interrupts (NMI) are used for:
ACritical events like hardware failures or power failure
BRegular I/O operations
CSoftware debugging
DKeyboard input
Show Answer & Explanation

Correct Answer: A - Critical events like hardware failures or power failure

Non-maskable interrupts cannot be disabled and are reserved for critical events like hardware failures, memory parity errors, or power failure that require immediate attention.

Q47.
What is the data bus width's significance?
AIt determines how many bits can be transferred in one bus cycle
BIt determines the maximum clock speed
CIt determines the number of I/O ports
DIt determines the cache size
Show Answer & Explanation

Correct Answer: A - It determines how many bits can be transferred in one bus cycle

The data bus width determines how many bits of data can be transferred simultaneously in one bus cycle. A 64-bit data bus can transfer 8 bytes at a time.

Q48.
SATA (Serial ATA) replaced PATA (Parallel ATA) primarily because:
ASATA offers higher transfer rates with simpler cabling
BSATA is a parallel interface
CPATA was serial
DSATA uses more wires
Show Answer & Explanation

Correct Answer: A - SATA offers higher transfer rates with simpler cabling

SATA replaced PATA by using serial signaling which allows higher clock speeds, thinner cables, better airflow, and hot-swapping capability, despite using fewer data wires.

Q49.
What is the function of the status register in an I/O interface?
ATo store data for transfer
BTo generate clock signals
CTo store the device address
DTo indicate the current state of the I/O device (ready, busy, error)
Show Answer & Explanation

Correct Answer: D - To indicate the current state of the I/O device (ready, busy, error)

The status register in an I/O interface contains flags that indicate the current state of the device, such as ready/busy, data available, error condition, etc.

Q50.
In a priority interrupt system, when multiple interrupts occur simultaneously:
AAll interrupts are serviced in FIFO order
BA random interrupt is selected
CAll interrupts are ignored
DThe interrupt with the highest priority is serviced first
Show Answer & Explanation

Correct Answer: D - The interrupt with the highest priority is serviced first

In a priority interrupt system, each interrupt source has an assigned priority level. When multiple interrupts occur simultaneously, the one with the highest priority is serviced first.

Showing 1-10 of 50 questions