Operating System MCQs on “I/O System – Application I/O Interface”
1. If one or more devices use a common set of wires to communicate with the computer system, the connection is called ______
a) CPU
b) Monitor
c) Wirefull
d) Bus
Answer: d
Clarification: None.
2. A ____ a set of wires and a rigidly defined protocol that specifies a set of messages that can be sent on the wires.
a) port
b) node
c) bus
d) none of the mentioned
Answer: c
Clarification: None.
3. When device A has a cable that plugs into device B, and device B has a cable that plugs into device C and device C plugs into a port on the computer, this arrangement is called a _________
a) port
b) daisy chain
c) bus
d) cable
Answer: b
Clarification: None.
4. The _________ present a uniform device-access interface to the I/O subsystem, much as system calls provide a standard interface between the application and the operating system.
a) Devices
b) Buses
c) Device drivers
d) I/O systems
Answer: c
Clarification: None.
5. A ________ is a collection of electronics that can operate a port, a bus, or a device.
a) controller
b) driver
c) host
d) bus
Answer: a
Clarification: None.
6. An I/O port typically consists of four registers status, control, ________ and ________ registers.
a) system in, system out
b) data in, data out
c) flow in, flow out
d) input, output
Answer: b
Clarification: None.
7. The ______ register is read by the host to get input.
a) flow in
b) flow out
c) data in
d) data out
Answer: c
Clarification: None.
8. The ______ register is written by the host to send output.
a) status
b) control
c) data in
d) data out
Answer: d
Clarification: None.
9. The hardware mechanism that allows a device to notify the CPU is called _______
a) polling
b) interrupt
c) driver
d) controlling
Answer: b
Clarification: None.
10. The CPU hardware has a wire called __________ that the CPU senses after executing every instruction.
a) interrupt request line
b) interrupt bus
c) interrupt receive line
d) interrupt sense line
Answer: a
Clarification: None.
11. The _________ determines the cause of the interrupt, performs the necessary processing and executes a return from the interrupt instruction to return the CPU to the execution state prior to the interrupt.
a) interrupt request line
b) device driver
c) interrupt handler
d) all of the mentioned
Answer: c
Clarification: None.
12. In general the two interrupt request lines are ____________
a) maskable & non maskable interrupts
b) blocked & non maskable interrupts
c) maskable & blocked interrupts
d) none of the mentioned
Answer: a
Clarification: None.
13. The _________ are reserved for events such as unrecoverable memory errors.
a) non maskable interrupts
b) blocked interrupts
c) maskable interrupts
d) none of the mentioned
Answer: a