File system-I/O-protection

Question 1

The index node (inode) of a Unix-like file system has 12 direct, one single-indirect and one double-indirect pointers. The disk block size is 4 kB, and the disk block address is 32-bits long. The maximum possible file size is (rounded off to 1 decimal place) ______ GB.

A
7.0
B
9.0
C
2.0
D
4.0
Question 1 Explanation: 
No. of Disk block pointers = 4kB/32bits = 1k
Max. file size
= (12 × 1k + 1k × 1k) × 4kB
≈ (1024 × 12 + 1024 × 1024) × 4 × 1024 bytes
≈ 4GB
Question 2
Which of the following is an auxiliary storage device?
A
Tape
B
Disk
C
Pen Drive (Memory Stick)
D
All the above
Question 2 Explanation: 
Auxiliary storage is any storage that is made available to the system through input/output channels. This term refers to any addressable storage that is not within the system memory (RAM). These storage devices hold data and programs for future use and are considered nonvolatile storage that retains information even when power is not available. They trade slower read/write rates for increased storage capacity.
Auxiliary storage may also be referred to as secondary storage.
So all the given options are auxiliary memory.
Question 3
Which of the file directory structures support effective sharing of files?
A
Two-level directories
B
Three-structured directories
C
acyclic graph directories
D
single –level directories
Question 4

Consider the Unix i-node which uses 12 direct DBAs, 1 single indirect, 1 double indirect, 1 triple indirect. The disk block address requires 32 bits and disk block size is 1 KB. What is the maximum file size?

A
32 GB
B
64 GB
C
16 GB
D
8 GB
Question 4 Explanation: 
Disk block address size = 32 bits = 32/8 B = 4B
No. of addresses that can fit in one block = size of block/size of address = 210B/22B = 28
∴ The maximum file size,
= (Direct address + 1 single indirect + 1 double indirect + 1 triple indirect) × Block size
= (12 + 28 + 28 × 28 + 28 × 28 × 28) × 210
≌ 234 = 16GB
Question 5
Which table is used in MS DOS for linked list allocation?
A
TLB
B
Page Table
C
FAT
D
Index Table
Question 5 Explanation: 
FAT table is used in MS DOS for linked list allocation
There are 5 questions to complete.

Access quiz wise question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now

If you have registered and made your payment please contact solutionsadda.in@gmail.com to get access