Design of UNIX Operating System M.J Bach MCQ UNIT - II
Design of UNIX Operating System M.J Bach MCQ UNIT - II
1.The-------------- may read data from the disk to the buffer and manipulate it or write data to the
buffer and possibly to the disk.
a.Kernal.
b.Controller
c.Disk Controller
d.getblk algorithm
2.The kernal involves algorithm ----------------- when a process has no more need for buffer.
a. Brelse
b.bread
c.breada
d.iget
3.The kernal must write the ------------------------- buffer to disk and allocate another buffer.
a.write
b. delayed write
c.pre write
d.delayed read
4.The algorithm for reading and writing disk block use the algorithm ------------------------------.
a.iget
b.iput
c.inode
d. getblk
5. Buffer cache helps to...............................
a. Store data
b. Improved read/write performance
c. Allocate memory
d. None of the above
8. Kernel minimizes the frequency of disk access by keeping a pool of internal data buffer which
helps to increase the response time, this is known as ?
a. Buffer cache
b. Spooling
c. Pooling
d. Virtual Memory
9. When a process wants to access the data from a file, the ______brings the data into main
memory.
a. Driver
b. Controller
c. Kernel
d. None
10.The kernel attempts to minimize the frequency of disk access by keeping a pool of internal
data buffers, called the __________.
a.Buffer pool
b.Buffer cache
c.Buffer Header
d.Free Buffer
11.A memory array that contains data from the disk and a ________that identifies the buffer.
a. Hash Queue
b. Buffer pool
c.Buffer Header
d. Buffer Cache
12.The kernel must write the buffer contents to disk before reassigning the buffer, this condition
is
known as _________.
a.Delayed-read
b.Unlocked
c.Locked
d.Delayed-write
13. The system places number of data alignment restrictions on user processes doing input,
because the kernel aligns _________.
a.Data externally
b.Data internally-externally
c.Data internally
d.Data externally-internally
14.The buffer algorithm help ____________integrity, because they maintain a common, single
image of
a disk blocks contained in the cache.
a. to storage file system
b. to managing the file system
c. to modified file system
d. to insure file system
15.A process reading data has the ___________from disk into the kernel, and from the kernel to
the user process.
a. Data write
b. Data read
c. Data read-write
d.Data write-read
16.Kernel minimizes the frequency of disk access by keeping a pool of internal data buffer which
helps to increase the response time, this is known as ?
a) Buffer cache
b) Spooling
c) Pooling
d) Virtual Memory
a) True
b) False
a) Buffer Cache
b) Buffer Header
c) main Memory
d) disk memory
23.The buffer header also contains the status of the buffer. The status of the buffer could be
a) Locked/unlocked
b) Buffer contains a valid data or not.
c) Whether the kernel should write the contents to disk immediately or before
reassigning the buffer(write delay)
d) Kernel is currently reading the data or writing the data.
e) Is there any process waiting for the buffer to get free.
f) All of the above
24.The algorithm for reading and writing disk blocks uses the algorithm -------- to allocate buffer
from the pool.
a) getblk
b) read
c) bread
d) get