Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Chapter 5: Principles of I/O software

Total questions: 20

Worksheet time: 20mins

Name
Class
Date
1.

List all functions of device independent I/O Software

a)

Uniform interfacing for device drivers.

b)

Buffering and

Error Reporting.

c)

Allocating and releasing dedicated devices.

d)

Providing a device-independent block size.

e)

All answers are Correct

2.

What's asynchronous transfer in principles of I/O software?

a)

The user program starts system call to transfer and automatically suspended until the data are available in the buffer.

b)

The CPU starts the transfer and goes off to do something else until the interrupt arrives.

c)

None of the other choices.

d)

The user process makes system call and goes to sleep until other process it wakes up.

3.

Imagine that a certain modem can read 7,000 characters per second and that the time to read a character to the modem register is so short it can be ignored. If to run this modem using interrupt-driven I/O and each character read requires an interrupt that takes 10 µsec all-in to service. How many percent of the CPU does the interrupt overhead cost?

a)

96% of the CPU

b)

4% of the CPU

c)

93% of the CPU

d)

7% of the CPU

4.

Which of the following statements is not correct about DMA ?

a)

The operating system can only use DMA if the hardware has a DMA controller

b)

DMA controller has access to the system bus independent of the CPU

c)

DMA controller is usually faster than CPU

d)

DMA helps reduce the number of interrupts (in comparison with interrupt-driven I/O)

5.

Which statement about DMA is incorrect?

a)

The CPU can start a DMA block transfer, and in the mean time do other work

b)

The CPU needs not to be concerned with the time it takes to transfer data

c)

The controller does not need to wait for the CPU to transfer data to/from memory

d)

It is always true that DMA is less expensive than CPU-mediate data transfers

6.

Which of the following statements about interrupts and trap instructions is incorrect?

a)

A trap instruction is a software-generated interrupt

b)

An interrupt handler deals with the cause of the interrupt

c)

An interrupt is a hardware-generated change of control flow within the system

d)

None of the other choices

7.

The I/O technique where the processor busy waits for an I/O operation to complete is called:

a)

Programmed I/O

b)

Direct Memory Access (DMA)

c)

Interrupt-driven I/O

d)

None of the other choices

8.

Which of the following statements about the task of device controller of I/O devices is correct ?

a)

Make available to main memory

b)

Convert serial bit stream to block of bytes

c)

Perform error correction as necessary

d)

All of the other choices

9.

DMA operations require the following information from the processor

a)

Address of I/O device

b)

Starting memory location to read from and write to

c)

Number of words to be read or written

d)

All of the other choices

10.

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

11.

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

12.

For large data transfers, _________ is used.

a)

DMA

b)

Programmed I/O

c)

Controller register

d)

None of the mentioned

13.

The ________ can be turned off by the CPU before the execution of critical instruction sequences that must not be interrupted.

a)

Nonmaskable interrupt

b)

Blocked interrupt

c)

Maskable interrupt

d)

None of the mentioned

14.

A character stream device transfers:

a)

Bytes one by one

b)

Block of bytes as a unit

c)

With unpredictable response times

d)

None of the mentioned

15.

Buffering is done to:

a)

Cope with device speed mismatch

b)

Cope with device transfer size mismatch

c)

Maintain copy semantics

d)

All of the mentioned

16.

The ________ keeps state information about the use of I/O components.

a)

CPU

b)

OS

c)

Kernel

d)

Shell

17.

Asynchronous transmission is described as the:

a)

Transmission in which the transmitter and receiver of the data transmit and receive data at different rates

b)

Transmission in which the transmitter and receiver of the data transmit and receive data at same rates

c)

Transmission of start and stop bits are completed before the data transmission commences

d)

Clocking frequency of transmission is synchronized with each bus cycle

18.

Synchronous transmission differs from asynchronous transmission in that:

a)

The frequency clocks of the sending and receiving components are synchronized before transmission commences

b)

Transmission is initiated independent of a monitoring clock

c)

The start and stop data bits are unified before transmission commences

d)

The sending capacity and receiving capacity of the connections are unified before transmission

19.

Which buffer holds the output for a device?

a)

Spool

b)

Output

c)

Status

d)

Magic

20.

All the output information that is to be transferred to an output device is placed in

a)

Instruction Register

b)

Input/output Register

c)

Control Register

d)

Buffer Register