QB 2 S
QB 2 S
QN=3 ____ is a specialized WRITE command for existing data files that allows
for adding records to end of the file.
a.. APPEND
b. UPDATE
c. REWRITE
d. MODIFY
1
QN=6 Which of the following is not correct about hard links and symbolic links?
a. Symbolic links need space to store the path name and considerable number
of extra disk accesses
b. Hard links do not require extra disk space
c. Symbolic links can point to files in the network
d.. Hard links can point to files on other machines
QN=7 Which ways are used to keep track of free block in disk space
management?
a. A linked list method
b. A bitmap method
c.. Both linked list method and bitmap method
d. None of the other choices
QN=8 The File Manager writes the volume name and other descriptive
information on an easy-to-access place on each unit: ____ of the magnetic
disk
a.. The outermost part
b. The innermost part
c. Immediately following the master file directory
d. Stored at the beginning of the volume
QN=9 Which is the maximum partition size, if the FAT type is FAT-32 and the
block size is 4 KB?
a.. 1 TB
b. 128 MB
c. 256 MB
d. 512 MB
2
QN=10 The main classes of I/O devices are:
a. Stream devices
b. Block devices
c. Character devices
d.. Block devices and Character devices
QN=11 Which of the following statements about the task of device controller of I/O
devices is correct?
a. Convert serial bit stream to block of bytes
b. Perform error correction as necessary
c. Make available to main memory
d.. All of the other choices
QN=12 Which of the following statement is not true about separating I/O and
memory space?
a. Device drivers must be written using assembly language
b. Programs must use 2 instructions to test whether the device is ready
c. There is special protection mechanism to keep user processes from
performing I/O
d.. Caching a device control register would be disastrous
3
QN=14 An interrupt that leaves the machine in well-defined state is called a(n)
______
a.. Precise interrupt
b. Imprecise interrupt
c. Required interrupt
d. Disappointed interrupt
QN=16 Which is the right order between the 4 I/O software layers?
a. User-level I/O software, Device drivers, Interrupt handlers,
Device-independent OS software
b. User-level I/O software, Interrupt handlers, Device drivers,
Device-independent OS software
c. Device-independent OS software, user-level I/O software, Device drivers,
Interrupt handlers
d.. User-level I/O software, Device-independent OS software, Device drivers,
Interrupt handlers
4
QN=17 Which of the following statements about device drivers is incorrect?
a. A device driver is a set of device-specific code for controlling the I/O
device attached to a computer
b. Most operating systems expect device drivers to be part of the kernel
c.. In the I/O software architecture, the device drivers layer lie right above the
hardware, and below the interrupt handlers layer
d. None of the other choices
QN=19 Which of the following is not correct about the reliability of different RAID
levels?
a. There is no reliability support in RAID level 0
b.. All RAID levels can survive one disk crash
c. In RAID level 2, a single bit error in a word can be detected AND
corrected
d. In RAID levels 3, 4, 5 a single bit error in a word can be detected
5
QN=21 Assuming that it takes 10 nsec to copy a byte, how much time does it take
to completely rewrite the screen of a 1000 x 600 pixel graphics with 24- bit
color?
a.. 18 msec
b. 180 micro-sec
c. 180 msec
d. 18 micro-sec
QN=23 ____ is the act of allowing only one process to have access to a dedicated
resource.
a.. Mutual-exclusion condition
b. Circular-wait condition
c. Hold and wait condition
d. No preemption condition
6
QN=25 The permanent blocking of a set of processes that compete for system
resources is called
a. Starvation
b.. Deadlock
c. Prioritization
d. None of the other choices
QN=27 Which deadlock condition does “Request all resources initially” attack?
a. Mutual exclusion
b.. Hold and wait
c. No preemption
d. Circular-wait condition
QN=28 What is the correct approach with the “No preemption condition” to prevent
Deadlock?
a. Order resources numerically
b. Request all resources initially
c. Spool everything
d.. Take resources away
7
QN=2 Consider the following state of a system with four processes, P1, P2, P3 and
9 P4, and five types of resources RS1, RS2, RS3, RS4 and RS5.
Process Allocated Matrix Request Matrix
----------------------------------------------------------------------------------------------
----
P1 01112 11021 E =
(24144)
P2 21000 02110 A =
(01021)
P3 00001 02031
P4 01010 01021
QN=30 Which strategy is used in the Banker’s algorithm for dealing with
deadlocks?
a. Deadlock ignorance
b. Deadlock detection
c.. Deadlock avoidance
d. Deadlock prevention