ITPEC IP April 2024 Question 17

Source exam: ITPEC IP April 2024Topic: Software

ITPEC IP April 2024 — Question 17 of 100

The relative path reaches Fn.txt at (4). The current directory marked with an asterisk is the upper-right DIRB, whose path is Root\DIRB\DIRA\DIRB. Process the path ..\..\DIRB\Fn.txt from left to right.

The first .. moves up to DIRA; the second .. moves up again to the first DIRB below Root. From there, DIRB selects its lower child directory named DIRB. The file Fn.txt located directly in that directory is the file marked (4). Repeated directory names do not change the rule: each component is resolved relative to the position reached so far.

Answer (d)

Why not others:
- (1) is in the starting directory

- (2) is directly in the ancestor reached after two upward moves

- (3) is one additional DIRB level below the selected directory

Key rule: Resolve a relative path sequentially: every .. moves to the parent, and every directory name then moves down one matching child level.

AI-generated — may contain errors

The original exam layout is preserved in the image so diagrams, formulas, tables, and code remain accurate.

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.