木構造を採用したファイルシステムに関する記述のうち, 適切なものはどれか。
平成21年度 秋期 ITパスポート試験 問87
This question's explanation and your answers so far.
問 87
- ア
正解 The correct answer is ア. In a tree-structured (hierarchical) file system, the root directory is the top, and directories can contain further directories and files nested inside them. Duplicate names are prohibited only “directly under the same parent directory”; if the parent differs, the same name may be used. For example, root/SalesDept/Documents and root/DevDept/Documents are both named “Documents”, but their full paths (absolute paths) differ, so they are distinguished as separate items and coexist without any problem. Therefore, “directories with the same name can be created at different hierarchy levels” is a correct property of a tree-structured file system.
Incorrectイ
Incorrect. It is the root directory that always indicates the top of the hierarchy. The current directory represents “the location where the user is working right now”, and it changes when the user moves to another directory; it is not fixed at the top.
Incorrectウ
Incorrect. A relative path specifies a route starting from the current directory, and just like an absolute path it can be used to create, reference, and delete files and directories. Only the way of writing the specification differs; the operations available are the same.
Incorrectエ
Incorrect. A directory can be created even when it is empty. In fact, a directory just after it is newly created contains no files at all, and this is a normal state.
- In a tree-structured (hierarchical) file system, name uniqueness is required only within the same directory. If the parent differs, directories and files with the same name can be placed (they are uniquely identified by their full path).
- Root directory = fixed at the top of the hierarchy; current directory = the present working location, which changes as you move around. An absolute path starts from the root and a relative path starts from the current directory, and the same operations can be performed with either.