A process has /home/lee as its current working directory and opens notes.txt. How should this path be classified?
7 File Systems and Storage Online Quiz Questions
Use this free practice quiz with 20 questions to review 7 File Systems and Storage, test your knowledge, and prepare for your next test or exam.
A user wants a second directory name for a file, with both names referring to the same inode. Which should they create?
- A
Create a hard link, which adds a directory entry referring to the same inode.
- B
Create a symbolic link, which adds another name to the same inode.
- C
Create a hard link, which stores the target file’s path.
- D
Create a symbolic link, which copies the target’s metadata and data blocks.
A process needs to access a known file by name inside a directory. Which directory permission is specifically needed to look up that name?
- A
Read permission, because it lists names in the directory.
- B
Write permission, because it allows modification of file contents.
- C
Search permission, because it allows lookup of a known name in the directory.
- D
Execute permission on the file, because it provides access through the directory.
Select all statements that correctly describe contiguous allocation.
- A
A file occupies consecutive blocks.
- B
Each block points to the next block in the file.
- C
Sequential access can be fast, but growing the file may be difficult if following blocks are occupied.
- D
An index structure identifies the file’s blocks without following earlier blocks.
Select all statements that correctly distinguish read and search permissions on a directory.
- A
Read permission on a directory allows listing its names.
- B
Search permission on a directory allows looking up known names within it.
- C
Read permission on a directory always allows accessing every named file, regardless of other permissions.
- D
Search permission on a directory means its names can be listed.
On many Unix-like file systems, two hard links can refer to the same inode.
- A
True
- B
False
A symbolic link stores a copy of the target file’s data blocks.
- A
True
- B
False
Which allocation method uses an index structure to record a file’s blocks, so the system can locate a later block without following every earlier block?
On many Unix-like file systems, what structure stores a file’s metadata and identifies its data blocks, while the filename is usually stored separately in a directory entry?
For a directory, execute permission provides permission to access named entries.
In extent-based allocation, a file is represented by ranges of consecutive blocks called .
A user has read permission on a file but receives an access error when trying to open it by path. Explain how this can happen and identify what directory permission should be checked along the path.
What operation makes a file system available by attaching it into the directory hierarchy?
- A
Formatting
- B
Mounting
- C
Indexing
- D
Linking
Which statement describes an ext4-specific aspect of file-system structure?
- A
It divides storage into block groups and uses structures such as inode tables and block and inode bitmaps.
- B
It stores every file as one uninterrupted run of blocks.
- C
It uses only symbolic links to map names to data.
- D
It records free space exclusively as a linked chain of data blocks.
True or false: A relative path begins at the process's current working directory.
- A
True
- B
False
An operating system makes a separate file system accessible as part of the existing directory hierarchy. What operation does this describe?
- A
Converting its free-space bitmap into directory entries
- B
Attaching it into the directory hierarchy
- C
Combining its inodes with those of the root file system
- D
Copying its files into the current working directory
A file system allocates storage in units that are usually larger than device sectors. What is one such allocation unit called?
A file has permissions rw-r--r--. What can members of its group do to the file?
- A
Group members can read and write the file.
- B
Group members can execute the file but cannot read it.
- C
Group members can read the file but cannot write or execute it.
- D
Group members have no access to the file.
A file system uses a bitmap to track free space. What does each bit represent?
- A
Each bit represents whether a block is free or allocated.
- B
Each bit stores a file's owner and permissions.
- C
Each bit points to the next block in a file.
- D
Each bit maps a directory name to an inode number.
An administrator needs to inspect the structure that describes an entire file system, including its size and layout. What is this structure commonly called?