0
0
Intro to Computingfundamentals~20 mins

Folder hierarchy and paths in Intro to Computing - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Folder Path Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Absolute vs Relative Paths

Which of the following best describes the difference between an absolute path and a relative path in a folder hierarchy?

AAn absolute path uses only folder names, while a relative path uses folder numbers.
BAn absolute path changes depending on the current folder, while a relative path always starts from the root folder.
CAn absolute path is shorter than a relative path.
DAn absolute path starts from the root folder, while a relative path starts from the current folder.
Attempts:
2 left
💡 Hint

Think about how you find a file starting from the main folder versus starting from where you are now.

trace
intermediate
2:00remaining
Tracing Folder Navigation Using Relative Paths

You are currently in the folder /home/user/documents. What folder will you reach if you use the relative path ../pictures/vacation?

A/home/user/pictures/vacation
B/home/user/documents/pictures/vacation
C/home/pictures/vacation
D/pictures/vacation
Attempts:
2 left
💡 Hint

The .. means go up one folder from your current location.

identification
advanced
2:00remaining
Identifying the Correct Folder Path

Given the folder structure below, which path correctly points to the file report.txt located inside the 2024 folder?

/root
  ├── projects
  │    ├── 2023
  │    └── 2024
  │         └── report.txt
  └── archives
A/root/projects/2024/report.txt
B/root/archives/2024/report.txt
C/root/projects/2023/report.txt
D/root/2024/report.txt
Attempts:
2 left
💡 Hint

Look carefully at the folder tree and follow the path to report.txt.

Comparison
advanced
2:00remaining
Comparing Folder Paths in Different Operating Systems

Which statement correctly compares folder paths in Windows and Unix-like systems?

AWindows uses colons (:) to separate folders, while Unix-like systems use backslashes (\).
BWindows and Unix-like systems both use forward slashes (/) to separate folders.
CWindows uses backslashes (\) to separate folders, while Unix-like systems use forward slashes (/).
DWindows uses forward slashes (/), and Unix-like systems use backslashes (\).
Attempts:
2 left
💡 Hint

Think about how you type folder paths in Windows Explorer vs a Linux terminal.

🚀 Application
expert
2:00remaining
Determining the Number of Folder Levels in a Path

How many folder levels are in the following absolute path?

/var/www/html/projects/2024/site/index.html
A8
B6
C5
D7
Attempts:
2 left
💡 Hint

Count each folder name between slashes, excluding the file name.