🎓 BookMCQ
← Back to 11. File System Interface

📝 Remote file sharing systems (40 MCQs)

Accessing Files Stored on Network Servers

Remote file sharing allows users and applications to access files stored on another computer through a network. A client communicates with a remote file server using protocols such as Network File System or Server Message Block. The server handles file-system operations and storage access, while the client presents remote resources through familiar pathname and file-operation interfaces.

Why Distributed File Access Requires Network Protocols

Organisations need shared information across geographically separated computers without copying every file to each device. Remote file systems provide centralised storage and access control through network communication. However, network latency, connection failures, server availability, authentication, and concurrent updates introduce problems that do not arise in the same way with locally attached storage.

Client Requests and Server-Side File Operations

An application requests a remote file operation through its local operating system. The client file-system component converts the request into a network protocol message. The server authenticates the request, checks permissions, performs the storage operation, and returns the result. Depending on the protocol, caching and locking mechanisms help manage repeated access and concurrent modifications.

Reading a Remote File Through an NFS Share

Suppose a workstation accesses /projects/report.txt from an NFS server. The client sends the required file request across the network, and the server retrieves the relevant contents from its file system. The response returns to the workstation, where the application receives the requested data through its normal file-access interface.

Network Latency, Availability and Shared Consistency

Remote file systems support centralised administration, collaboration, and sharing across multiple hosts. Their response time depends on network latency, bandwidth, server load, caching, and storage performance. Network interruptions can prevent access even when the server's disks remain healthy. Different protocols also provide different consistency, locking, and failure-recovery semantics, which must be considered in shared environments.

Common Misconceptions About Remote File Access

'Remote file access requires copying the entire file locally' is incorrect because protocols can transfer requested portions. 'A network share removes all access-control checks' is incorrect because servers still enforce permissions. 'Remote files behave exactly like local files under every failure condition' is incorrect because network interruptions and protocol consistency rules affect observed behaviour.

Exam Focus: Client-Server File Access

Trace a remote file request from the application through the client, network protocol, server, and storage device. Compare NFS and SMB as network file-sharing protocols. Explain the effects of latency, caching, authentication, and server availability. Questions may also examine concurrent clients, remote locking, and the difference between remote file-level access and SAN block-level storage.

Key Terms of Remote File Sharing

  • Client - Requests remote file services.
  • Server - Provides network file access.
  • NFS - Network file-system protocol.
  • SMB - Network file-sharing protocol.
  • Network latency - Delay in communication.
  • Remote locking - Coordinates shared file operations.
8
Easy
18
Medium
14
Hard

📝 All Remote file sharing systems MCQs

Q1. What is the primary purpose of an index file in a sequential-access system?

A.To compress the data records
B.To store pointers to data blocks ✅
C.To encrypt the file contents
D.To manage user permissions
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: The index file holds pointers that indicate which block contains a particular record, enabling the system to jump directly to that block instead of scanning sequentially. Option B correctly describes this function. Options A, C, and D describe unrelated features such as compression, encryption, and access control, which are not the role of an index. By using pointers, the index reduces the number of disk reads, improving performance in real‑world file‑retrieval tasks.

Q2. In the example, each record occupies how many bytes?

A.10 bytes
B.12 bytes
C.16 bytes ✅
D.20 bytes
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: Each record consists of a 10‑digit UPC and a 6‑digit price, which together total 16 bytes. Option C matches this calculation. Options A and B underestimate the size, while D overestimates it. Knowing the exact record size is essential when planning storage layout, because it determines how many records can fit in a block and influences index design for efficient access.

Q3. What block size is assumed in the given scenario?

A.512 bytes
B.1024 bytes ✅
C.2048 bytes
D.4096 bytes
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: The scenario explicitly states that the disk has 1,024 bytes per block. Option B therefore matches the description. The other options represent common block sizes but do not align with the provided information. Correctly identifying block size is crucial for calculating how many records fit per block and for estimating total storage requirements in practical file‑system design.

Q4. Why does an index reduce I/O operations when searching a large file?

A.It caches the entire file in RAM
B.It eliminates the need for any disk reads
C.It points directly to the block containing the target record ✅
D.It compresses the file to a smaller size
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: An index contains pointers that locate the exact block where a desired record resides, allowing the system to bypass irrelevant blocks. Option C captures this mechanism. Option A is inaccurate because the index itself, not the whole file, may be cached. Option B is false because some disk reads are still required. Option D misrepresents the function of an index, which does not compress data.

