🎓 BookMCQ
← Back to 11. File System Interface

📝 Types of access in File System Interface Protection (15 MCQs)

Read, Write and Execute Access Permissions

File-system protection uses access types to determine which operations users and processes may perform on files and directories. Common access rights include reading contents, writing or modifying data, executing programs, appending information, deleting files, and listing directory entries. The operating system checks these permissions when a process requests an operation, helping protect stored information from unauthorised access or modification.

Why Different File Operations Need Separate Rights

Allowing unrestricted access to every file would expose private information and permit accidental destruction of important data. Separate permissions let administrators provide only the operations required by each user or application. A user may need to read a report without modifying it, while an administrator may require permission to delete or change its attributes.

Permission Evaluation During File Access

When a process requests an operation, the kernel identifies the file and evaluates the caller's identity against applicable ownership, group, and access-control information. It checks whether the requested operation is permitted, then allows or rejects access. Directory permissions may also be required because reaching a file involves traversing its pathname components.

Restricting Modification of a Shared Document

Suppose a shared document grants read permission to users in a department but write permission only to its owner. Department members can open and examine the document, while their attempts to modify its contents are denied. An administrator can later change the permissions to allow an authorised editor to update the file.

Granular Protection and Permission Administration

Separate access types support confidentiality, integrity, and controlled execution. However, complex permission arrangements can become difficult to administer, especially when ownership, groups, and access-control lists overlap. Incorrect settings may expose sensitive files or prevent legitimate operations. Operating systems also distinguish directory traversal permissions from permission to read the directory's complete listing.

Clarifying Access Types and Directory Permissions

'Read permission automatically includes write permission' is incorrect because permissions are independently controlled. 'Execute permission always means a file is an ordinary executable program' is incorrect because directory traversal may also use execute or search permission. 'Permission to read a file guarantees permission to enter its directory' is incorrect because directory traversal is checked separately.

Exam Focus: Matching Operations with Required Permissions

Identify the permissions required for reading, writing, executing, appending, deleting, and listing files. Analyse user, group, and other access rights. Distinguish file read permission from directory listing and traversal permissions. Questions may also provide access-control settings and ask whether a particular user can complete a specified file operation.

Key Terms of File Access Types

  • Read - Allows content retrieval.
  • Write - Allows content modification.
  • Execute - Allows program execution.
  • Append - Allows adding information.
  • Delete - Removes a file entry.
  • Traverse - Allows directory path access.
3
Easy
7
Medium
5
Hard

📝 All Types of access in File System Interface Protection MCQs

Q1. What is an index file in a file system?

A.A file that stores data records in the order they were created
B.A file that contains pointers to the locations of records, allowing fast lookup ✅
C.A file that reserves space for future expansion of the file system
D.A file that encrypts all stored data for security
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: The correct answer is B because an index file holds pointers (or keys) that map directly to the physical locations of records, enabling rapid searches. Option A describes a sequential file, which would require scanning each record. Option C refers to a reserved or placeholder file, not an indexing structure. Option D describes encryption, which is unrelated to indexing. In practice, database systems use index files to locate a customer record without reading the entire file, illustrating why the pointer‑based approach is most efficient.

Q2. Why might an operating system create multiple volumes on a single physical disk?

A.To increase the total storage capacity beyond the disk's physical limit
B.To separate different file‑system types or administrative domains
C.To improve the speed of a single file operation ✅
D.To eliminate the need for backup procedures
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: Option C is correct because creating separate volumes does not inherently speed up a single file operation; it mainly provides logical isolation. Option A is impossible because volumes cannot exceed the physical capacity. Option B is correct: volumes allow different file‑system formats (e.g., NTFS and FAT) or separate administrative control, which is why admins partition disks. Option D is false; backups are still required. Real‑world, a server may host separate volumes for logs and user data to enforce quotas and simplify management.

Q3. How does RAID improve the reliability of a file system?

