wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

I/O Systems Quiz

Total questions: 14

Worksheet time: 5mins

Name
Class
Date
1.

When does interrupt chaining occur?

a)

Controller busy

b)

Busy-wait cycle wait for I/O device

c)

More than one device at same interrupt number

d)

Ignore or delay some interrupt

2.

Which instruction cycle will cause interrupt?

a)

Read status

b)

Status register = 0

c)

Driver place command

d)

Controller clears busy bit

3.

Fibre channel (FC) is complex controller, usually separate circuit board plugging into bus

a)

True

b)

False

4.

Which of the following best explains why DMA is more efficient than programmed I/O for large data transfers?

a)

DMA transfers data one byte at a time

b)

DMA allows the CPU to control every transfer

c)

DMA moves data directly between device and memory without CPU involvement

d)

DMA eliminates the need for device drivers

5.

How does the operating system hide hardware differences from applications?

a)

By allowing applications to access hardware directly

b)

By using device drivers to encapsulate controller-specific details

c)

By requiring different system calls for each device

d)

By disabling unsupported devices

6.

Why do operating systems provide a separate socket interface for network devices?

a)

Network devices only support synchronous I/O

b)

Network I/O behavior differs significantly from disk I/O

c)

Network devices do not use interrupts

d)

Network devices cannot be abstracted by drivers

7.

What is a key feature of asynchronous I/O?

a)

It’s easy to use

b)

It suspends the process

c)

It signals the process when I/O is done

d)

It uses only one thread

8.

What system call in UNIX can be used for clocks and timers?

a)

fork()

b)

exec()

c)

ioctl()

d)

sleep()

9.

What is the main purpose of spooling in the kernel I/O subsystem?

a)

To speed up data access by storing copies

b)

To allow a device to handle multiple requests at once

c)

To hold output for a device that can handle only one request at a time

d)

To prevent deadlocks during device access

10.

Which of the following is an example of advanced error handling?

a)

Always terminating a process when an I/O error occurs

b)

Solaris FMA stopping the use of devices with increasing retry-able errors

c)

Ignoring all disk read errors

d)

Returning no error code when I/O fails

11.

Which of the following is a reason the kernel uses complex data structures for I/O?

a)

To simplify user interface design

b)

To track buffers, memory allocation, and dirty blocks

c)

To reduce CPU usage

d)

To allow direct access to device drivers

12.

Which of the following best describes caching in the Kernel I/O Subsystem?

a)

Holding output until a device is free

b)

Providing exclusive access to a device

c)

Storing a faster copy of data to improve I/O performance

d)

Allocating and de-allocating devices to avoid deadlock

13.

When an I/O request fails, most operating systems return an error code or error number to indicate the failure.

a)

True

b)

False

14.

What is the correct sequence of events when a user program performs I/O using a system call?

a)

Perform I/O → Trap to kernel → Return to calling thread

b)

Trap to kernel → System call dispatch → Perform I/O → Return to calling thread

c)

System call dispatch → Return to calling thread → Perform I/O

d)

Trap to kernel → Return to calling thread → Perform I/O