NEOCODE

File System Implementation MCQs

PROTECTION

1. UNIX file permissions include:

Correct Answer: a) Read, Write, Execute

Explanation:
UNIX systems use a basic permission system with read (r), write (w), and execute (x) permissions for owner, group, and others.

2. Access Control Lists (ACLs) provide:

Correct Answer: b) Granular control

Explanation:
ACLs extend basic permissions by allowing specific access rights to be defined for individual users and groups, providing finer-grained security control.

ALLOCATION METHODS

3. Contiguous allocation suffers from:

Correct Answer: b) External fragmentation

Explanation:
Contiguous allocation requires files to occupy consecutive disk blocks, leading to external fragmentation as free space becomes broken into small non-contiguous chunks.

4. Linked allocation uses:

Correct Answer: b) Pointers between blocks

Explanation:
In linked allocation, each disk block contains a pointer to the next block in the file, creating a chain that can be non-contiguous.

FREE-SPACE MANAGEMENT

5. A bit vector tracks:

Correct Answer: b) Free blocks

Explanation:
A bit vector (or bitmap) uses one bit per disk block (0=free, 1=allocated) to efficiently track available space.

6. Grouping free blocks improves:

Correct Answer: a) Speed

Explanation:
Grouping adjacent free blocks together (as in the counting method) speeds up allocation by reducing the number of individual block operations needed.

DIRECTORY IMPLEMENTATION

7. Linear list directories are:

Correct Answer: b) Simple but slow

Explanation:
Linear lists store directory entries sequentially, making implementation simple but requiring O(n) searches for file lookups in large directories.

8. Hashing improves:

Correct Answer: b) Directory searches

Explanation:
Hash tables convert filenames to array indices, enabling O(1) average-case lookup time for directory entries (though collisions must be handled).

9. Inode-based systems store:

Correct Answer: c) Both

Explanation:
Inodes (index nodes) contain file metadata (permissions, timestamps) and block pointers, while directory entries map names to inode numbers.