Question 1
A file system with 300 GByte disk uses a file descriptor with 8 direct block addresses, 1 indirect block address and 1 doubly indirect block address. The size of each disk block is 128 Bytes and the size of each disk block address is 8 Bytes. The maximum possible file size in this file system is
3 Kbytes
35 Kbytes
280 Bytes
Dependent on the size of the disk
Question 2
The data blocks of a very large file in the Unix file system are allocated using
contiguous allocation
linked allocation
indexed allocation
an extension of indexed allocation
Question 3
A Unix-style i-node has 10 direct pointers and one single, one double and one triple indirect pointers. Disk block size is 1 Kbyte, disk block address is 32 bits, and 48-bit integers are used. What is the maximum possible file size ?
224 bytes
232 bytes
234 bytes
248 bytes
Question 4
Consider a disk pack with a seek time of 4 milliseconds and rotational speed of 10000 rotations per minute (RPM). It has 600 sectors per track and each sector can store 512 bytes of data. Consider a file stored in the disk. The file contains 2000 sectors. Assume that every sector access necessitates a seek, and the average rotational latency for accessing each sector is half of the time for one complete rotation. The total time (in milliseconds) needed to read the entire file is _________.
14020
14000
25030
15000
Question 5
Consider a linear list based directory implementation in a file system. Each directory is a list of nodes, where each node contains the file name along with the file metadata, such as the list of pointers to the data blocks. Consider a given directory foo. Which of the following operations will necessarily require a full scan of foo for successful completion?
Creation of a new file in foo
Deletion of an existing file from foo
Renaming of an existing file in foo
Opening of an existing file in foo
Question 6
In the index allocation scheme of blocks to a file, the maximum possible size of the file depends on :
The size of the blocks, and the size of the address of the blocks.
The number of blocks used for the index, and the size of the blocks.
The size of the blocks, the number of blocks used for the index, and the size of the address of the blocks.
None of these
Question 7
What is the swap space in the disk used for?
Saving temporary html pages
Saving process data
Storing the super-block
Storing device drivers
Question 8
Consider two files systems A and B , that use contiguous allocation and linked allocation, respectively. A file of size 100 blocks is already stored in A and also in B. Now, consider inserting a new block in the middle of the file (between 50th and 51st block), whose data is already available in the memory. Assume that there are enough free blocks at the end of the file and that the file control blocks are already in memory. Let the number of disk accesses required to insert a block in the middle of the file in A and B are nA and nB respectively, then the value of nA + nB is_________.
189
236
153
323
Question 9
A disk of size 512M bytes is divided into blocks of 64K bytes. A file is stored in the disk using linked allocation. In linked allocation, each data block reserves 4 bytes to store the pointer to the next data block. The link part of the last data block contains a NULL pointer (also of 4 bytes). Suppose a file of 1M bytes needs to be stored in the disk. Assume, 1K = 210 and 1M = 220. The amount of space in bytes that will be wasted due to internal fragmentation is ______. (Answer in integer)
65468
There are 9 questions to complete.