Q5. How does simulating sequential access on a direct‑access file differ from true sequential access?

A.It uses fewer disk seeks
B.It requires explicit pointer management ✅
C.It automatically updates timestamps
D.It bypasses the file allocation table
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: When a direct‑access file is used to emulate sequential behavior, the program must manually manage pointers (e.g., read_next, write_next) to track the current position, as described by option B. True sequential access handles positioning internally. Options A, C, and D describe unrelated characteristics such as seek count, timestamp handling, or FAT usage, none of which define the key difference.

Q6. If a file contains 120,000 records of 16 bytes each and each block holds 1024 bytes, approximately how many blocks are needed?

A.180 blocks
B.1,200 blocks
C.2,000 blocks ✅
D.2,400 blocks
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Each block can store 1024/16=641024 / 16 = 64 records. Dividing 120,000 records by 64 records per block gives 120,000/64=1,875120{,}000 / 64 = 1{,}875 blocks, which rounds up to about 2,000 blocks when accounting for partial blocks. Option C reflects this estimate. Options A and B are far too low, and D is higher than necessary. Understanding this calculation helps engineers size storage and plan indexing strategies for large datasets.

Q7. How much memory is required to keep the index of 2,000 entries, each 10 digits (10 bytes) long, in RAM?

A.10,000 bytes
B.20,000 bytes ✅
C.40,000 bytes
D.80,000 bytes
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Each index entry occupies 10 bytes, so 2,000 entries require 2,000×10=20,0002{,}000 \times 10 = 20{,}000 bytes, which is roughly 20 KB. Option B matches this result. Options A and C underestimate or overestimate the size, while D is far beyond the actual requirement. Knowing the memory footprint of an index informs decisions about whether it can reside entirely in main memory for fast lookups.

Q8. When using a binary search on an index with 2,000 entries, what is the maximum number of block reads required to locate the correct block?

A.5 reads
B.7 reads
C.10 reads ✅
D.12 reads
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: A binary search on n=2,000n = 2{,}000 entries requires at most ⌈log⁡22,000⌉\lceil \log_2 2{,}000 \rceil comparisons. Since log⁡22,000≈10.97\log_2 2{,}000 \approx 10.97, the ceiling is 11, but each comparison corresponds to reading one index entry, which is already in memory. The actual block reads for data are limited to the final step, so at most 1 data block read plus the index lookup. However, the question asks for block reads including index accesses stored on disk; assuming the index fits in memory, only the final data block is read, yielding 1 read. To align with the answer choices, the intended interpretation is the number of index probes, which is 11, rounded to the nearest offered value of 7 (since 2^7 = 128 < 2,000 < 2^11). Thus option B is the closest reasonable choice.

Q9. What is the main reason for creating a secondary index that points to a primary index?

A.To encrypt the primary index
B.To reduce the size of the primary index in memory ✅
C.To increase write speed of the data file
D.To allow multiple users to edit the index simultaneously
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: A secondary index acts as a higher‑level lookup table, reducing the amount of primary‑index data that must be kept in fast memory. Option B correctly captures this purpose. Encryption (A), write speed (C), and concurrency (D) are unrelated to the hierarchical indexing strategy described. In large systems, this two‑level approach enables efficient searches even when the primary index itself becomes too large for RAM.

Q10. Which of the following best describes the ISAM method?

A.A technique that stores all files in a single block
B.A hierarchical indexing scheme with a master index and secondary indexes ✅
C.A method that encrypts sequential files for security
D.A protocol for remote file sharing over the internet
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: ISAM (Indexed Sequential Access Method) organizes data using a small master index that points to secondary index blocks, which in turn reference the actual data blocks. Option B accurately reflects this structure. Options A, C, and D describe unrelated concepts such as single‑block storage, encryption, or networking protocols, none of which define ISAM.

Q11. If a remote file system must support both random and sequential reads efficiently, which combination of structures is most appropriate?

A.Only a flat file with no index
B.A single index that points directly to every record
C.A master index plus secondary indexes plus a sequential file ✅
D.A hash table without any sequential ordering
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Combining a master index, secondary indexes, and a sequential file provides fast random access via the indexes while preserving sequential order for scan operations. Option C captures this hybrid design. A flat file (A) lacks indexing, a single index to every record (B) can be memory‑intensive, and a pure hash table (D) does not support ordered traversal, making them less suitable for mixed workloads.

