Timedora
Free Practice Quiz Question List

Filesystem Paths and Navigation Online Quiz Questions

Use this free practice quiz with 20 questions to review Filesystem Paths and Navigation, test your knowledge, and prepare for your next test or exam.

20 questions
01
Choose one
1 point

You are in /home/lee/projects. Which file does the relative path ../notes.txt name?

  1. A

    /home/lee/projects/notes.txt

  2. B

    /home/lee/notes.txt

  3. C

    /home/notes.txt

  4. D

    /notes.txt

02
Choose all
1 point

Select all statements that correctly describe paths and the special components . and ...

  1. A

    An absolute path starts at the filesystem root.

  2. B

    A relative path starts from the current working directory.

  3. C

    In a path, .. refers to the current directory's parent.

  4. D

    In a path, . refers to the current directory's parent.

  5. E

    A relative path always starts at the filesystem root.

03
True or false
1 point

True or false: On a Unix-like system, /home/lee/notes.txt is an absolute path because it starts at /.

  1. A

    True

  2. B

    False

04
Written response
1 point

What does the path component .. mean? Enter the directory relationship it represents.

05
Fill in the blank
1 point

In a path, . means and .. means .

06
Open ended
1 point

Explain the difference between an absolute path and a relative path. Give an example of each and state what each path starts from.

07
Choose one
1 point

If the current working directory is /home/lee, what does the relative path notes.txt refer to?

  1. A

    /notes.txt

  2. B

    /home/notes.txt

  3. C

    /home/lee/notes.txt

  4. D

    /home/lee/notes.txt/notes.txt

08
Choose all
1 point

Select all statements that correctly interpret paths or describe when paths with spaces should be quoted.

  1. A

    /home/lee/notes.txt is an absolute path on a Unix-like system.

  2. B

    From /home/lee, the relative path notes.txt refers to /home/lee/notes.txt.

  3. C

    Every path containing spaces must always be quoted, regardless of how the command interpreter treats spaces.

  4. D

    When spaces would otherwise be treated as separators, a path such as Project Files should be quoted in the command.

09
True or false
1 point

True or false: The path component .. means the current directory.

  1. A

    True

  2. B

    False

10
Written response
1 point

If the current working directory is /home/lee, what absolute path does the relative path notes.txt refer to?

11
Fill in the blank
1 point

In a Unix-like path, means the parent directory.

12
Choose one
1 point

What makes a path absolute?

  1. A

    It starts from the current working directory.

  2. B

    It starts at the filesystem's root.

  3. C

    It names only a directory, not a file.

  4. D

    It must contain a space.

13
True or false
1 point

A relative path starts from the current working directory.

  1. A

    True

  2. B

    False

14
Written response
1 point

If the current working directory is /home/lee, what complete path does the relative path notes.txt refer to?

15
Choose one
1 point

Which is an example of an absolute path on Windows?

  1. A

    notes.txt

  2. B

    Project Files

  3. C

    C:\Users\Lee\notes.txt

  4. D

    ..\notes.txt

16
True or false
1 point

Windows paths commonly use / as the filesystem root in the same way Unix-like paths do.

  1. A

    True

  2. B

    False

17
Written response
1 point

In a path, what directory does . refer to?

18
Choose one
1 point

When should you quote a path that contains spaces?

  1. A

    Quote the path when the command interpreter would otherwise treat its spaces as separators.

  2. B

    Replace every space with a backslash.

  3. C

    Remove the spaces from the directory name.

  4. D

    Use .. in place of the directory name.

19
Written response
1 point

Which Unix-like command prints the present working directory?

20
Choose one
1 point

If the current working directory is /home/lee, what does the relative path drafts/plan.txt refer to?

  1. A

    /drafts/plan.txt

  2. B

    /home/drafts/plan.txt

  3. C

    drafts/plan.txt

  4. D

    /home/lee/drafts/plan.txt