ITPEC IP April 2020 Question 17
ITPEC IP April 2020 — Question 17 of 100
The correct relative path is ../d2/f2.html. From current directory d1, two periods move up one level to root. The path then descends into sibling directory d2 and selects f2.html.
Answer (c)
Why not others:
- ./d2/f2.html looks for d2 inside d1
- ./f2.html looks for the file directly inside d1
- d2/../f2.html first assumes d2 is below d1 and then returns to d1
Key rule: To reach a sibling directory with a relative path, move to the common parent and then descend into the sibling.
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.