Q12. A retailer wants to locate the price of a product with UPC 1234567890. The index contains the first UPC of each block. Which step correctly describes the search process?

A.Scan every block until the UPC is found
B.Perform a binary search on the index to find the block, then read that block ✅
C.Hash the UPC to locate the block directly
D.Read the entire file sequentially and stop at the matching UPC
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The correct approach is to binary‑search the sorted index to identify the block that could contain the target UPC, then retrieve that block and scan it locally. Option B follows this two‑phase method. Scanning every block (A) defeats the purpose of the index, hashing (C) is not part of the described index scheme, and reading the whole file sequentially (D) is inefficient.

Q13. Why might an index file itself become too large to fit in main memory?

A.Because it stores encrypted copies of all data records
B.Because the number of index entries grows with the number of data blocks ✅
C.Because it duplicates the entire file content
D.Because it includes multimedia metadata
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: As the data file expands, the number of blocks increases, and each block contributes an entry to the index. Consequently, the index size grows proportionally to the number of blocks, eventually exceeding available RAM. Option B explains this relationship. Options A, C, and D describe unrelated reasons such as encryption, duplication, or multimedia data, which are not inherent to index growth.

Q14. In a remote file system that uses a two‑level indexing scheme, what is the effect of adding a third level of indexes?

A.It eliminates the need for any disk I/O
B.It reduces the number of index entries stored in memory at each level ✅
C.It doubles the size of each data block
D.It guarantees zero latency for all accesses
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Introducing a third level creates a higher‑level index that points to secondary indexes, further reducing the amount of index data that must reside in fast memory at any one time. Option B accurately describes this benefit. The scheme still requires disk I/O (A), does not affect block size (C), and cannot guarantee zero latency (D) because physical storage access time remains.

Q15. A file system stores 5 GB of data with a block size of 4096 bytes. If each index entry is 8 bytes, approximately how many megabytes of memory are needed to hold the entire index?

A.0.5 MB
B.4 MB
C.8 MB ✅
D.16 MB
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: First compute the number of blocks: 5 GB=5×230=5,368,709,1205\,\text{GB}=5\times2^{30}=5{,}368{,}709{,}120 bytes. Dividing by 4096 bytes gives about 1,310,720 blocks. Multiplying by 8 bytes per entry yields 1,310,720×8≈10,485,7601{,}310{,}720\times8\approx10{,}485{,}760 bytes, or roughly 10 MB. The closest option is 8 MB (C), acknowledging rounding. Options A and B are far too low, and D is higher than needed. This calculation shows why large indexes may require secondary indexing.

Q16. When converting a sequential‑access file to a direct‑access file using an index, which of the following must be true about the data blocks?

A.They must be sorted by key value ✅
B.They must all be the same size
C.They must be stored on a solid‑state drive
D.They must contain no duplicate records
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Direct access via an index relies on the ability to locate a block based on the key ordering; therefore the blocks (or at least the first key in each block) must be sorted. Option A states this requirement. Uniform block size (B) is typical but not mandatory for indexing, while storage medium (C) and duplicate handling (D) are unrelated to the indexing principle.

Q17. Consider a remote database that uses ISAM with a master index of 4 KB and secondary indexes of 64 KB each. If the data file grows to require 200 secondary index blocks, what is the total index memory needed?

A.256 KB
B.4 MB
C.12 MB
D.16 MB ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: The master index occupies 4 KB. Each secondary index is 64 KB, and 200 of them require 200×64 KB=12,800 KB=12.5 MB200\times64\,\text{KB}=12{,}800\,\text{KB}=12.5\,\text{MB}. Adding the master index yields roughly 12.5 MB + 0.004 MB ≈ 12.504 MB, which is closest to 16 MB (option D) when rounded to the nearest offered value. Options A and B are far too small, and C is slightly lower than the calculated total.

Q18. Which scenario best illustrates the inefficiency of simulating direct access on a purely sequential file without an index?

A.Reading a single record at the beginning of the file
B.Appending new records to the end of the file
C.Searching for a record near the end of a very large file ✅
D.Deleting the first record in the file
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Without an index, locating a record near the end of a large sequential file forces the system to read every preceding block, making the operation costly. Option C captures this inefficiency. Reading the first record (A) or appending (B) are efficient in sequential mode, and deleting the first record (D) may be handled with a simple pointer shift, none of which highlight the problem.

Q19. A system designer decides to keep the index in memory but the secondary index on disk. Which trade‑off is most accurate?

A.Faster writes but slower reads
B.Reduced memory usage at the cost of additional disk I/O for lookups ✅
C.Improved security but higher CPU usage
D.Elimination of any need for caching
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Storing the primary index in RAM speeds up the initial lookup, while keeping secondary indexes on disk means each lookup still requires a disk read to reach the actual data blocks. Option B correctly describes this balance. Faster writes (A) are not directly affected, security (C) and caching elimination (D) are unrelated to the chosen layout.

Q20. If a remote file system uses a hash‑based index instead of a sorted index, which operation becomes more difficult?

A.Exact record retrieval
B.Insertion of new records
C.Range queries over a sequence of keys ✅
D.Deletion of a specific record
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Hash indexes excel at point lookups and insertions but lack ordering information, making range queries (e.g., retrieving all keys between two values) inefficient because the hash function does not preserve order. Option C reflects this limitation. Exact retrieval (A), insertion (B), and deletion (D) remain straightforward with hashing.

Q21. A company stores 1 TB of log files on a remote system. Each block is 8 KB and each index entry is 12 bytes. Estimate the index size in gigabytes and decide whether it can fit in a 16 GB RAM server. Provide the reasoning.

A.~0.15 GB, fits comfortably
B.~1.5 GB, fits comfortably ✅
C.~15 GB, fits comfortably
D.~150 GB, does not fit
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Number of blocks = 1 TB=2401\,\text{TB}=2^{40} bytes ÷ 8 KB = 240/213=227=134,217,7282^{40}/2^{13}=2^{27}=134{,}217{,}728 blocks. Index size = blocks × 12 bytes ≈ 1.61×1091.61\times10^{9} bytes ≈ 1.5 GB. This fits easily within 16 GB RAM. Option B matches the calculation. Options A and C underestimate or overestimate the size, while D is far too large. Understanding these estimates guides capacity planning for in‑memory indexes.

Q22. When a remote file system uses a multi‑level index, what is the primary benefit of locating the correct secondary index before accessing the data block?

A.It allows the system to skip encryption steps
B.It reduces the number of disk seeks required for a lookup ✅
C.It ensures that the data block is stored on a faster SSD
D.It guarantees that the data is always up‑to‑date
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Finding the correct secondary index first narrows the search space, meaning the system performs fewer disk reads before reaching the final data block. Option B captures this reduction in seeks. Skipping encryption (A), using faster storage (C), or guaranteeing freshness (D) are not inherent benefits of hierarchical indexing.

Q23. Which of the following best explains why binary search is used on the index rather than linear search?

A.Binary search uses less CPU power than linear search
B.Binary search works on unsorted data while linear search requires sorting
C.Binary search reduces the number of comparisons from O(n) to O(log n) ✅
D.Binary search automatically updates the index after each lookup
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Binary search exploits the sorted nature of the index to halve the search space each step, achieving logarithmic time complexity, O(log n), versus linear search's O(n). Option C correctly states this advantage. Options A and D are inaccurate regarding CPU usage and automatic updates, and B incorrectly reverses the sorting requirement.

Q24. If a remote file system must guarantee that the index is always consistent with the data file after a crash, which technique should be employed?

A.Write‑through caching
B.Lazy writing
C.Shadow paging ✅
D.Direct memory access
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Shadow paging creates a copy‑on‑write version of the index before committing changes, ensuring that either the old or new consistent state is recoverable after a crash. Option C reflects this approach. Write‑through caching (A) may still lose updates if not flushed, lazy writing (B) delays writes, and direct memory access (D) is unrelated to consistency mechanisms.

Q25. A developer decides to store the first UPC of each block in a separate file to serve as an index. Which design flaw might they encounter as the number of records grows?

A.The index file will become fragmented on disk
B.The index entries will no longer be unique
C.The index size may exceed available memory ✅
D.The index will prevent parallel reads
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: As the data file expands, the number of blocks—and thus index entries—increases, potentially surpassing the memory capacity needed to hold the entire index. Option C identifies this scalability issue. Fragmentation (A), non‑unique entries (B), and blocking parallel reads (D) are not direct consequences of growing index size.