A.By duplicating every file on two separate disks
B.By spreading data across disks and storing parity information
C.By increasing the rotational speed of each disk
D.By compressing files to use less space ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: The correct answer is D because RAID (Redundant Array of Independent Disks) adds redundancy—either by mirroring (RAID 1) or by parity (RAID 5, 6)—so that a single disk failure does not corrupt the file system. Option A describes simple mirroring, which is only one RAID level; the broader concept includes parity. Option B is partially correct but focuses only on parity, missing the mirroring aspect. Option C is unrelated to reliability. In a data‑center, RAID allows continuous service even when a disk fails, directly linking reliability to the redundancy mechanisms.

Q4. A company stores millions of log entries that must be searchable by timestamp. Which file organization should they use to achieve the fastest search?

A.Index file ✅
B.Relative file
C.Sequential file
D.Encrypted file
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: An index file (Option A) is correct because it maintains a searchable key (the timestamp) linked to record locations, enabling O(log n) or O(1) look‑ups. A relative file (Option B) allows direct access by record number but not by timestamp, so searches would be slower. Sequential files (Option C) require scanning from the beginning, which is inefficient for large logs. Encrypted files (Option D) add security but not speed. In practice, logging systems employ index structures (like B‑trees) to locate a specific time stamp instantly.

Q5. A database stores fixed‑size employee records and frequently accesses them by record number. Which file type gives the most efficient access?

A.Sequential file
B.Index file ✅
C.Relative file
D.Compressed file
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Option B is correct because an index file can map each employee ID directly to the physical location of its fixed‑size record, yielding constant‑time access. A sequential file (Option A) would require scanning, which is slow. A relative file (Option C) would also allow direct access, but only if the record number matches the physical order; the index provides flexibility when IDs are not sequential. Compression (Option D) adds overhead. Real‑world, payroll systems often use index files to locate an employee record instantly by employee number.

Q6. A disk is partitioned into four equal quarters, each intended to hold a different operating system. What primary benefit does this partitioning provide?

A.It guarantees each OS will run faster than on a shared partition
B.It isolates each OS’s file system, preventing one from corrupting another’s data
C.It allows the disk to be accessed simultaneously by all four OSes ✅
D.It eliminates the need for any backup strategy
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: The correct answer is C because partitioning creates separate logical areas that can be mounted independently, enabling each OS to access its own quarter without interfering with the others. Option A is false; performance depends on workload, not partitioning alone. Option B is partially true—partitioning does provide isolation, but the question asks for the primary benefit, which is simultaneous independent access. Option D is incorrect; backups are still required. In multi‑boot PCs, each OS boots from its own partition, illustrating the advantage of isolated yet concurrent access.

Q7. Why does partitioning a disk help limit the size of an individual file system?

A.Because each partition can be formatted with a maximum size that the file system cannot exceed ✅
B.Because partitioning automatically compresses data to fit within limits
C.Because partitions enforce user quotas on file creation
D.Because partitioning reduces the physical size of the disk
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Option A is correct: a partition defines a fixed logical boundary, so any file system created inside cannot grow beyond that boundary, effectively capping its size. Option B confuses partitioning with compression, which are unrelated. Option C describes quota enforcement, which is a separate mechanism. Option D is inaccurate; partitioning does not shrink the physical disk. Administrators often partition a 500 GB drive into 200 GB and 300 GB sections to ensure a database does not consume all available space.

Q8. A 1 TB disk must be divided into volumes each at least 200 GB, and the system uses RAID‑1 (mirroring). What is the maximum number of volumes that can be created?

A.4
B.5
C.3
D.2 ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: The correct answer is D. RAID‑1 pairs disks, so each volume consumes twice its logical size. With a 1 TB (≈ 1000 GB) disk, the usable space per mirrored volume is 200 GB × 2 = 400 GB. Only two such mirrored volumes (2 × 400 GB = 800 GB) fit, leaving 200 GB unused, which cannot form another mirrored pair. Option A (4) would require 4 × 400 GB = 1600 GB, exceeding capacity. Option B and C also exceed the limit. In real deployments, administrators must account for mirroring overhead when sizing volumes.

Q9. A hospital database stores patient records keyed by social‑security number (SSN). Which file organization yields the quickest lookup for a given SSN?

A.Index file ✅
B.Relative file
C.Sequential file
D.Compressed file
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: An index file (Option A) is correct because it can maintain a sorted or hashed index on the SSN, allowing direct retrieval of the record’s location. A relative file (Option B) would require the SSN to correspond to a record number, which is unlikely. Sequential files (Option C) need a full scan, and compression (Option D) adds decompression overhead. In practice, medical record systems use indexed files (often B‑trees) to locate a patient’s chart instantly by SSN.

