IO Interface · Computer Organization and Architecture
14 questions · asked in 10 of 27 years (2000–2026)
MCQ 12 · NAT 21-mark 11 · 2-mark 3
2000Questions per year2026
Questions 11–14 of 14
Normally user programs are prevented from handling I/O directly by I/O instructions in them. For CPUs having explicit I/O instructions, such I/O protection is ensured by having the I/O instructions privileged. In a CPU with memory mapped I/O, there is no explicit I/O instruction. Which one of the following is true for a CPU with memory mapped I/O?
Answer: (A)
With memory mapped I/O the device registers sit at ordinary memory addresses, so a normal load or store instruction can reach a device. There is no I/O instruction to make privileged, so the protection must come from controlling which addresses a program may use.
The operating system does this. It maps the device address range only into kernel space and never into a user program's address space (using memory management and page protection). A user program cannot address a device, and it asks for I/O through a system call. The system call runs an OS routine in kernel mode, which does the I/O. So I/O protection is ensured by operating system routines.
(B) There is no special I/O instruction to trap on. What stops the access is the OS's control over which addresses a process can use.
(C) System configuration is done once. It cannot decide, for each running program, whether it may touch a device.
(D) Protection is possible, because the OS can keep device addresses out of user programs' reach.
Answer: (A)
The operating system does this. It maps the device address range only into kernel space and never into a user program's address space (using memory management and page protection). A user program cannot address a device, and it asks for I/O through a system call. The system call runs an OS routine in kernel mode, which does the I/O. So I/O protection is ensured by operating system routines.
(B) There is no special I/O instruction to trap on. What stops the access is the OS's control over which addresses a process can use.
(C) System configuration is done once. It cannot decide, for each running program, whether it may touch a device.
(D) Protection is possible, because the OS can keep device addresses out of user programs' reach.
Answer: (A)
What is the bit rate of a video terminal unit with 80 characters/line, 8 bits/character and horizontal sweep time of 100 (including 20 of retrace time)?
Answer: (B)
Bits in one line = bits.
A new line starts every . This sweep time already includes the retrace, and the retrace is part of every cycle, so the average bit rate is taken over the whole . (Dividing by the active time would give the peak rate during the sweep, Mbps, not the average.)
Bit rate =
Answer: (B)
A new line starts every . This sweep time already includes the retrace, and the retrace is part of every cycle, so the average bit rate is taken over the whole . (Dividing by the active time would give the peak rate during the sweep, Mbps, not the average.)
Bit rate =
Answer: (B)
A hard disk with a transfer rate of 10 Mbytes/second is constantly transferring data to memory using DMA. The processor runs at 600 MHz, and takes 300 and 900 clock cycles to initiate and complete DMA transfer respectively. If the size of the transfer is 20 Kbytes, what is the percentage of processor time consumed for the transfer operation?
Answer: (D)
The CPU is used only to start and to finish the DMA transfer. During the transfer itself it is free.
Let be the CPU time to start and finish the DMA, and the time to transfer the data. Then
(clock cycle = 1/frequency).
The disk rate is MB/s, so 1 byte takes s. For 20 KB, .
Percentage =
Answer: (D)
Let be the CPU time to start and finish the DMA, and the time to transfer the data. Then
(clock cycle = 1/frequency).
The disk rate is MB/s, so 1 byte takes s. For 20 KB, .
Percentage =
Answer: (D)
A slow memory can be connected to 8085 by using
Answer: (D)
A slow memory is connected to the 8085 through the READY signal. The 8085 checks READY during a read or write. If READY is low, it adds wait states and holds the cycle until READY goes high. This gives the slow memory time to respond. So option (D) is the one.
The others do not fit: INTR (the interrupt request input) asks for an interrupt service, HOLD is used by a DMA controller to ask for the bus, and RESET IN restarts the processor. None of them adds wait states.
Answer: (D)
The others do not fit: INTR (the interrupt request input) asks for an interrupt service, HOLD is used by a DMA controller to ask for the bus, and RESET IN restarts the processor. None of them adds wait states.
Answer: (D)
Keep practising