Bird
Raised Fist0
Intro to Computingfundamentals~20 mins

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

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Challenge - 5 Problems
🎖️
File System Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding File Paths

Which of the following best describes an absolute file path?

AA path that only contains the file name without any folder information.
BA path that starts from the current directory and uses shortcuts like '..' to move up folders.
CA path that starts from the root directory and specifies the full location of a file.
DA path that uses environment variables to locate files dynamically.
Attempts:
2 left
💡 Hint

Think about how you would tell someone exactly where a file is on your computer starting from the main folder.

trace
intermediate
2:00remaining
File Creation and Directory Structure

Given the following commands executed in order, how many files and folders exist in the directory /home/user at the end?

mkdir projects
cd projects
touch report.txt
mkdir images
touch images/photo.png
cd ..
touch notes.txt
A3 files and 2 folders
B3 files and 1 folder
C2 files and 2 folders
D4 files and 1 folder
Attempts:
2 left
💡 Hint

Trace each command step-by-step and count files and folders inside /home/user.

identification
advanced
2:00remaining
File Permission Interpretation

Consider a file with permissions shown as -rwxr-x--x. Which statement correctly describes who can write to this file?

AOnly the owner can write to the file.
BEveryone can write to the file.
CThe owner and group members can write to the file.
DNo one can write to the file.
Attempts:
2 left
💡 Hint

Look at the 'w' characters in the permission string and remember the order: owner, group, others.

Comparison
advanced
2:00remaining
Comparing File System Types

Which of the following is a key difference between FAT32 and NTFS file systems?

AFAT32 supports file permissions and encryption, NTFS does not.
BNTFS cannot be used on external drives, FAT32 can.
CFAT32 is used only on Linux, NTFS only on Windows.
DNTFS supports larger file sizes and file permissions, FAT32 has size limits and no permissions.
Attempts:
2 left
💡 Hint

Think about file size limits and security features in modern file systems.

🚀 Application
expert
3:00remaining
File Backup Strategy Design

You want to design a backup strategy that keeps daily snapshots of your important files but only stores changes to save space. Which file system feature or tool would best support this?

AUsing a file system with journaling to log changes.
BUsing incremental backups with snapshot support like in ZFS or Btrfs.
CUsing FAT32 file system for compatibility with all devices.
DUsing a RAID 0 array to increase speed.
Attempts:
2 left
💡 Hint

Consider which technology allows saving only changes between backups efficiently.

Practice

(1/5)
1. What is the main purpose of a file system on a computer?
easy
A. To organize and store files and folders for easy access
B. To run programs faster
C. To connect to the internet
D. To display images on the screen

Solution

  1. Step 1: Understand what a file system does

    A file system acts like a digital filing cabinet, organizing files and folders so you can find and store data easily.
  2. Step 2: Match the purpose to the options

    Only To organize and store files and folders for easy access describes organizing and storing files and folders, which is the main role of a file system.
  3. Final Answer:

    To organize and store files and folders for easy access -> Option A
  4. Quick Check:

    File system = Organize files [OK]
Hint: Think of file system as your computer's filing cabinet [OK]
Common Mistakes:
  • Confusing file system with internet or display functions
  • Thinking file system speeds up programs directly
2. Which of the following is the correct way to create a new folder named Documents in a file system?
easy
A. Right-click and select 'New Folder', then name it 'Documents'
B. Delete the existing folder named 'Documents'
C. Open the folder named 'Documents' and rename it
D. Copy files into the folder named 'Documents'

Solution

  1. Step 1: Identify the action to create a folder

    Creating a folder usually involves right-clicking in the file area and selecting 'New Folder'.
  2. Step 2: Confirm the folder name

    After creating, you name the folder 'Documents'. This matches Right-click and select 'New Folder', then name it 'Documents'.
  3. Final Answer:

    Right-click and select 'New Folder', then name it 'Documents' -> Option A
  4. Quick Check:

    Create folder = Right-click + New Folder [OK]
Hint: Creating folders usually starts with right-clicking [OK]
Common Mistakes:
  • Confusing creating with deleting or renaming
  • Trying to copy files instead of making a folder
3. Consider this sequence of actions in a file system:
  1. Create a folder named Photos
  2. Create a file named vacation.jpg inside Photos
  3. Move vacation.jpg to a new folder named Travel
What will be the location of vacation.jpg after these steps?
medium
A. Inside the Photos folder
B. Inside the Travel folder
C. In the root directory (no folder)
D. Deleted from the system

Solution

  1. Step 1: Follow the file creation and movement

    The file vacation.jpg is first created inside Photos, then moved to Travel.
  2. Step 2: Determine final location after move

    Moving a file transfers it from one folder to another, so vacation.jpg ends up inside Travel.
  3. Final Answer:

    Inside the Travel folder -> Option B
  4. Quick Check:

    Move file = New folder location [OK]
Hint: Moving a file changes its folder location [OK]
Common Mistakes:
  • Assuming the file stays in the original folder after moving
  • Thinking the file is deleted after moving
4. A user tries to delete a folder named Work but gets an error saying the folder is not empty. What is the most likely reason?
medium
A. The user does not have permission to create files
B. The folder Work is already deleted
C. The folder Work contains files or subfolders
D. The computer is turned off

Solution

  1. Step 1: Understand folder deletion rules

    Most file systems prevent deleting folders that still contain files or other folders to avoid accidental data loss.
  2. Step 2: Match the error message to the cause

    The error 'folder is not empty' means there are still items inside Work, so it cannot be deleted.
  3. Final Answer:

    The folder Work contains files or subfolders -> Option C
  4. Quick Check:

    Folder not empty = Contains files/subfolders [OK]
Hint: Folders must be empty before deletion [OK]
Common Mistakes:
  • Thinking the folder is already deleted
  • Confusing permissions with deletion errors
5. You want to organize your files by year and month inside your main folder Projects. Which folder structure best represents this organization?
hard
A. April/Projects/2024/ with files inside 2024 folder
B. Projects/April/2024/ with files inside 2024 folder
C. 2024/Projects/April/ with files inside April folder
D. Projects/2024/April/ with files inside April folder

Solution

  1. Step 1: Understand hierarchical folder organization

    Organizing by year then month means the year folder is inside Projects, and month folder is inside the year folder.
  2. Step 2: Check which option matches this hierarchy

    Projects/2024/April/ with files inside April folder shows Projects/2024/April/, which correctly nests month inside year inside main folder.
  3. Final Answer:

    Projects/2024/April/ with files inside April folder -> Option D
  4. Quick Check:

    Year folder inside Projects, month inside year [OK]
Hint: Organize folders from general to specific [OK]
Common Mistakes:
  • Reversing year and month order
  • Placing main folder inside year or month