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

  • 94Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: File System Design

What does the logical-to-physical mapping in a file system accomplish?

94 questions

  1. 1

    What does the logical-to-physical mapping in a file system accomplish?

    1. A

      It converts every file into a separate physical storage device

    2. B

      It ensures that all files are stored in contiguous blocks

    3. C

      It connects a user-facing file name to the device location where its data is stored

    4. D

      It translates device instructions into application programs

    Correct answer
    C

    It connects a user-facing file name to the device location where its data is stored

    Explanation

    The file system maps a logical file, such as a named document, to its physical storage locations, such as disk blocks.

  2. 2

    How do device drivers support a consistent file-system interface?

    1. A

      They convert remote files into local memory without operating-system involvement

    2. B

      They hide device-specific details behind a common operating-system interface

    3. C

      They ensure every storage device uses the same physical file format

    4. D

      They require applications to use different commands for each storage device

    Correct answer
    B

    They hide device-specific details behind a common operating-system interface

    Explanation

    Device drivers handle device-specific input and output so that the operating system can present a consistent interface across devices.

  3. 3

    What is an important benefit of separating a file system into layers?

    1. A

      One layer can change without requiring applications to manage device details

    2. B

      The physical layout of files becomes identical across all devices

    3. C

      Every layer can access storage without communicating with other layers

    4. D

      The operating system no longer needs device drivers

    Correct answer
    A

    One layer can change without requiring applications to manage device details

    Explanation

    Layering separates concerns and hides hardware details, making it easier to change or add devices and file systems without changing applications.

  4. 4

    Why must file data generally be brought into memory before a program can work on it?

    1. A

      Memory is the only place where the operating system can store metadata

    2. B

      Storage devices can only store directory names, not file contents

    3. C

      Device drivers cannot read data unless the file is already modified

    4. D

      The program performs its work on data available in memory

    Correct answer
    D

    The program performs its work on data available in memory

    Explanation

    The file system transfers data from storage into memory, where programs can access and work on it.

  5. 5

    Which information is a file control block intended to help track?

    1. A

      A file's name, state, and other information needed to manage or retrieve it

    2. B

      The sequence of instructions currently running in the processor

    3. C

      Only the user account that created the storage device

    4. D

      The physical dimensions and rotation speed of every disk platter

    Correct answer
    A

    A file's name, state, and other information needed to manage or retrieve it

    Explanation

    A file control block stores information about a file, such as its name, state, and retrieval-related details.

  6. 6

    How can a layered file-system design affect performance?

    1. A

      It prevents the operating system from supporting multiple devices

    2. B

      It makes disk access faster by eliminating the need for device drivers

    3. C

      It can add overhead because requests pass through multiple layers

    4. D

      It removes all input/output time by keeping every file in memory

    Correct answer
    C

    It can add overhead because requests pass through multiple layers

    Explanation

    Each layer may need to pass a request to the next, adding overhead even though the layers reduce complexity and improve flexibility.

  7. 7

    What is the purpose of a mount point?

    1. A

      It gives the operating system a place to attach a file system to its directory structure

    2. B

      It reserves a contiguous section of memory for every open file

    3. C

      It records the rotational speed of the storage device

    4. D

      It converts a file's logical name into a processor instruction

    Correct answer
    A

    It gives the operating system a place to attach a file system to its directory structure

    Explanation

    A mount point lets the operating system make a file system available within its overall directory structure.

  8. 8

    Why might an operating system mount some storage devices at startup and others only when needed?

    1. A

      Internal devices require manual mounting because they have no device drivers

    2. B

      Removable devices cannot contain file systems until the computer restarts

    3. C

      All devices must be mounted at startup, but some are hidden from applications

    4. D

      Internal devices are often available at startup, while removable devices may be attached later

    Correct answer
    D

    Internal devices are often available at startup, while removable devices may be attached later

    Explanation

    Internal storage is commonly mounted during startup, whereas removable devices such as USB drives may be mounted on an ad hoc basis.

  9. 9

    What role does a boot control block play in starting a computer from a storage device?

    1. A

      It stores every user's file permissions for the entire operating system

    2. B

      It selects which disk scheduling algorithm applications must use

    3. C

      It contains information used as part of the process of booting from that device

    4. D

      It converts the device's free-space list into a directory structure

    Correct answer
    C

    It contains information used as part of the process of booting from that device

    Explanation

    The boot process locates a bootable device and uses its boot control information to continue starting the system.

  10. 10

    Why does a file system need to track directories as well as files?

    1. A

      Directories replace the need to store file contents on secondary storage

    2. B

      Directories determine the speed at which a disk platter rotates

    3. C

      Directories ensure that every file occupies exactly one disk block

    4. D

      Directories organize files and make them accessible through the system's logical layout

    Correct answer
    D

    Directories organize files and make them accessible through the system's logical layout

    Explanation

    The file system must manage the directory layout so that files can be organized and accessed through the logical file system.

  11. 11

    Why might a file control block contain more than basic file information?

    1. A

      File control blocks are responsible for storing the device's electrical signals

    2. B

      Additional information is needed only when the file is stored in memory

    3. C

      Every file control block must contain a full copy of the operating system

    4. D

      Some file systems may include indexes or links to related structures

    Correct answer
    D

    Some file systems may include indexes or links to related structures

    Explanation

    Depending on the file system, a file control block can include links to indexes, tables, or other associated information.

  12. 12

    Why does the operating system maintain file-system structures in memory?

    1. A

      It uses memory structures to replace all storage-device metadata

    2. B

      It can access files only after their physical disks are reformatted

    3. C

      It needs in-memory structures to manage mounted file systems and carry out operations

    4. D

      It must keep a permanent in-memory copy of every file on every device

    Correct answer
    C

    It needs in-memory structures to manage mounted file systems and carry out operations

    Explanation

    The operating system brings needed file-system structures into memory so it can manage files and perform operations such as opening or closing them.

  13. 13

    What can happen when a computer encounters a file system it does not understand?

    1. A

      It may be unable to access the files because it cannot interpret that file system's organization

    2. B

      It automatically converts every file into a universally readable format

    3. C

      It can access the data only by increasing the disk's rotational speed

    4. D

      It reads the files normally but cannot display their names

    Correct answer
    A

    It may be unable to access the files because it cannot interpret that file system's organization

    Explanation

    An operating system that does not support a file system may not be able to interpret its structures or access its files.

  14. 14

    Why can damage to file-system metadata make otherwise intact file contents difficult to access?

    1. A

      The damage automatically erases every magnetic bit on the storage device

    2. B

      Metadata damage prevents the storage device from being connected to a computer

    3. C

      The system can no longer determine the device's physical dimensions

    4. D

      The system may lose the directory or allocation information needed to locate the contents

    Correct answer
    D

    The system may lose the directory or allocation information needed to locate the contents

    Explanation

    Directories and file control information help the operating system determine where files are stored; damage to that metadata can make files difficult to locate.

  15. 15

    On a magnetic disk, how do tracks, sectors, and blocks relate to one another?

    1. A

      Blocks divide the disk surface, tracks divide blocks, and sectors store directories

    2. B

      Tracks identify files, sectors identify directories, and blocks identify devices

    3. C

      Tracks divide the disk surface, sectors divide tracks, and a track-sector location identifies a block

    4. D

      Sectors divide the disk surface, blocks divide sectors, and tracks identify files

    Correct answer
    C

    Tracks divide the disk surface, sectors divide tracks, and a track-sector location identifies a block

    Explanation

    The disk is organized into tracks, which are divided into sectors; a track and sector together identify a block that can be accessed.

  16. 16

    How can a file system translate a logical file request into a physical disk request?

    1. A

      It copies the entire disk into memory before locating the requested file

    2. B

      It looks up the disk locations for the file and requests the corresponding blocks

    3. C

      It asks the application to specify the platter's physical coordinates

    4. D

      It derives the disk location directly from the file's name without stored information

    Correct answer
    B

    It looks up the disk locations for the file and requests the corresponding blocks

    Explanation

    The file system uses its organization and metadata to connect a logical file name to physical blocks on the device.

  17. 17

    What is a key trade-off when choosing disk block size?

    1. A

      Smaller blocks increase file capacity, while larger blocks reduce disk capacity

    2. B

      Smaller blocks eliminate metadata, while larger blocks eliminate input/output

    3. C

      Smaller blocks require contiguous files, while larger blocks require linked files

    4. D

      Smaller blocks can reduce wasted space, while larger blocks reduce the number of blocks to track

    Correct answer
    D

    Smaller blocks can reduce wasted space, while larger blocks reduce the number of blocks to track

    Explanation

    A small file may waste space in a large block, but using smaller blocks means the file system must manage more blocks.

  18. 18

    Why might a small file waste storage space when the file system uses large blocks?

    1. A

      The operating system reserves all remaining blocks for the same file

    2. B

      The file must be copied into every block on its track

    3. C

      The file may occupy a whole block even though it uses only part of that block

    4. D

      Large blocks cannot store file data smaller than their full capacity

    Correct answer
    C

    The file may occupy a whole block even though it uses only part of that block

    Explanation

    Storage is allocated in blocks, so a small file can leave unused space within the block assigned to it.

  19. 19

    Why can using many small blocks increase file-system management work?

    1. A

      The system must keep track of more individual blocks and their locations

    2. B

      Small blocks prevent the use of directories and file control blocks

    3. C

      The disk must spin once for every byte stored in a block

    4. D

      The system must create a separate device driver for each block

    Correct answer
    A

    The system must keep track of more individual blocks and their locations

    Explanation

    More, smaller blocks require more allocation information to track which blocks belong to files and where they are located.

  20. 20

    What is a major advantage of contiguous allocation?

    1. A

      A file can be read without knowing where its first block is stored

    2. B

      A file can grow indefinitely without needing additional allocation information

    3. C

      A file can be read from a known starting point across consecutive blocks

    4. D

      A file can use scattered blocks without recording their locations

    Correct answer
    C

    A file can be read from a known starting point across consecutive blocks

    Explanation

    With contiguous allocation, the system can locate a file from its start and length, making access straightforward.

  21. 21

    A disk has several free areas, but none is large enough for a file that needs one uninterrupted run of blocks. What problem does this illustrate?

    1. A

      Rotational latency in disk scheduling

    2. B

      A hash collision in directory lookup

    3. C

      Wear leveling in solid-state storage

    4. D

      External fragmentation in contiguous allocation

    Correct answer
    D

    External fragmentation in contiguous allocation

    Explanation

    Contiguous allocation can fail to place a file even when total free space is sufficient if that space is split into smaller gaps.

  22. 22

    Why can a file that grows become difficult to keep in its original contiguous location?

    1. A

      The file system cannot update the file's name after it grows

    2. B

      The file's original blocks automatically become read-only

    3. C

      The blocks immediately after it may already belong to another file

    4. D

      The disk can store only one contiguous file at a time

    Correct answer
    C

    The blocks immediately after it may already belong to another file

    Explanation

    If adjacent blocks are occupied, the system may have to move the file or find another location when it grows.

  23. 23

    How does extent-based allocation accommodate a file that grows?

    1. A

      It can allocate an additional run of blocks and record that the file has another extent

    2. B

      It requires the file to be moved into a single larger block

    3. C

      It copies the file into every free block on the disk

    4. D

      It replaces the file's original blocks with a directory entry

    Correct answer
    A

    It can allocate an additional run of blocks and record that the file has another extent

    Explanation

    An extent is a run of blocks; a growing file can receive additional extents, though the system must track them.

  24. 24

    How does linked allocation represent a file's blocks?

    1. A

      The first block stores the physical address of every file on the disk

    2. B

      Every block contains a complete copy of the file's index

    3. C

      All blocks are recorded only in the file's directory name

    4. D

      Each block points to the next block in the file

    Correct answer
    D

    Each block points to the next block in the file

    Explanation

    In linked allocation, each block points to the next one, and the final block has a null or nil pointer.

  25. 25

    What is one benefit of linked allocation compared with reserving a large contiguous area in advance?

    1. A

      The file can be read in one operation without following any pointers

    2. B

      The file cannot be damaged by corruption in its allocation information

    3. C

      The system no longer needs to keep track of unused blocks

    4. D

      The file can use only the blocks it needs, even when they are not adjacent

    Correct answer
    D

    The file can use only the blocks it needs, even when they are not adjacent

    Explanation

    Linked allocation can use blocks wherever they are available and does not require a large contiguous reservation.

  26. 26

    What is a potential weakness of storing each next-block pointer inside the file's data blocks?

    1. A

      Corruption of a pointer automatically restores the file from a backup

    2. B

      The pointers force every file to use contiguous disk space

    3. C

      Corruption of a pointer can prevent access to the remaining blocks in the file

    4. D

      The pointers prevent files from being divided into blocks

    Correct answer
    C

    Corruption of a pointer can prevent access to the remaining blocks in the file

    Explanation

    If a pointer in a linked file is damaged, the system may no longer know where the later blocks are.

  27. 27

    How does a file allocation table organize linked block information?

    1. A

      It stores a complete copy of every file inside the directory

    2. B

      It replaces disk blocks with larger sectors during file access

    3. C

      It records only which applications have opened each file

    4. D

      It stores the next-block relationships in a table rather than inside each data block

    Correct answer
    D

    It stores the next-block relationships in a table rather than inside each data block

    Explanation

    A file allocation table records block links centrally, allowing the system to follow a file's allocation chain from the table.

  28. 28

    What is one advantage of keeping a file allocation table in memory?

    1. A

      The system no longer needs to store the file's data on disk

    2. B

      The system can make scattered blocks physically adjacent

    3. C

      The system can follow block-allocation information without reading each pointer from the disk

    4. D

      The system can ignore corruption in the allocation table

    Correct answer
    C

    The system can follow block-allocation information without reading each pointer from the disk

    Explanation

    Bringing the allocation table into memory can make it faster to determine the next block in a file.

  29. 29

    Why might a system keep a backup copy of its file allocation table?

    1. A

      The table is a central structure whose failure could prevent access to many files

    2. B

      The table otherwise cannot be loaded into memory

    3. C

      A backup copy eliminates the need for directory structures

    4. D

      The backup makes every file contiguous without moving its blocks

    Correct answer
    A

    The table is a central structure whose failure could prevent access to many files

    Explanation

    Because the table centralizes allocation information, its failure can disrupt access to the disk; a backup can provide resilience.

  30. 30

    How does indexed allocation locate the blocks belonging to a file?

    1. A

      The operating system searches every block in order each time

    2. B

      A file's index block lists the data blocks allocated to that file

    3. C

      Each data block identifies every file stored on the device

    4. D

      The directory name directly encodes the disk's physical block addresses

    Correct answer
    B

    A file's index block lists the data blocks allocated to that file

    Explanation

    Indexed allocation uses an index block containing references to the file's data blocks.

  31. 31

    What is a drawback of indexed allocation when a file uses many blocks?

    1. A

      The system may need to retrieve index information before it can locate the data blocks

    2. B

      The index makes it impossible to access a file randomly

    3. C

      The file must be stored in one contiguous run of blocks

    4. D

      Each data block must contain a complete copy of the index

    Correct answer
    A

    The system may need to retrieve index information before it can locate the data blocks

    Explanation

    The system must read the index block to discover where the file's data blocks are located.

  32. 32

    How can a multi-level index support a file with more blocks than a single index can list?

    1. A

      An outer index can point to additional index blocks that list data blocks

    2. B

      The file can be stored only in the directory structure

    3. C

      The system can increase the size of every physical disk sector

    4. D

      Each data block can be replaced by a separate file system

    Correct answer
    A

    An outer index can point to additional index blocks that list data blocks

    Explanation

    A multi-level index adds levels of indirection, allowing an index to reach more blocks than a single index block can reference.

  33. 33

    In a file system that combines direct and indirect block references, what is the purpose of a direct reference?

    1. A

      It records the file's location only after the disk is unmounted

    2. B

      It points to a different file system instead of to file data

    3. C

      It points straight to file data without first going through another index block

    4. D

      It links every free block to the next free block

    Correct answer
    C

    It points straight to file data without first going through another index block

    Explanation

    Direct references locate data blocks directly, while indirect references use one or more index blocks.

  34. 34

    Why might a file system use several levels of indirect references?

    1. A

      They prevent the operating system from caching file data

    2. B

      They guarantee that all files remain contiguous

    3. C

      They extend the number of data blocks that can be reached through indexing

    4. D

      They eliminate the need to allocate any blocks to a file

    Correct answer
    C

    They extend the number of data blocks that can be reached through indexing

    Explanation

    Single, double, or further indirect levels can extend the reach of the indexing structure to larger files.

  35. 35

    How can an operating system's access pattern influence the choice of file-system indexing?

    1. A

      A file system must use the same index depth for every access pattern

    2. B

      The access pattern determines the physical rotation speed of a disk

    3. C

      Rarely used files must always receive direct references

    4. D

      Frequently used data may benefit from shorter paths through the index structure

    Correct answer
    D

    Frequently used data may benefit from shorter paths through the index structure

    Explanation

    A file system can favor commonly used data with more direct access, while less frequently used data can use additional levels of indirection.

  36. 36

    Why can a simple linear directory search become inefficient as a directory grows?

    1. A

      The system must move every file into contiguous storage first

    2. B

      The system may have to check many entries before finding the requested file

    3. C

      The directory can no longer store file names

    4. D

      Each directory entry requires a separate physical disk

    Correct answer
    B

    The system may have to check many entries before finding the requested file

    Explanation

    A linear list may require examining entries one by one, so lookup can take longer as the list grows.

  37. 37

    What is the purpose of using structures such as linked lists or B-trees for directory organization?

    1. A

      They ensure all directory files use the same physical blocks

    2. B

      They make every directory entry a complete copy of its file

    3. C

      They remove the need to record file names

    4. D

      They can help locate directory entries more efficiently than a simple linear search

    Correct answer
    D

    They can help locate directory entries more efficiently than a simple linear search

    Explanation

    More structured organizations can speed up directory searches compared with scanning a simple list.

  38. 38

    What does a hash function do when used to organize directory entries?

    1. A

      It transforms a file name or other input into a value used to find an entry

    2. B

      It converts free blocks into a copy of the directory

    3. C

      It records the rotational position of the disk when a file is opened

    4. D

      It moves a file's contents into a contiguous run of blocks

    Correct answer
    A

    It transforms a file name or other input into a value used to find an entry

    Explanation

    A hash function maps input such as a file name to a value that can help the system locate the corresponding entry.

  39. 39

    What is a hash collision?

    1. A

      A free-space map contains no unused blocks

    2. B

      A file's blocks become physically adjacent

    3. C

      A directory entry is stored in two different file systems

    4. D

      Two different inputs map to the same hash value

    Correct answer
    D

    Two different inputs map to the same hash value

    Explanation

    A collision occurs when different inputs produce the same hash value, so the hash-based structure must account for it.

  40. 40

    Why can hash-based lookup be fast even though the hash function itself has a cost?

    1. A

      The hash value guarantees that all files are stored in adjacent blocks

    2. B

      The hash function eliminates the need to resolve collisions

    3. C

      The hash function copies the entire directory into the processor

    4. D

      The hash value can direct the system to a likely location instead of scanning entries one by one

    Correct answer
    D

    The hash value can direct the system to a likely location instead of scanning entries one by one

    Explanation

    Hashing can avoid a linear search by directing lookup to a particular location, though computing the hash and handling collisions also require work.

  41. 41

    How can a bitmap represent whether disk blocks are free or in use?

    1. A

      It uses one bit per block, with the bit value indicating that block's status

    2. B

      It assigns a different disk controller to every free block

    3. C

      It stores only the names of files occupying the disk

    4. D

      It uses one complete file per block to record the block's status

    Correct answer
    A

    It uses one bit per block, with the bit value indicating that block's status

    Explanation

    A bitmap uses one bit for each block to record whether the block is free or allocated.

  42. 42

    Does a bitmap have to use one specific bit value to mean that a block is free?

    1. A

      Yes; a free block must always be represented by a one

    2. B

      Yes; a free block must always be represented by a zero

    3. C

      No; the bit value changes whenever a file is opened

    4. D

      No; the system can choose either convention as long as it uses it consistently

    Correct answer
    D

    No; the system can choose either convention as long as it uses it consistently

    Explanation

    Either bit value can represent free space, provided the file system applies its chosen convention consistently.

  43. 43

    If a disk is divided into blocks of 4 KiB4\,\text{KiB}4KiB, how many blocks are there on a 1 TiB1\,\text{TiB}1TiB disk, using powers of two?

    1. A

      2322^{32}232 blocks

    2. B

      2122^{12}212 blocks

    3. C

      2282^{28}228 blocks

    4. D

      2402^{40}240 blocks

    Correct answer
    C

    2282^{28}228 blocks

    Explanation

    A 1 TiB1\,\text{TiB}1TiB disk contains 2402^{40}240 bytes, and each 4 KiB4\,\text{KiB}4KiB block contains 2122^{12}212 bytes. Thus, the number of blocks is 240/212=2282^{40}/2^{12}=2^{28}240/212=228.

  44. 44

    What is one cost of using a bitmap to track free space on a disk with many blocks?

    1. A

      The disk must copy each free block into memory permanently

    2. B

      The system must use one bitmap for every byte rather than every block

    3. C

      The bitmap makes it impossible to allocate blocks individually

    4. D

      The bitmap itself can require a substantial amount of storage

    Correct answer
    D

    The bitmap itself can require a substantial amount of storage

    Explanation

    A bitmap needs one bit per block, so a disk with a very large number of blocks requires a correspondingly large bitmap.

  45. 45

    How does a linked free list identify available blocks?

    1. A

      It marks all free blocks as part of the same contiguous file

    2. B

      It links free blocks together and keeps track of the first free block

    3. C

      It stores every free block as a separate file in the directory

    4. D

      It records only the total amount of free space, not its locations

    Correct answer
    B

    It links free blocks together and keeps track of the first free block

    Explanation

    A free list links unused blocks, with a pointer to the list's first block.

  46. 46

    When the first block in a linked free list is allocated, what must the system do?

    1. A

      Delete the entire free list and rebuild the file system

    2. B

      Move every allocated file into that block

    3. C

      Make that block's next-free pointer the new head of the list

    4. D

      Change all file names to match the new block number

    Correct answer
    C

    Make that block's next-free pointer the new head of the list

    Explanation

    After allocating the head block, the block it pointed to becomes the new first free block.

  47. 47

    Why might a free-space structure record several available blocks together rather than only one at a time?

    1. A

      Grouping removes the need to track whether blocks are in use

    2. B

      Grouping ensures every free block is physically adjacent

    3. C

      Grouping prevents the disk from storing files larger than one block

    4. D

      Grouping blocks can reduce the work needed to locate multiple free blocks

    Correct answer
    D

    Grouping blocks can reduce the work needed to locate multiple free blocks

    Explanation

    A system can optimize a free-space structure by recording groups of blocks, which can be useful when multiple blocks are needed.

  48. 48

    Why might a very large storage system use a different free-space structure from a small personal computer?

    1. A

      Small computers must use magnetic tape for free-space tracking

    2. B

      Large systems do not need to record which blocks are available

    3. C

      The scale and workload can make different management approaches more effective

    4. D

      Large systems cannot use directories or file control blocks

    Correct answer
    C

    The scale and workload can make different management approaches more effective

    Explanation

    Free-space strategies can be chosen to suit the amount of storage and the system's workload.

  49. 49

    Why might a file system cache directory information or recently used data?

    1. A

      Keeping likely-to-be-used information in memory can avoid repeated storage access

    2. B

      Keeping information in memory forces every file to be contiguous

    3. C

      Caching makes storage devices unnecessary for permanent data

    4. D

      Caching guarantees that every later request will be a write

    Correct answer
    A

    Keeping likely-to-be-used information in memory can avoid repeated storage access

    Explanation

    A cache can retain information that is likely to be requested again, reducing the need for another slower storage access.

  50. 50

    What is the purpose of read-ahead when retrieving data from storage?

    1. A

      It fetches nearby data in advance in case the program requests it next

    2. B

      It moves the disk head to a different file before reading the requested data

    3. C

      It writes every cached block back to disk before each read

    4. D

      It replaces a file's directory entry with a larger block

    Correct answer
    A

    It fetches nearby data in advance in case the program requests it next

    Explanation

    Read-ahead retrieves data beyond the immediate request so that likely-following data may already be available if needed.

  51. 51

    How is data represented on a traditional magnetic disk?

    1. A

      The disk represents every file as a separate moving read head

    2. B

      Magnetic states on the disk surface encode the stored information

    3. C

      The disk stores data as light pulses in a fiber-optic cable

    4. D

      The disk stores data only as electrical charge in processor registers

    Correct answer
    B

    Magnetic states on the disk surface encode the stored information

    Explanation

    Magnetic disks store information by representing data through magnetic states on their surfaces.

  52. 52

    What is seek time on a magnetic disk?

    1. A

      The time required for the requested sector to rotate under the head

    2. B

      The time required to calculate a directory hash value

    3. C

      The time required to transfer data from memory to the processor

    4. D

      The time required to move the read/write head to the desired track

    Correct answer
    D

    The time required to move the read/write head to the desired track

    Explanation

    Seek time measures the movement of the disk head to the location needed for a request.

  53. 53

    What is rotational latency on a magnetic disk?

    1. A

      The time required to move the head between tracks

    2. B

      The time required to create a new file allocation table

    3. C

      The time required to connect a device to a network

    4. D

      The wait for the disk to rotate the desired data position under the head

    Correct answer
    D

    The wait for the disk to rotate the desired data position under the head

    Explanation

    Rotational latency is the delay while the disk rotates until the requested position reaches the head.

  54. 54

    How are seek time and rotational latency related to disk access latency?

    1. A

      They are two names for the rate at which data is transferred

    2. B

      They describe the time needed to format and partition a disk

    3. C

      They are components of the time needed to position the disk for access

    4. D

      They are both measures of the number of blocks stored in memory

    Correct answer
    C

    They are components of the time needed to position the disk for access

    Explanation

    Access latency includes the time spent moving the head and waiting for the disk to rotate the desired location into position.

  55. 55

    How does increasing a magnetic disk's rotational speed generally affect rotational latency?

    1. A

      It eliminates the need to transfer data into memory

    2. B

      It increases the time needed to move the head between tracks

    3. C

      It reduces the time the disk must wait to rotate the requested position under the head

    4. D

      It makes the disk require a larger file allocation table

    Correct answer
    C

    It reduces the time the disk must wait to rotate the requested position under the head

    Explanation

    A faster-spinning disk brings the requested sector under the head sooner, reducing rotational latency.

  56. 56

    What does a disk controller do?

    1. A

      It creates the names of files and directories for applications

    2. B

      It manages communication between the computer and the storage device

    3. C

      It permanently stores the contents of every processor register

    4. D

      It replaces the operating system's file-system layers

    Correct answer
    B

    It manages communication between the computer and the storage device

    Explanation

    The computer communicates with a disk controller, which handles the device-specific process of accessing the disk.

  57. 57

    When estimating the time for an input/output request, what must be considered in addition to disk positioning?

    1. A

      The time to transfer the data and any controller overhead

    2. B

      The time required to calculate every possible hash function

    3. C

      The number of directory names displayed on the screen

    4. D

      The number of applications installed on the computer

    Correct answer
    A

    The time to transfer the data and any controller overhead

    Explanation

    An overall input/output time can include positioning, data transfer, and controller overhead.

  58. 58

    Why can a solid-state drive access data without seek time or rotational latency?

    1. A

      It reads data only in the order it was written

    2. B

      It has no moving disk head or rotating platter to position

    3. C

      It stores every file in the processor's cache

    4. D

      It uses a faster magnetic disk rotation rate

    Correct answer
    B

    It has no moving disk head or rotating platter to position

    Explanation

    An SSD has no moving read/write head or rotating platter, so it avoids those mechanical delays.

  59. 59

    Why does SSD wear-leveling software distribute writes across memory cells?

    1. A

      The software reduces the disk's rotational latency

    2. B

      Individual SSD cells can be written only when the device is disconnected

    3. C

      The software ensures that every file is stored in one contiguous extent

    4. D

      Individual cells have limited write cycles, so spreading writes helps use the device more evenly

    Correct answer
    D

    Individual cells have limited write cycles, so spreading writes helps use the device more evenly

    Explanation

    SSD memory cells have a limited number of write cycles, so wear leveling helps distribute use across the device.

  60. 60

    Which description best captures the trade-off associated with magnetic tape?

    1. A

      It is fast for random access but cannot store large amounts of data

    2. B

      It can store a large amount of data cheaply, but access is relatively slow

    3. C

      It is expensive, fast, and physically smaller than every other storage medium

    4. D

      It provides the fastest access at the lowest cost and smallest capacity

    Correct answer
    B

    It can store a large amount of data cheaply, but access is relatively slow

    Explanation

    Magnetic tape is described as an inexpensive way to store a large amount of data, with slower access as a trade-off.

  61. 61

    What does the storage trade-off summarized as “pick two” mean?

    1. A

      A device can support only two file names at the same time

    2. B

      A computer can connect only two types of storage device

    3. C

      A file system must choose exactly two block sizes

    4. D

      A design may have to balance cost, speed, and storage capacity rather than maximize all three

    Correct answer
    D

    A design may have to balance cost, speed, and storage capacity rather than maximize all three

    Explanation

    Storage choices involve trade-offs among cost, speed, and capacity; achieving all three at once is not generally possible.

  62. 62

    Why might a large storage system use a storage area network?

    1. A

      It turns every networked storage device into a local memory module

    2. B

      It connects storage resources so that servers can access them over a network

    3. C

      It replaces file systems with direct processor-to-disk communication

    4. D

      It prevents storage devices from being shared among computers

    Correct answer
    B

    It connects storage resources so that servers can access them over a network

    Explanation

    A storage area network connects storage resources to computers and servers, separating storage access from a single local device.

  63. 63

    What does the idea that “the cloud is a computer somewhere else” emphasize?

    1. A

      Cloud storage works without networks or operating systems

    2. B

      Cloud storage is provided by remote computing and storage systems, not by a mysterious separate kind of device

    3. C

      Cloud storage uses no computers or physical storage devices

    4. D

      Cloud storage is always located inside the user's local computer

    Correct answer
    B

    Cloud storage is provided by remote computing and storage systems, not by a mysterious separate kind of device

    Explanation

    Cloud services rely on computers and storage systems elsewhere that users reach through a network.

  64. 64

    Why can network-attached storage appear as a drive in a file explorer?

    1. A

      The storage device must use the same physical disk as the operating system

    2. B

      The network device is physically installed inside the computer

    3. C

      The router converts the remote files into processor instructions

    4. D

      The operating system can present network storage through a familiar file-system interface

    Correct answer
    D

    The operating system can present network storage through a familiar file-system interface

    Explanation

    File-system layers can hide the location of storage, allowing network-attached storage to appear like an accessible drive.

  65. 65

    How can distributing different parts of a file across multiple storage devices improve performance?

    1. A

      The devices stop needing controllers and input/output connections

    2. B

      Devices can deliver different parts in parallel instead of one device supplying them all sequentially

    3. C

      The operating system no longer needs to track the blocks' locations

    4. D

      The file becomes smaller because its blocks are stored on separate devices

    Correct answer
    B

    Devices can deliver different parts in parallel instead of one device supplying them all sequentially

    Explanation

    Parallel reads from multiple devices can deliver several parts of a file at once, potentially improving performance.

  66. 66

    Why might a large storage system use a faster connection such as fiber?

    1. A

      Fiber makes all storage devices use contiguous allocation

    2. B

      A faster connection guarantees that no storage request will wait

    3. C

      A faster connection can help move data more quickly between storage and the rest of the system

    4. D

      Fiber eliminates the need to organize files into blocks

    Correct answer
    C

    A faster connection can help move data more quickly between storage and the rest of the system

    Explanation

    Higher-speed connections can help address data-transfer bottlenecks in systems with many storage devices and users.

  67. 67

    How does first-come, first-served disk scheduling choose the next request?

    1. A

      It serves requests in ascending cylinder order only

    2. B

      It serves requests in the order they arrived

    3. C

      It always serves the request closest to the current head position

    4. D

      It skips requests until the disk reaches its outermost track

    Correct answer
    B

    It serves requests in the order they arrived

    Explanation

    First-come, first-served handles disk requests in arrival order, regardless of their physical locations.

  68. 68

    Why can first-come, first-served disk scheduling cause substantial head movement?

    1. A

      Requests are deliberately delayed until they become adjacent

    2. B

      The algorithm always moves the head to the disk's center after every request

    3. C

      Requests may arrive in an order that makes the head travel back and forth across the disk

    4. D

      The algorithm reads every block on the disk before serving a request

    Correct answer
    C

    Requests may arrive in an order that makes the head travel back and forth across the disk

    Explanation

    Arrival order does not account for request locations, so the head may move back and forth over long distances.

  69. 69

    How does shortest-seek-time-first choose among pending requests?

    1. A

      It selects the request at the outermost cylinder

    2. B

      It selects the request that arrived first

    3. C

      It selects the request requiring the least head movement from the current position

    4. D

      It selects the request with the largest file size

    Correct answer
    C

    It selects the request requiring the least head movement from the current position

    Explanation

    Shortest-seek-time-first selects the pending request closest to the current head position.

  70. 70

    What fairness problem can occur with shortest-seek-time-first scheduling?

    1. A

      Requests that arrive first are always denied service

    2. B

      Requests far from the current head position may keep waiting if closer requests continue to arrive

    3. C

      Every request is served twice before the next one can be handled

    4. D

      The head must move to both ends of the disk before every request

    Correct answer
    B

    Requests far from the current head position may keep waiting if closer requests continue to arrive

    Explanation

    New nearby requests can repeatedly take priority, delaying requests farther away; aging can help address this risk.

  71. 71

    How can aging improve fairness in disk scheduling?

    1. A

      It moves older sectors to the center of the disk

    2. B

      It gives every request the same cylinder number

    3. C

      It can increase the priority of requests that have waited for a long time

    4. D

      It reduces the physical size of older files

    Correct answer
    C

    It can increase the priority of requests that have waited for a long time

    Explanation

    Aging raises the priority of requests as they wait, helping prevent a request from being postponed indefinitely.

  72. 72

    What is the basic movement pattern of the SCAN disk-scheduling algorithm?

    1. A

      The head services only requests at the nearest cylinder

    2. B

      The head services requests in one direction and then reverses direction

    3. C

      The head moves only in one direction and never returns

    4. D

      The head moves directly to each request in its arrival order

    Correct answer
    B

    The head services requests in one direction and then reverses direction

    Explanation

    SCAN moves across the disk servicing requests and then reverses direction, similar to an elevator changing direction.

  73. 73

    How does C-SCAN differ from SCAN?

    1. A

      C-SCAN services requests in one direction, then returns to the start without servicing requests on the return

    2. B

      C-SCAN always chooses the closest request, while SCAN uses arrival order

    3. C

      C-SCAN reverses direction at every request, while SCAN does not

    4. D

      C-SCAN serves only requests at the center of the disk

    Correct answer
    A

    C-SCAN services requests in one direction, then returns to the start without servicing requests on the return

    Explanation

    C-SCAN services requests in one direction and wraps back to the beginning without servicing requests during that return.

  74. 74

    What distinction separates LOOK from SCAN?

    1. A

      LOOK serves requests in arrival order, while SCAN sorts them by file name

    2. B

      LOOK moves in only one direction, while SCAN always wraps to the beginning

    3. C

      LOOK reverses at the last pending request in a direction rather than traveling to the disk's physical end

    4. D

      LOOK ignores all requests except the nearest one

    Correct answer
    C

    LOOK reverses at the last pending request in a direction rather than traveling to the disk's physical end

    Explanation

    LOOK avoids traveling to the physical end of the disk when no request is there; it reverses at the last request in that direction.

  75. 75

    How does C-LOOK apply the circular idea to LOOK?

    1. A

      It moves to the physical end of the disk before returning

    2. B

      It serves requests only while moving toward the disk's center

    3. C

      It services requests in one direction and jumps back from the last requested location to the first pending location

    4. D

      It reverses direction at every request and serves the nearest one

    Correct answer
    C

    It services requests in one direction and jumps back from the last requested location to the first pending location

    Explanation

    C-LOOK moves in one direction through pending requests, then jumps back to the first pending location rather than traveling to the physical disk boundary.

  76. 76

    Why can SCAN or C-SCAN be preferable to shortest-seek-time-first under a heavy request load?

    1. A

      They require every request to use the same cylinder

    2. B

      They eliminate the need for the disk head to move

    3. C

      They provide more systematic movement and can reduce the risk of faraway requests waiting indefinitely

    4. D

      They always serve requests in the order they arrived

    Correct answer
    C

    They provide more systematic movement and can reduce the risk of faraway requests waiting indefinitely

    Explanation

    SCAN-style approaches move through the disk in an organized pattern, which can provide more predictable service under heavy load.

  77. 77

    Why might different operating systems choose different disk-scheduling algorithms?

    1. A

      The best choice depends on factors such as workload, request load, and performance goals

    2. B

      Every algorithm works only with one particular file name

    3. C

      Disk scheduling is determined entirely by the number of directories

    4. D

      All machines have identical storage workloads and therefore use one algorithm

    Correct answer
    A

    The best choice depends on factors such as workload, request load, and performance goals

    Explanation

    An algorithm's suitability depends on the system and its workload; a desktop and a heavily loaded server may have different needs.

  78. 78

    Why can small improvements to disk scheduling matter greatly in a large server system?

    1. A

      A server performs only one disk request at a time

    2. B

      A scheduling improvement increases the physical capacity of each disk

    3. C

      A small time saving repeated across many requests can produce a substantial total performance gain

    4. D

      A small time saving removes the need for storage backups

    Correct answer
    C

    A small time saving repeated across many requests can produce a substantial total performance gain

    Explanation

    A tiny reduction in time per access can accumulate into a large gain when many requests are being processed.

  79. 79

    What does formatting a disk establish?

    1. A

      A scheduling order for all future disk requests

    2. B

      A backup copy of every file on the disk

    3. C

      A new network connection to the disk controller

    4. D

      A usable organization of the disk into structures such as sectors

    Correct answer
    D

    A usable organization of the disk into structures such as sectors

    Explanation

    Formatting establishes the disk structures, including sectors, that the system can use for storage.

  80. 80

    What is the difference between a physical disk and a partition?

    1. A

      A physical disk is a directory, while a partition is a file control block

    2. B

      A partition is a type of file stored in memory rather than on a disk

    3. C

      A partition is always a separate physical device connected by a cable

    4. D

      A partition is a division of a physical disk that the system can treat as a separate logical disk

    Correct answer
    D

    A partition is a division of a physical disk that the system can treat as a separate logical disk

    Explanation

    A physical disk can be divided into partitions, each of which can be treated as a separate logical disk.

  81. 81

    How does a volume differ from a partition?

    1. A

      A volume is a logical storage unit that can, in some configurations, span multiple physical disks

    2. B

      A volume is a scheduling algorithm, while a partition is a memory structure

    3. C

      A volume is always a physically separate disk, while a partition is a file name

    4. D

      A volume can contain only one block, while a partition can contain many files

    Correct answer
    A

    A volume is a logical storage unit that can, in some configurations, span multiple physical disks

    Explanation

    A partition is a division of a physical disk; a volume is a logical storage unit and may span more than one physical disk.

  82. 82

    Can two partitions on the same physical disk use different file systems?

    1. A

      Yes, but only if one partition contains no directories

    2. B

      Yes; different partitions can be set up with different file systems

    3. C

      No; partitions cannot contain file systems

    4. D

      No; every partition on a disk must use the same file system

    Correct answer
    B

    Yes; different partitions can be set up with different file systems

    Explanation

    A physical disk can contain multiple partitions, and the partitions do not have to use the same file system.

  83. 83

    What is one reason a computer might have a separate recovery partition?

    1. A

      It prevents the operating system from using memory

    2. B

      It guarantees that the main partition contains no files

    3. C

      It increases the rotational speed of the physical disk

    4. D

      It can provide a separate logical area used to restore the system

    Correct answer
    D

    It can provide a separate logical area used to restore the system

    Explanation

    A recovery partition can hold system recovery information and be selected during startup for restoring the computer.

  84. 84

    What does it mean to group several blocks into a cluster?

    1. A

      The file system can allocate or refer to the group as a unit made up of multiple blocks

    2. B

      The disk controller combines several physical disks into one read/write head

    3. C

      The operating system converts a directory into a single file

    4. D

      The file system replaces every block with a sector-sized partition

    Correct answer
    A

    The file system can allocate or refer to the group as a unit made up of multiple blocks

    Explanation

    A cluster is a group of blocks that can be treated together for storage operations.

  85. 85

    What does raw disk access allow an application to do?

    1. A

      Work with a partition or disk directly instead of relying on a conventional file system

    2. B

      Access data only through a network file system

    3. C

      Use a disk without any physical storage blocks

    4. D

      Read files without knowing which storage device contains them

    Correct answer
    A

    Work with a partition or disk directly instead of relying on a conventional file system

    Explanation

    Some applications request raw disk access so they can manage a partition or device in their own way rather than use a standard file system.

  86. 86

    What information does a master boot record provide during startup?

    1. A

      A copy of every file's data and its directory

    2. B

      A list of free blocks on every networked storage device

    3. C

      Boot-related code and partition information used to select what to start

    4. D

      The current position of the disk head for each application

    Correct answer
    C

    Boot-related code and partition information used to select what to start

    Explanation

    The master boot record can contain boot code and a partition table that helps determine which partition to boot.

  87. 87

    Why might a computer use a separate swap partition or a designated swap file?

    1. A

      Swap space stores only the file system's directory names

    2. B

      Swap space replaces the need for the computer's main memory

    3. C

      Swap space provides storage used in support of virtual memory

    4. D

      Swap space records the disk's rotational latency

    Correct answer
    C

    Swap space provides storage used in support of virtual memory

    Explanation

    Swap space is associated with virtual memory and may be set up as a partition or as a file, depending on the operating system.

  88. 88

    Why might an operating system prefer swap space to be contiguous?

    1. A

      Contiguity allows the operating system to ignore the disk controller

    2. B

      Contiguous storage can avoid extra movement between scattered locations

    3. C

      A swap area must contain exactly one data block

    4. D

      Contiguity makes it possible to store directory names in the processor

    Correct answer
    B

    Contiguous storage can avoid extra movement between scattered locations

    Explanation

    Keeping swap space contiguous can help avoid delays associated with accessing scattered locations.

  89. 89

    What is the purpose of an array of disks such as RAID?

    1. A

      It replaces the operating system's need to manage storage

    2. B

      It combines multiple disks to support goals such as greater performance, capacity, or resilience

    3. C

      It prevents disks from being used in parallel

    4. D

      It ensures that all data is stored on one physical disk

    Correct answer
    B

    It combines multiple disks to support goals such as greater performance, capacity, or resilience

    Explanation

    A disk array can be configured in different ways to improve performance, storage capacity, or protection against disk failure.

  90. 90

    How can splitting data across several disks improve read performance?

    1. A

      Different disks can supply portions of the data in parallel

    2. B

      The data becomes contiguous on every disk at the same time

    3. C

      The system can avoid recording which disk holds each portion

    4. D

      Every read is redirected to a single disk controller

    Correct answer
    A

    Different disks can supply portions of the data in parallel

    Explanation

    Reading portions of data from multiple disks in parallel can be faster than reading all of it from one disk sequentially.

  91. 91

    What does mirroring do in a disk array?

    1. A

      It divides a file into smaller blocks without making copies

    2. B

      It stores duplicate copies of data on more than one disk

    3. C

      It records only the locations of free blocks

    4. D

      It stores the directory on a disk but not the file data

    Correct answer
    B

    It stores duplicate copies of data on more than one disk

    Explanation

    Mirroring keeps a duplicate copy of data on another disk, so one disk may fail without eliminating the only copy.

  92. 92

    How can parity-based redundancy help recover data after a disk fails?

    1. A

      It makes every disk hold an identical full copy of every file

    2. B

      It prevents a disk from ever developing a physical fault

    3. C

      It replaces the failed disk's controller with a software driver

    4. D

      Redundant information spread across disks can be used to reconstruct missing data

    Correct answer
    D

    Redundant information spread across disks can be used to reconstruct missing data

    Explanation

    Some array configurations use redundant information, such as parity, to reconstruct data lost when a disk fails.

  93. 93

    What is hot swapping a failed disk?

    1. A

      Moving a disk head to a hotter part of the platter

    2. B

      Reformatting a disk before the computer starts

    3. C

      Copying a file from a hard disk to a tape drive

    4. D

      Replacing a disk while the system remains powered and continues operating

    Correct answer
    D

    Replacing a disk while the system remains powered and continues operating

    Explanation

    A hot-swappable system can allow a failed disk to be removed and replaced without shutting down the machine.

  94. 94

    What is an important trade-off of using mirrored disks?

    1. A

      Mirroring increases disk capacity without using additional disks

    2. B

      Duplicating data reduces reliability but increases the number of file names

    3. C

      Mirroring eliminates the need to read data from storage

    4. D

      Duplicating data improves redundancy but uses additional storage capacity

    Correct answer
    D

    Duplicating data improves redundancy but uses additional storage capacity

    Explanation

    Mirroring stores data more than once, improving resilience but reducing the amount of unique data that the disks can hold.

Question 1 of 94
Question 1 of 94

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent