Computer Science 4630
Summer 2001
Practice questions for quiz 4

True/False.

  1. One desirable characteristic of broadcast networks such as ethernet is the ease of adding new computers to the network.

  2. Process migration is common in network operating systems.

  3. Network operating systems tend to be more resilient to failures than distributed operating systems.

Multiple choice

  1. An important difference between a hard link and a soft link in a file system is

    1. Reference counts are kept for hard links but not for soft links.
    2. Reference counts are kept for soft links but not for hard links.
    3. Hard links are allowed to create cycles, but soft links are not.
    4. Soft links require much less disk space than hard links.

  2. An advantage of the file allocation table file structure over the linked file structure is

    1. The file allocation table solution uses much less disk space than the linked structure.
    2. The linked structure uses much less disk space than the file allocation table structure.
    3. The file allocation table method allows faster seeks in files.
    4. The linked allocation method allows faster seeks in files.

  3. A Unix inode stores

    1. Only the name of a file.
    2. Only file allocation information about a file.
    3. Only access permission information about a file.
    4. Access permissions and file allocation information for a file, as well as some other information.

  4. Contiguous allocation of files has some advantages and some disadvantages. Which of the following is NOT a disadvantage of contiguous allocation?

    1. Fragmentation of the disk free blocks.
    2. Slow seek time.
    3. Difficulty of adding new blocks to the end of a file.
    4. Difficulty of adding new blocks to the beginning of a file.

  5. Clustering is

    1. Creating large logical disk blocks from collections of contiguous physical disk blocks.
    2. Allocating directories close to one another.
    3. Allocating files close to one another.
    4. Moving the blocks of a file closer to one another on the disk.

  6. An advantage of clustering for a file allocation table is

    1. The file allocation table can be made contiguous on the disk.
    2. The file allocation table is smaller.
    3. The file allocation table can probably fit in a single disk block.
    4. The file allocation table becomes entirely unnecessary.

  7. When striping is used with a RAID disk array, reliability becomes a problem. How is that problem compensated for?

    1. By doing striping with smaller chunks of data.
    2. By doing striping with larger chunks of data.
    3. By storing information redundantly.
    4. It can only be solved by using highly reliable disk drives.

  8. To read or write a block on a disk, a process must

    1. acquire the disk resource for its private use.
    2. send a direct i/o request to the disk.
    3. first check that the disk is powered up and spinning.
    4. make a request of the disk manager.

  9. A directory is a kind of file. Which of the following is NOT a reason for not providing a means for processes to directly read and write directories the way ordinary files are read and written?

    1. Directory organization changes from one operating system to another, so programs that do direct access to directories are non-portable.
    2. Allowing a process to write a directory will allow the process to replace any permission information that is stored in the directory, and hence will reduce system security.
    3. Processes that write a directory might destroy the directory structure, causing a large part of the file system to be lost.
    4. A process is usually not allowed to find out the names of the files that are part of a directory.

  10. First-come-first-serve disk scheduling suffers from what problem?

    1. There tends to be a large amount of disk head motion that can be reduced by using other scheduling algorithms.
    2. The algorithm is not fair to processes, and can cause some processes to wait for a long time.
    3. The algorithm causes files to become fragmented.
    4. The algorithm is difficult to implement.

  11. The shortest-seek-time-first disk scheduling algorithm suffers from what problem?

    1. There tends to be a large amount of disk head motion that can be reduced by using other scheduling algorithms.
    2. The algorithm is not fair to processes, and can cause some processes to wait for a long time.
    3. The algorithm causes files to become fragmented.
    4. The algorithm is difficult to implement.

  12. The TCP protocol is responsible (among other things) for

    1. Routing packets through the network.
    2. Reliable delivery of packets between directly connected machines.
    3. Reliable delivery of large (multi-packet) messages between machines that are not necessarily directly connected.
    4. Dealing with differences among operating system architectures.

  13. The IP protocol is primarily concerned with

    1. Routing packets through the network.
    2. Reliable delivery of packets between directly connected machines.
    3. Reliable delivery of large (multi-packet) messages between machines that are not necessarily directly connected.
    4. Dealing with differences among operating system architectures.