1. Home
  2. Explore
  3. Computer Science
  4. File System Implementation

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

File System Implementation

  • 55Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: File System Layers

What is the primary purpose of a file system?

55 questions

  1. 1

    What is the primary purpose of a file system?

    1. A

      To replace device drivers with application programs

    2. B

      To organize stored data and provide users with accessible files

    3. C

      To increase the physical rotation speed of a disk

    4. D

      To eliminate the need for memory during file access

    Correct answer
    B

    To organize stored data and provide users with accessible files

    Explanation

    A file system organizes data on a storage device and provides users and applications with a logical way to access that data.

  2. 2

    Why are storage blocks commonly sized as powers of two?

    1. A

      Powers of two prevent files from ever becoming fragmented

    2. B

      Powers of two ensure that every file occupies exactly one physical sector

    3. C

      Powers of two allow users to access hardware without device drivers

    4. D

      Powers of two allow sizes used by different layers and devices to fit together efficiently

    Correct answer
    D

    Powers of two allow sizes used by different layers and devices to fit together efficiently

    Explanation

    Storage sizes are often powers of two so that sectors, blocks, and other units can fit into one another without awkward mismatches.

  3. 3

    What is the relationship between sectors and logical blocks?

    1. A

      A logical block may be composed of multiple physical sectors

    2. B

      A physical sector contains the entire file system structure

    3. C

      A logical block exists only in main memory and never on storage

    4. D

      A physical sector must always contain multiple logical blocks

    Correct answer
    A

    A logical block may be composed of multiple physical sectors

    Explanation

    A logical block can consist of several sectors. Therefore, retrieving one logical block may require multiple device-access commands.

  4. 4

    What information does a file control block primarily store?

    1. A

      Only the physical temperature of the storage device

    2. B

      Only the name of the operating system currently running

    3. C

      Instructions for compiling application source code

    4. D

      Metadata describing a file and information needed to locate it

    Correct answer
    D

    Metadata describing a file and information needed to locate it

    Explanation

    A file control block stores information about a file, such as its name, size, creation date, and location-related details.

  5. 5

    What is the role of a device driver in file access?

    1. A

      It converts every file into a contiguous sequence of memory addresses

    2. B

      It decides which users are allowed to create directory names

    3. C

      It permanently stores all file metadata in the processor

    4. D

      It performs the hardware-specific operations needed to access the storage device

    Correct answer
    D

    It performs the hardware-specific operations needed to access the storage device

    Explanation

    Device drivers carry out the physical, device-specific operations, such as accessing a particular cylinder, track, and sector.

  6. 6

    Why does a general-purpose operating system use multiple layers for storage access?

    1. A

      The layers make physical device access unnecessary

    2. B

      The layers hide device differences while presenting a consistent interface to users and applications

    3. C

      The layers prevent operating systems from supporting more than one file system

    4. D

      The layers ensure that every storage device uses identical hardware

    Correct answer
    B

    The layers hide device differences while presenting a consistent interface to users and applications

    Explanation

    Layering allows users and applications to access files in a consistent way even when devices have different hardware and device drivers.

  7. 7

    What is a major benefit of adding a new device, such as a USB drive, to a layered file-system design?

    1. A

      The entire operating system must use a different directory structure

    2. B

      All existing files must be copied to the new device

    3. C

      Every application must be rewritten to understand the new hardware

    4. D

      Only the device-specific driver needs to handle the new hardware differences

    Correct answer
    D

    Only the device-specific driver needs to handle the new hardware differences

    Explanation

    The device driver handles the USB device's hardware-specific behavior, while higher layers can continue to operate in the same general way.

  8. 8

    Why does a storage controller commonly include a buffer?

    1. A

      It converts all logical file names into executable programs

    2. B

      It allows the disk to store files without using any physical sectors

    3. C

      It temporarily holds data so the device and computer do not need to be synchronized exactly

    4. D

      It permanently replaces the storage device's file allocation structure

    Correct answer
    C

    It temporarily holds data so the device and computer do not need to be synchronized exactly

    Explanation

    A buffer holds data read from the device until the computer is ready to receive it, avoiding the need to halt the entire system while waiting for disk operations.

  9. 9

    Why must file-system structures such as directory information and file control blocks be stored on the storage device?

    1. A

      They are stored on the device solely to increase processor speed

    2. B

      They are stored on the device because memory cannot hold any metadata

    3. C

      They must be available only while the computer is running

    4. D

      They must survive power-off so the system can reconstruct its organization later

    Correct answer
    D

    They must survive power-off so the system can reconstruct its organization later

    Explanation

    Persistent storage is required because directory structures and file control blocks must still exist after the computer is turned off.

  10. 10

    What is the purpose of a boot control block?

    1. A

      It contains information that helps start an operating system from a storage device

    2. B

      It stores every free block as a separate processor register

    3. C

      It determines the color label assigned to each file

    4. D

      It records the order in which users opened files

    Correct answer
    A

    It contains information that helps start an operating system from a storage device

    Explanation

    A boot control block contains information needed to start an operating system from the relevant storage device.

  11. 11

    Which information is typically needed to describe a storage volume?

    1. A

      The keyboard layout and screen resolution of every user

    2. B

      The source code of every application stored on it

    3. C

      Its block count, boundaries, and amount of used and free space

    4. D

      The rotation speed of every processor in the system

    Correct answer
    C

    Its block count, boundaries, and amount of used and free space

    Explanation

    A volume needs information about its size, beginning and end, and which space is used or free.

  12. 12

    Why is a directory structure needed instead of treating all files as one undifferentiated pool?

    1. A

      It guarantees that every file occupies contiguous blocks

    2. B

      It prevents files from requiring metadata

    3. C

      It organizes files so they can be located and managed more easily

    4. D

      It allows users to bypass the operating system

    Correct answer
    C

    It organizes files so they can be located and managed more easily

    Explanation

    Directories provide structure for organizing files and help the system locate the data associated with a named file.

  13. 13

    Why are directory structures and file control blocks often copied into memory?

    1. A

      Keeping them in memory ensures that files remain permanently contiguous

    2. B

      Keeping them in memory avoids repeatedly reading the disk to locate files

    3. C

      Keeping them in memory changes physical sectors into logical files

    4. D

      Keeping them in memory eliminates the need to save metadata on disk

    Correct answer
    B

    Keeping them in memory avoids repeatedly reading the disk to locate files

    Explanation

    When directory and file metadata are in memory, the system can locate file data without first performing another disk access.

  14. 14

    What problem would occur if a system had to read the directory from disk every time it accessed a file?

    1. A

      File access could require an additional disk operation before the data operation

    2. B

      Files would automatically become larger than their allocated blocks

    3. C

      The storage device would no longer need a file system

    4. D

      The operating system would lose all knowledge of file names

    Correct answer
    A

    File access could require an additional disk operation before the data operation

    Explanation

    The system would first access the directory to find the file's location and then access the file data, effectively adding another storage operation.

  15. 15

    What does mounting mean in a file-system context?

    1. A

      Converting a physical disk into a single unformatted sector

    2. B

      Connecting a partition or volume to a location in the system's file-system namespace

    3. C

      Copying every file from a device into processor registers

    4. D

      Deleting the directory structure before removing a device

    Correct answer
    B

    Connecting a partition or volume to a location in the system's file-system namespace

    Explanation

    Mounting connects a partition or storage volume to a location where the operating system can access it through its file-system structure.

  16. 16

    Why can removing a storage device without notifying the operating system cause data loss?

    1. A

      Modified metadata or data may still be in memory and not yet written to the device

    2. B

      The physical sectors will immediately become permanently unreadable

    3. C

      The operating system will erase every file that was previously read

    4. D

      The device will automatically change all file names when disconnected

    Correct answer
    A

    Modified metadata or data may still be in memory and not yet written to the device

    Explanation

    Changes to data, directories, file control blocks, or pointers may remain in memory. Removing the device before writing them back can leave the stored structures inconsistent.

  17. 17

    What is the purpose of a file-system consistency check during system startup?

    1. A

      It verifies that directory entries, pointers, and stored data structures agree with one another

    2. B

      It compresses every file before the operating system loads

    3. C

      It changes all files into one contiguous allocation

    4. D

      It determines which applications the user prefers

    Correct answer
    A

    It verifies that directory entries, pointers, and stored data structures agree with one another

    Explanation

    A consistency check verifies that files and directories point to valid, appropriate locations and that the file system is internally coherent.

  18. 18

    What is a root partition generally used for?

    1. A

      It is used only for removable USB devices

    2. B

      It contains only temporary buffers for device controllers

    3. C

      It is the main partition that commonly contains the operating system

    4. D

      It stores exclusively deleted files awaiting recovery

    Correct answer
    C

    It is the main partition that commonly contains the operating system

    Explanation

    Most systems have a root partition that serves as the main partition and commonly stores the operating system.

  19. 19

    How does a linear-list directory implementation locate a file?

    1. A

      It searches only the first and last directory entries

    2. B

      It examines directory entries sequentially until it finds the desired name

    3. C

      It calculates a unique location directly from the file's contents

    4. D

      It follows pointers stored only in the file's final data block

    Correct answer
    B

    It examines directory entries sequentially until it finds the desired name

    Explanation

    A linear-list directory stores entries in sequence, so the system searches through them one by one.

  20. 20

    Why does searching a linear directory list take, on average, about half the list length?

    1. A

      Each directory entry is searched twice to verify its contents

    2. B

      The list is divided into two equal directories before every search

    3. C

      The system always examines exactly half of the entries before stopping

    4. D

      A randomly located entry is expected to appear around the middle of the list

    Correct answer
    D

    A randomly located entry is expected to appear around the middle of the list

    Explanation

    If the target is equally likely to occur anywhere in the list, the average search examines approximately half of the entries.

  21. 21

    What is the main advantage of a linear-list directory?

    1. A

      It automatically prevents directory fragmentation

    2. B

      It eliminates the need to store file names

    3. C

      It is simple to implement even though searching can be slow

    4. D

      It guarantees constant-time lookup for every file

    Correct answer
    C

    It is simple to implement even though searching can be slow

    Explanation

    Linear lists are straightforward to implement, but their sequential searches become inefficient as the directory grows.

  22. 22

    How does a hash table improve directory lookup?

    1. A

      It uses a function to map a file name or key to a likely storage location

    2. B

      It stores all directory entries in alphabetical order and scans them sequentially

    3. C

      It places every file in physically adjacent blocks

    4. D

      It copies the entire directory into every data block

    Correct answer
    A

    It uses a function to map a file name or key to a likely storage location

    Explanation

    A hash function maps a key, such as a file name, to a location, allowing the system to locate an entry more directly than with a linear search.

  23. 23

    What property is expected from a hash function used for directory lookup?

    1. A

      The hash value must depend on the current disk head position

    2. B

      Different inputs must always produce the same hash value

    3. C

      The same input should consistently produce the same hash value

    4. D

      The function must return the complete file contents

    Correct answer
    C

    The same input should consistently produce the same hash value

    Explanation

    A hash function should consistently map the same input to the same value, allowing the system to locate the same directory entry reliably.

  24. 24

    What is a hash collision?

    1. A

      A situation in which a file occupies two contiguous extents

    2. B

      A situation in which different inputs produce the same hash value

    3. C

      A situation in which a disk buffer contains an entire file

    4. D

      A situation in which a directory contains no free entries

    Correct answer
    B

    A situation in which different inputs produce the same hash value

    Explanation

    A collision occurs when two different inputs map to the same hash value, which requires additional handling by the hash-table implementation.

  25. 25

    What is the defining feature of contiguous file allocation?

    1. A

      A file's blocks are selected randomly without any location information

    2. B

      A file occupies consecutive blocks on the storage device

    3. C

      All files share one block regardless of their sizes

    4. D

      Each file block contains a pointer to a different file

    Correct answer
    B

    A file occupies consecutive blocks on the storage device

    Explanation

    With contiguous allocation, the blocks belonging to a file are located one after another on the storage device.

  26. 26

    Why does contiguous allocation usually provide good sequential performance?

    1. A

      The system can read neighboring file blocks in sequence with little head movement

    2. B

      The system never needs to know the file's starting location

    3. C

      The file is automatically copied into main memory before use

    4. D

      The allocation method eliminates all metadata accesses

    Correct answer
    A

    The system can read neighboring file blocks in sequence with little head movement

    Explanation

    Because the blocks are adjacent, sequential access requires relatively little movement between blocks, which improves performance.

  27. 27

    What is a major disadvantage of contiguous allocation for files that change size?

    1. A

      A fixed-size file always requires an index block for every sector

    2. B

      A growing file may need to be moved if adjacent blocks are already occupied

    3. C

      A file cannot be deleted without formatting the entire device

    4. D

      A growing file can never be read sequentially

    Correct answer
    B

    A growing file may need to be moved if adjacent blocks are already occupied

    Explanation

    If a file grows into space occupied by another file, it may need to be relocated to a sufficiently large free region.

  28. 28

    How can contiguous allocation contribute to external fragmentation?

    1. A

      Every file automatically creates an additional copy of its metadata

    2. B

      The disk head is forced to visit every block during every access

    3. C

      Free space can become divided into holes that are individually too small for a new file

    4. D

      The system stores all free blocks inside the file contents

    Correct answer
    C

    Free space can become divided into holes that are individually too small for a new file

    Explanation

    Contiguous allocation requires large consecutive regions. Over time, free space may be split into smaller holes that cannot accommodate larger files.

  29. 29

    What is compaction in the context of contiguous allocation?

    1. A

      Rearranging allocated files to combine separated free regions into a larger contiguous region

    2. B

      Copying the free-space map into the boot control block

    3. C

      Converting a directory into a hash table

    4. D

      Adding a pointer to the end of every file block

    Correct answer
    A

    Rearranging allocated files to combine separated free regions into a larger contiguous region

    Explanation

    Compaction moves files so that scattered free spaces are combined into larger contiguous areas.

  30. 30

    What is an extent?

    1. A

      A single pointer that identifies the root partition

    2. B

      A bitmap bit representing an unused sector

    3. C

      A directory entry containing only a file name

    4. D

      A contiguous group of blocks allocated to a file as one unit

    Correct answer
    D

    A contiguous group of blocks allocated to a file as one unit

    Explanation

    An extent is a contiguous set of blocks allocated together. A file can receive additional extents as it grows.

  31. 31

    Why can extent-based allocation waste space?

    1. A

      The system duplicates every extent in the directory structure

    2. B

      The system cannot use any block outside the first extent

    3. C

      The system must reserve every block on the disk for each file

    4. D

      The system may reserve an extent larger than the file currently needs

    Correct answer
    D

    The system may reserve an extent larger than the file currently needs

    Explanation

    If an extent is allocated in advance and the file uses only part of it, the unused reserved blocks represent wasted space.

  32. 32

    What is the main advantage of allocating file blocks individually and linking them?

    1. A

      The method ensures that every disk access reads the entire file

    2. B

      Every file is guaranteed to remain physically contiguous

    3. C

      A file can grow by receiving additional blocks without requiring one large contiguous region

    4. D

      The method removes the need to track free blocks

    Correct answer
    C

    A file can grow by receiving additional blocks without requiring one large contiguous region

    Explanation

    Linked allocation allows a file to use free blocks wherever they are available, so it can grow incrementally.

  33. 33

    What is the main performance disadvantage of linked allocation?

    1. A

      The blocks of one file may be scattered, causing frequent disk-head movement

    2. B

      The first block of every file must be stored in the root partition

    3. C

      The file system must reserve unused blocks after every allocated block

    4. D

      The system cannot determine the file's length

    Correct answer
    A

    The blocks of one file may be scattered, causing frequent disk-head movement

    Explanation

    Linked blocks may be physically far apart, requiring the storage device to move between locations during access.

  34. 34

    Why can a damaged pointer be especially serious in a linked allocation system?

    1. A

      The damaged pointer affects only unrelated directory names

    2. B

      The system can always reconstruct the next block from the file size alone

    3. C

      The system may lose the location of all subsequent blocks in the file

    4. D

      The system will automatically convert the file into contiguous allocation

    Correct answer
    C

    The system may lose the location of all subsequent blocks in the file

    Explanation

    Each block identifies the next block, so a broken link can prevent the system from following the chain to later parts of the file.

  35. 35

    How does a file allocation table improve the management of linked allocation?

    1. A

      It replaces the need for a starting block

    2. B

      It stores only the file's creation date and user permissions

    3. C

      It guarantees that all blocks in the chain are physically adjacent

    4. D

      It records the chain of blocks associated with a file using a table of block links

    Correct answer
    D

    It records the chain of blocks associated with a file using a table of block links

    Explanation

    A file allocation table records which block follows each block, allowing the system to track a file's linked allocation chain.

  36. 36

    What limitation does a basic linked allocation scheme have when it stores only a starting block?

    1. A

      It prevents the system from deleting files

    2. B

      It may not detect that the complete file is missing or incomplete

    3. C

      It forces every file to use contiguous blocks

    4. D

      It cannot store files that occupy more than one block

    Correct answer
    B

    It may not detect that the complete file is missing or incomplete

    Explanation

    If only the starting block is recorded, the system may follow a chain that ends prematurely without knowing whether all expected file blocks are present.

  37. 37

    What is the purpose of storing an end-block indicator or expected end location for a file?

    1. A

      It makes every block in the file contiguous

    2. B

      It records how much processor memory is available

    3. C

      It identifies the next file in the directory alphabetically

    4. D

      It provides a way to verify that the block chain reaches the expected end of the file

    Correct answer
    D

    It provides a way to verify that the block chain reaches the expected end of the file

    Explanation

    An expected end marker or end location allows the system to compare the actual chain with the file's recorded endpoint.

  38. 38

    How does indexed allocation reduce the number of disk accesses needed for a linked file?

    1. A

      An index block lists the locations of many file blocks so they can be requested more directly

    2. B

      The index block copies all file data into one contiguous region

    3. C

      The index block forces the disk head to read blocks one at a time

    4. D

      The index block eliminates the need to store file blocks on disk

    Correct answer
    A

    An index block lists the locations of many file blocks so they can be requested more directly

    Explanation

    An index block contains references to multiple data blocks, allowing the system to locate and request them without following every pointer through the data blocks.

  39. 39

    What is a trade-off of using an index block?

    1. A

      It makes all file blocks physically contiguous

    2. B

      It adds metadata overhead and may use space that does not contain file data

    3. C

      It removes the need for a directory structure

    4. D

      It prevents files from growing beyond one data block

    Correct answer
    B

    It adds metadata overhead and may use space that does not contain file data

    Explanation

    Index blocks require storage space and an additional structure, although this overhead may be worthwhile because access can be faster.

  40. 40

    What is single indirect allocation?

    1. A

      A pointer refers to an index block that refers to another index block

    2. B

      A pointer refers to an index block, which refers directly to data blocks

    3. C

      A pointer refers directly to data blocks without using an index

    4. D

      A file is stored entirely in one contiguous extent

    Correct answer
    B

    A pointer refers to an index block, which refers directly to data blocks

    Explanation

    In single indirect allocation, the file structure points to one index block, whose entries point to the file's data blocks.

  41. 41

    What is double indirect allocation?

    1. A

      A file is stored in two equal-sized contiguous extents

    2. B

      Two directories contain identical copies of every file

    3. C

      A pointer refers to an index block whose entries refer to additional index blocks

    4. D

      A pointer refers directly to two adjacent data blocks

    Correct answer
    C

    A pointer refers to an index block whose entries refer to additional index blocks

    Explanation

    Double indirect allocation adds another indexing level: the first index points to other index blocks, which then point to data blocks.

  42. 42

    Why might a file system combine direct, single indirect, double indirect, and triple indirect references?

    1. A

      The combination guarantees that every file remains contiguous

    2. B

      Different levels provide efficient access for files of different sizes

    3. C

      The combination prevents all storage devices from using buffers

    4. D

      Different levels are required because every file has exactly three blocks

    Correct answer
    B

    Different levels provide efficient access for files of different sizes

    Explanation

    Direct references are efficient for small files, while additional indirect levels allow much larger files to be addressed.

  43. 43

    Why is an extra CPU instruction often preferable to an extra disk access?

    1. A

      CPU instructions eliminate the need for file allocation

    2. B

      Disk accesses never provide useful data to the operating system

    3. C

      CPU instructions permanently store data without using memory

    4. D

      CPU instructions are generally much faster than accessing secondary storage

    Correct answer
    D

    CPU instructions are generally much faster than accessing secondary storage

    Explanation

    Secondary-storage access is much slower than executing an additional processor instruction, so systems often trade computation for fewer disk operations.

  44. 44

    What does a bitmap-based free-space structure represent?

    1. A

      It uses one pointer per directory to indicate the root partition

    2. B

      It uses one complete file per bit to indicate directory membership

    3. C

      It uses one byte per processor instruction to indicate file size

    4. D

      It uses one bit per block to indicate whether that block is available

    Correct answer
    D

    It uses one bit per block to indicate whether that block is available

    Explanation

    A bitmap assigns one bit to each block. In the described convention, a value of 111 indicates a usable free block and 000 indicates a block that cannot be used.

  45. 45

    What is a disadvantage of a bitmap for a very large storage device?

    1. A

      A bitmap can identify only the first free block

    2. B

      A bitmap cannot represent blocks that are already allocated

    3. C

      The bitmap itself can require substantial memory or storage space

    4. D

      A bitmap requires every file to be stored contiguously

    Correct answer
    C

    The bitmap itself can require substantial memory or storage space

    Explanation

    Because the bitmap uses one bit for every block, a very large device can require a significant amount of space to store or process the bitmap.

  46. 46

    How does a linked free-space list track available blocks?

    1. A

      It stores a starting free block and links that block to other free blocks

    2. B

      It records only allocated blocks and ignores all unused space

    3. C

      It stores every free block as a complete copy of the directory

    4. D

      It places all free blocks into one permanently contiguous region

    Correct answer
    A

    It stores a starting free block and links that block to other free blocks

    Explanation

    A linked free-space list begins with a known free block and follows links to locate additional free blocks.

  47. 47

    What additional information can grouped free-space management provide beyond a simple free-block list?

    1. A

      It can guarantee that no future file will become fragmented

    2. B

      It can eliminate all storage-device access during allocation

    3. C

      It can identify the contents of every file without reading metadata

    4. D

      It can record the start and size of each contiguous group of free blocks

    Correct answer
    D

    It can record the start and size of each contiguous group of free blocks

    Explanation

    Grouping records both where a free run begins and how many contiguous blocks it contains, helping the system choose an appropriately sized region.

  48. 48

    Why are metaslabs useful on extremely large storage systems?

    1. A

      They replace all file control blocks with processor instructions

    2. B

      They make directory searches independent of file names

    3. C

      They force every file to occupy the same number of blocks

    4. D

      They divide free-space information into smaller regions instead of requiring one structure for the entire device

    Correct answer
    D

    They divide free-space information into smaller regions instead of requiring one structure for the entire device

    Explanation

    Dividing the storage space into multiple regions makes free-space management more practical than maintaining one enormous map for the entire system.

  49. 49

    How can read-ahead improve file-system performance?

    1. A

      It delays every read until the entire device is empty

    2. B

      It converts all indirect pointers into direct pointers

    3. C

      It retrieves nearby blocks before they are explicitly requested

    4. D

      It reduces the size of every storage block

    Correct answer
    C

    It retrieves nearby blocks before they are explicitly requested

    Explanation

    If sequential access is likely, the system can fetch neighboring blocks in advance so later requests can be satisfied from a buffer or cache.

  50. 50

    What is the purpose of a cache in storage access?

    1. A

      It keeps recently or predictively accessed data available for faster reuse

    2. B

      It ensures that every request must go directly to the physical disk

    3. C

      It stores only unused blocks and discards all recently used data

    4. D

      It makes device drivers unnecessary

    Correct answer
    A

    It keeps recently or predictively accessed data available for faster reuse

    Explanation

    A cache stores data that may be needed again, allowing future accesses to avoid slower device operations.

  51. 51

    What is write-behind or delayed writing intended to accomplish?

    1. A

      It writes every changed byte immediately before any other operation

    2. B

      It prevents modified data from ever being written to storage

    3. C

      It postpones writes so several changes can be grouped into more efficient operations

    4. D

      It converts all writes into directory searches

    Correct answer
    C

    It postpones writes so several changes can be grouped into more efficient operations

    Explanation

    Delayed writing can allow multiple writes to be combined and performed together, reducing overhead and improving efficiency.

  52. 52

    What is a major risk of delayed writing when a removable device is disconnected improperly?

    1. A

      Changes still in memory may not reach the device, causing lost data or inconsistent metadata

    2. B

      The device will automatically become a root partition

    3. C

      The file system will gain additional free blocks

    4. D

      All cached data will be converted into contiguous files

    Correct answer
    A

    Changes still in memory may not reach the device, causing lost data or inconsistent metadata

    Explanation

    If pending writes are not flushed before removal, file data, directory structures, or pointers may remain outdated on the device.

  53. 53

    Why might a file system prefetch several neighboring blocks after one block is requested?

    1. A

      Sequential access makes it likely that nearby blocks will be needed soon

    2. B

      The storage device cannot read a single block by itself

    3. C

      Neighboring blocks always belong to the same file

    4. D

      Prefetching prevents all forms of fragmentation

    Correct answer
    A

    Sequential access makes it likely that nearby blocks will be needed soon

    Explanation

    For sequential workloads, nearby blocks are likely to be requested next, so prefetching them can reduce future access delays.

  54. 54

    Which allocation strategy is most naturally suited to data that rarely changes size and benefits from fast sequential access?

    1. A

      Random linked allocation

    2. B

      Unindexed free-space chaining

    3. C

      A directory-only allocation scheme

    4. D

      Contiguous allocation

    Correct answer
    D

    Contiguous allocation

    Explanation

    Contiguous allocation provides fast sequential access and is particularly suitable for relatively unchanging data, such as operating-system files.

  55. 55

    Why might an operating system place relatively stable system files in a separate partition or file system?

    1. A

      Separate partitions eliminate the need for device drivers

    2. B

      A simple, fast allocation method can be used without needing to accommodate frequent file growth

    3. C

      Partitioning guarantees that all user data will remain contiguous

    4. D

      System files cannot be stored alongside user files under any file system

    Correct answer
    B

    A simple, fast allocation method can be used without needing to accommodate frequent file growth

    Explanation

    Stable system files are less likely to grow or shrink, so a fast contiguous scheme may work well for them, while user data can use a more flexible system.

Question 1 of 55
Question 1 of 55

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent