ITPEC IP October 2024 Question 19
ITPEC IP October 2024 — Question 19 of 100
From directory d1, the relative path moves up and then enters sibling directory d2: ../d2/f2.html. The first component .. moves from the current directory d1 up one level to root. The next component d2 moves down into the sibling directory, and f2.html selects the target file there.
Answer (c)
Why not others:
- (a) ./d2/f2.html looks for d2 inside the current d1 directory
- (b) ./f2.html looks for f2.html directly in d1
- (d) d2/../f2.html first looks for a d2 child inside d1 and then returns to d1, so it does not reach the root's d2
Key rule: To reference a file in a sibling directory, move up to the common parent with .., then move down through the sibling name.
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.