ITPEC IP April 2026 Question 20

Source exam: ITPEC IP April 2026Topic: Software

ITPEC IP April 2026 — Question 20 of 100

Move up once, then enter d2 — the resulting relative path is ../d2/f2.html.

f1.html is in /d1, while f2.html is in /d2. From the current directory d1, .. moves one level up to the root. The remaining path d2/f2.html descends into d2 and selects the file, giving ../d2/f2.html.

Answer (c)

Why not others:
- (a) ./d2/f2.html searches for d2 inside the current d1 directory

- (b) ./f2.html searches for f2.html directly inside d1

- (d) d2/../f2.html first assumes d2 is inside d1 and then returns to d1, so it still does not reach the sibling file

Key rule: To reach a sibling directory with a relative path, go up once with .., then descend through the sibling's 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.