Skip to content

令和元年度 秋期 ITパスポート試験 問83

This question's explanation and your answers so far.

問83
頻出度★☆☆

ファイルの階層構造に関する次の記述中の a, b に入れる字句の適切な組合せはどれか。 階層型ファイルシステムにおいて, 最上位の階層のディレクトリを a ディレクトリという。ファイルの指定方法として, カレントディレクトリを基点として目的のファイルまでのすべてのパスを記述する方法と, ルートディレクトリを基点として目的のファイルまでの全てのパスを記述する方法がある。ルートディレクトリを基点としたファイルの指定方法を b パス指定という。

出典 令和元年度 秋期 ITパスポート試験 問83
解説

問 83

  • Incorrectア

    The absolute for b is correct, but treating a as current is wrong. The current directory refers to the directory of the position where you are currently working, not the directory at the highest level. The highest level is the root directory.

  • Incorrectイ

    Treating a as current and b as relative are both wrong. The highest-level directory is root, and specification starting from root is an absolute path. The combination of a current base point and a relative path does not match the description in the text.

  • ウ

    正解 Blank a is the directory at the highest level; in a hierarchical file system, the single directory at the top (vertex) of the tree is called the root directory, so a is root. Blank b is the method of describing the entire path to the target file starting from the root directory, which is called absolute path specification, so b is absolute. Therefore choice ウ, the combination a=root, b=absolute, is correct.

  • Incorrectエ

    The root for a is correct, but treating b as relative is wrong. Relative path specification is a method that uses the current directory as its base point, whereas the starting-from-the-root-directory method the text describes is absolute path specification.

ここがポイント
  • The root directory refers to the single directory at the highest level (the vertex) of a hierarchical file system. The current directory is a separate concept that refers to the position where you are currently working.
  • An absolute path describes the entire route starting from the root directory, while a relative path describes it starting from the current directory.
用語

Your answers