ITPEC IP October 2023 Question 18

Topic: Software

In the description below concerning a file system, which of the following is an appropriate combination of terms to be inserted into blanks A through C?

When files and directories on a PC are managed hierarchically, the directory at the highest level is called the A directory, and the directory that a user is now manipulating is called the B directory. A notation that uses the B directory as its starting point and shows the location of a file or a directory is called a(n) C path.

OptionABC

Explanation

A: root, B: current, C: relative — the top of the tree is the root directory; the one being worked in is the current directory.

  • •A: the directory at the highest level of the hierarchy, from which every other directory branches, is the root directory
  • •B: the directory the user is working in now is the current (working) directory
  • •C: a path written starting from the current directory, such as ../data/a.txt, is a relative path; a path written from the root, such as /home/data/a.txt, is an absolute path

Answer (d)

Why not others:

  • •(a) — swaps root and current, and a path from the current directory is not absolute
  • •(b) — swaps root and current; C is right
  • •(c) — A and B are right, but an absolute path starts from the root, not the current directory

Key rule: An absolute path starts at the root and points to the same file wherever you are; a relative path starts at the current directory and changes meaning when you move.

Software · AI-written, may contain errors

This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official IP past-paper collection or Report an issue.