Computer Architecture

I/O Systems — Practice MCQs for CCAT

25 Questions Section C: Hardware Computer Architecture

Practice 25 I/O Systems multiple-choice questions designed for CDAC CCAT exam preparation. Click "Show Answer" to reveal the correct option with detailed explanation.

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

Correct Answer: B — CPU repeatedly checks device status

Polling: CPU continuously checks if device is ready.

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

Correct Answer: B — Device signals CPU when ready

Device interrupts CPU when it needs attention.

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

Correct Answer: A — Direct Memory Access

DMA = Direct Memory Access - transfers data without CPU.

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

Correct Answer: B — 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
BUses separate I/O address space
CSame as memory-mapped
DNo addresses
Show Answer & Explanation

Correct Answer: B — Uses separate I/O address space

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

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

Correct Answer: C — DMA

DMA is fastest for large data transfers without CPU involvement.

Q8.
Bus in computer:
AStores data
BCommunication pathway
CProcesses data
DGenerates power
Show Answer & Explanation

Correct Answer: B — Communication pathway

Bus is communication pathway between components.

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

Correct Answer: B — 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?
AI/O controlled by DMA
BCPU continuously checks I/O device status
CI/O controlled by interrupts
DI/O controlled by external processor
Show Answer & Explanation

Correct Answer: B — 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
BDMA Controller
CMemory Controller
DI/O Processor
Show Answer & Explanation

Correct Answer: B — 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 uses CPU cycles when CPU is idle
BDMA takes bus control from CPU for one bus cycle at a time
CCPU steals cycles from DMA
DClock cycles are reduced
Show Answer & Explanation

Correct Answer: B — 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 one byte at a time
BDMA transfers entire block of data before releasing bus
CDMA operates in short bursts
DMultiple DMA controllers operate together
Show Answer & Explanation

Correct Answer: B — 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
BAddress used to communicate with I/O device
CType of memory
DCPU register for I/O
Show Answer & Explanation

Correct Answer: B — 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
BCode that executes when an interrupt occurs
CRoutine that initializes interrupts
DService provided by OS for I/O
Show Answer & Explanation

Correct Answer: B — 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
BTime from interrupt request to start of ISR execution
CDuration of ISR execution
DTime to return from interrupt
Show Answer & Explanation

Correct Answer: B — 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 that can be disabled by software
CInterrupt with highest priority
DInterrupt from external device
Show Answer & Explanation

Correct Answer: B — 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
BControl signal exchange between CPU and device for synchronization
CError checking mechanism
DPower management
Show Answer & Explanation

Correct Answer: B — 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
BProcess of deciding which device gets bus control when multiple devices request it
CBus speed control
DBus power management
Show Answer & Explanation

Correct Answer: B — 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.