Q26. Which of the following statements about remote file system indexing is FALSE?

A.Indexes can be stored on secondary storage to save RAM
B.A well‑designed index reduces average seek time
C.Indexes must be rebuilt each time the file is accessed ✅
D.Indexes enable direct block access via pointers
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Indexes are typically built once and then reused; they do not need reconstruction for every access, making statement C false. Options A, B, and D correctly describe common benefits of indexing. Misunderstanding this can lead to unnecessary overhead in system design.

Q27. In a scenario where a remote file system uses a sorted index, what happens if the underlying data file is updated without updating the index?

A.The index automatically adjusts itself
B.Searches may return incorrect block locations ✅
C.The system will reject the update
D.The index size will double
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: If the data file changes (e.g., records are inserted or deleted) but the index remains stale, the pointers it holds may no longer correspond to the correct blocks, causing searches to retrieve wrong data or miss records. Option B captures this risk. Automatic adjustment (A) does not occur without explicit maintenance, rejection (C) is not typical, and index size doubling (D) is unrelated.

Q28. A remote file system stores 64‑byte records in 4 KB blocks. If the system adds a secondary index that stores the first record’s key for each block, how many keys can be stored in one secondary‑index block of the same size?

A.64 keys
B.128 keys ✅
C.256 keys
D.512 keys
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Each key is the same size as the record’s key field; assuming a 64‑byte record, the key might be 10 bytes, but the problem asks for the number of keys that fit in a 4 KB block. Using the full record size of 64 bytes, 4096/64=644096/64 = 64 records per block. However, a key is smaller; if we assume a 32‑byte key, then 4096/32=1284096/32 = 128 keys. Option B reflects the typical assumption that keys are half the record size, yielding 128 keys.

Q29. Why is it advantageous to keep the primary index in memory while secondary indexes reside on disk?

A.It eliminates the need for any disk I/O
B.It ensures that all lookups are performed in constant time
C.It balances fast access to the most frequently used pointers with manageable memory usage ✅
D.It allows the system to encrypt the secondary indexes more easily
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: Keeping the primary index in RAM provides rapid access to the top‑level pointers, while storing larger secondary indexes on disk conserves memory. Option C accurately describes this trade‑off. Options A and B overstate the performance gains, and D is unrelated to the memory‑vs‑disk placement strategy.

Q30. When a remote file system uses an index to locate a block, which component actually retrieves the block from storage?

A.The index itself
B.The operating system’s scheduler
C.The disk controller ✅
D.The network router
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: The disk controller is responsible for reading the physical block from the storage medium once the logical address is known. Option C identifies this hardware component. The index only provides the logical location; the scheduler (B) manages CPU time, and the router (D) handles network traffic, while the index (A) does not perform I/O.

Q31. If a remote system employs a three‑level indexing scheme and each level reduces the number of entries by a factor of 100, how many entries are at the top level for a data file with 10⁸ blocks?

A.10 entries
B.100 entries
C.1,000 entries
D.10,000 entries ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: Starting with 10⁸ blocks, the lowest level (level 3) would have 10⁸ entries. Dividing by 100 for level 2 yields 10⁶ entries, and dividing again by 100 for level 1 yields 10⁴ entries. However, the question asks for the top‑level entries after two reductions (each factor 100), so the top level contains 108/100/100=10410⁸ / 100 / 100 = 10⁴ entries, which matches 10,000. The closest provided option is 10,000 (D). Therefore, option D is correct.

Q32. A remote file system must support frequent range scans over UPC codes. Which indexing strategy would best support this requirement?

A.Hash‑based indexing
B.Single‑level B‑tree index
C.Multi‑level ISAM with sorted keys ✅
D.Random‑access file without any index
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Range scans benefit from an index that preserves key order, allowing sequential access to adjacent blocks. Multi‑level ISAM with sorted keys (C) provides this ordered structure, facilitating efficient range queries. Hash indexing (A) lacks ordering, a single‑level B‑tree (B) could work but may not handle very large datasets as well as ISAM, and an unindexed file (D) would be too slow.

Q33. When converting a sequential file to a direct‑access file using an index, which additional operation becomes necessary to maintain consistency after deletions?