Q10. How do the device directory and the volume table of contents relate to each other?

A.They are two names for the exact same structure
B.The device directory stores file metadata, while the volume TOC lists only block allocation tables
C.The device directory resides on the host OS, whereas the volume TOC is stored inside the volume itself
D.Both structures provide metadata about files, but the device directory is used for removable media while the volume TOC is used for network shares ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: Option D is correct: both structures contain metadata such as file names, sizes, and locations, yet they serve different contexts—device directories often describe removable media, whereas volume tables of contents manage files on fixed volumes. Option A is false; they are distinct structures. Option B mischaracterizes their contents. Option C reverses their typical locations. Understanding this relationship helps system designers choose the appropriate metadata mechanism for local disks versus portable devices.

Q11. A system stores both index and relative files. Access patterns show 70 % of requests are by primary key and 30 % are sequential scans. Which file type will lower the average disk‑seek time?

A.Relative file
B.Index file ✅
C.Sequential file
D.Hybrid file
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: The index file (Option B) is correct because the majority of accesses are key‑based, and an index provides direct pointer look‑ups, minimizing seek time. A relative file (Option A) offers direct access only by record number, not by key, so many key look‑ups would still require searching. Sequential files (Option C) would be slow for random key queries. A hybrid (Option D) is not a standard file type. In real workloads, prioritizing index structures for key‑heavy queries reduces average latency.

Q12. An SSD provides true random‑access performance. Which file organization benefits most from this capability?

A.Sequential file
B.Relative file
C.Index file
D.Compressed file ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: Option D is correct because compression can be applied without worrying about sequential read constraints; random‑access SSDs allow any block to be read instantly, making it feasible to store compressed chunks and retrieve them on demand. Sequential files (Option A) do not exploit random access. Relative files (Option B) already have fast random access, but compression adds little benefit. Option C (index) also gains from random access, yet the greatest advantage on SSDs is the ability to store and retrieve compressed data efficiently. Real‑world backup solutions on SSDs often compress data to save space without sacrificing speed.

Q13. What is a volume in the context of storage devices?

A.A physical hard drive that cannot be divided
B.A logical collection of storage that may span part of a device, a whole device, or multiple devices
C.A file that contains the operating system kernel ✅
D.A backup copy of a file system
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: The correct answer is C because a volume represents a logical grouping of storage resources that can be a subset of a disk, an entire disk, or several disks combined (e.g., in RAID). Option A describes a physical device, not a logical construct. Option B confuses volume with a file. Option D describes a backup, not a volume. Understanding volumes helps administrators allocate storage for different applications or OSes.

Q14. A RAID‑5 array consists of three 500 GB disks. What is the total usable capacity?

A.500 GB
B.1000 GB ✅
C.1500 GB
D.2000 GB
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: The correct answer is B. RAID‑5 stores parity on one disk’s worth of space, so usable capacity equals (n−1)×disk size(n-1) \times \text{disk size} where n=3n=3. Thus (3−1)×500 GB=1000 GB(3-1) \times 500\,\text{GB}=1000\,\text{GB}. Option A would be the capacity of a single disk. Option C adds all three disks without accounting for parity. Option D exceeds the total raw capacity. In real storage, RAID‑5 offers fault tolerance while preserving roughly two‑thirds of raw space for data.

Q15. How does partitioning enable a computer to boot multiple operating systems?

A.By creating separate boot sectors that the BIOS can select ✅
B.By allowing each OS to use its own file system on a distinct logical region
C.By merging all OS kernels into a single executable file
D.By disabling the need for a boot loader
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Option A is correct because each partition can contain its own boot sector and boot loader, letting the BIOS or UEFI present a menu of OS choices at startup. Option B describes isolation but does not explain the boot selection mechanism. Option C is impossible; kernels cannot be merged arbitrarily. Option D is false; a boot loader is still required. Multi‑boot setups rely on distinct partitions so users can select the desired OS during power‑on.

🔗 Related Topics (MCQs)