0
0
Intro to Computingfundamentals~20 mins

File system structure in Intro to Computing - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
File System Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding the root directory

In a typical file system, what is the role of the root directory?

AIt only contains system configuration files.
BIt stores all user documents only.
CIt is a hidden folder that stores temporary files.
DIt is the top-level directory that contains all other files and folders.
Attempts:
2 left
💡 Hint

Think of the root directory as the main folder from which all others branch out.

trace
intermediate
2:00remaining
Tracing file path navigation

Given the file path /home/user/documents/report.txt, which folder is the immediate parent of report.txt?

Adocuments
Buser
Chome
D/
Attempts:
2 left
💡 Hint

Look at the folder just before the file name in the path.

identification
advanced
2:00remaining
Identifying absolute vs relative paths

Which of the following paths is a relative path?

A/etc/hosts
B/home/user/
Cdocuments/report.txt
D/var/log/syslog
Attempts:
2 left
💡 Hint

Relative paths do not start with a slash (/).

Comparison
advanced
2:00remaining
Comparing file system structures

Which statement correctly compares the file system structure of Windows and Unix-like systems?

AWindows uses drive letters like 'C:\' as roots, Unix uses a single root directory '/'.
BWindows uses a single root directory '/', Unix uses multiple drive letters like 'C:\'.
CBoth Windows and Unix use '/' as the root directory.
DUnix uses drive letters like 'C:\', Windows uses a single root directory '/'.
Attempts:
2 left
💡 Hint

Think about how Windows identifies drives compared to Unix systems.

🚀 Application
expert
3:00remaining
Determining file count in nested directories

Consider this file system structure:

 /
 ├── home/
 │   ├── user/
 │   │   ├── file1.txt
 │   │   └── docs/
 │   │       └── file2.txt
 │   └── guest/
 │       └── file3.txt
 └── var/
     └── log/
         └── syslog

How many files are inside the /home/user directory and all its subdirectories?

A3
B2
C1
D4
Attempts:
2 left
💡 Hint

Count all files directly inside /home/user and inside its folders like docs.