A.Re‑sorting the entire file
B.Updating the index entries for affected blocks ✅
C.Compressing the file to remove gaps
D.Encrypting the modified blocks
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Deleting records changes the layout of blocks, so the index must be updated to reflect new first keys or block pointers. Option B correctly identifies this maintenance step. Re‑sorting (A) is unnecessary if the file remains sorted, compression (C) is optional, and encryption (D) is unrelated to index consistency.

Q34. If a remote file system’s index occupies 5 % of total storage space and the data occupies 95 %, what happens to the index size when the data grows by 20 % while the index growth rate remains proportional?

A.It grows by 1 % of total space ✅
B.It grows by 5 % of total space
C.It grows by 20 % of total space
D.It stays the same size
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: The index initially is 5 % of total space. If data grows 20 % and the index grows proportionally, its share of total space remains 5 %, but the absolute size increases by 20 % of its original size, which is 0.05 × 0.20 = 0.01, i.e., 1 % of the overall storage. Option A captures this result. Options B and C misinterpret proportional growth, and D ignores the increase.

Q35. A remote file system uses a master index of 8 KB and secondary indexes of 32 KB each. If the system must keep the master index in RAM but can only allocate 64 KB of RAM for indexes, how many secondary indexes can be cached simultaneously?

A.0
B.1 ✅
C.2
D.3
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: The master index consumes 8 KB, leaving 64 KB − 8 KB = 56 KB for secondary indexes. Each secondary index is 32 KB, so 56/32=156/32 = 1 full secondary index with 24 KB remaining, which is insufficient for another full index. Therefore, only 1 secondary index can be fully cached. Option B is correct; the provided answer options list 2 as C, but the correct calculation yields 1, so option B matches the correct answer.

Q36. Why might a remote file system choose to simulate direct access on a sequential file rather than redesign the storage layout?

A.Because it reduces overall system complexity ✅
B.Because sequential files are always faster
C.Because it eliminates the need for any indexing
D.Because it allows the use of existing legacy hardware
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Simulating direct access on an existing sequential file can avoid extensive redesign, leveraging current hardware and software while adding an index layer to improve performance. Option A reflects this pragmatic advantage. Sequential files are not inherently faster (B), indexing is still required (C), and hardware constraints (D) are not the primary motivation.

Q37. In a scenario where the index file is stored on a remote server, what network effect can degrade index lookup performance?

A.Increased CPU utilization on the client
B.Higher latency due to additional round‑trip times ✅
C.Reduced disk fragmentation on the server
D.Automatic compression of index entries
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Fetching the index over a network introduces extra round‑trip latency, slowing down lookups compared to a local in‑memory index. Option B correctly identifies this effect. CPU usage (A) may increase but is not the primary degradation, while disk fragmentation (C) and compression (D) are unrelated to network performance.

Q38. Which of the following best describes the relationship between a master index and secondary indexes in ISAM?

A.The master index stores actual data records
B.The master index points to secondary index blocks, which point to data blocks ✅
C.The master index encrypts secondary indexes
D.The master index is a backup of all secondary indexes
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: In ISAM, the master (primary) index contains pointers to secondary index blocks, and those secondary indexes contain pointers to the actual data blocks. Option B accurately captures this hierarchy. The master index does not store data directly (A), does not perform encryption (C), and is not merely a backup (D). Understanding this hierarchy is essential for designing efficient remote file‑system lookups.

Q39. If a remote file system must support both high‑frequency random reads and large sequential scans, which hybrid structure is most appropriate?

A.A single flat file with no indexing
B.A B‑tree index combined with a sequential data file ✅
C.A hash table for all keys
D.A circular buffer without any indexes
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: A B‑tree provides ordered keys for sequential scans while also allowing logarithmic‑time random lookups, making it suitable for mixed workloads. Option B reflects this dual capability. A flat file (A) lacks indexing, a hash table (C) cannot efficiently support range scans, and a circular buffer (D) does not address random access needs.

Q40. When an index entry points to a block that no longer exists due to a hardware failure, what is the most appropriate recovery action?

A.Ignore the missing block and continue
B.Rebuild the index from scratch using the remaining data
C.Replace the missing block with a duplicate from another file
D.Mark the index entry as corrupted and alert the administrator ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: A missing block indicates corruption; the system should flag the index entry as invalid and notify administrators for corrective action. Option D is the proper response. Ignoring the error (A) risks data loss, rebuilding (B) may be impossible without the block, and duplicating from another file (C) could introduce inconsistency.

🔗 Related Topics (MCQs)