0
0
Operating Systemsknowledge~20 mins

Directory structure (single-level, two-level, tree, acyclic graph) in Operating Systems - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Directory Structure Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Single-Level Directory Structure
Which of the following best describes a single-level directory structure?
AFiles are stored in two separate levels: user and system directories.
BFiles are organized in multiple directories with parent-child relationships.
CDirectories can have multiple parents, forming a graph structure.
DAll files are contained in one directory with no subdirectories.
Attempts:
2 left
💡 Hint
Think about how many directories exist and how files are arranged in the simplest structure.
📋 Factual
intermediate
2:00remaining
Two-Level Directory Structure Characteristics
In a two-level directory structure, what is the main advantage compared to a single-level structure?
AEach user has their own directory, preventing filename conflicts between users.
BIt allows files to be shared among multiple users without duplication.
CIt supports cycles in directory references for flexible file access.
DIt stores all files in a single directory for faster access.
Attempts:
2 left
💡 Hint
Consider how user directories help organize files and avoid confusion.
🔍 Analysis
advanced
2:00remaining
Tree Directory Structure Benefits
Which of the following is NOT a benefit of a tree directory structure?
AIt prevents filename conflicts within the same directory.
BIt allows hierarchical organization of files and directories.
CIt supports multiple parent directories for a single file.
DIt enables easier navigation and management of files.
Attempts:
2 left
💡 Hint
Think about the difference between tree and graph structures regarding parent directories.
Comparison
advanced
2:00remaining
Comparing Tree and Acyclic Graph Directory Structures
What is the key difference between a tree directory structure and an acyclic graph directory structure?
AAn acyclic graph allows directories to have multiple parents, unlike a tree.
BA tree allows cycles, while an acyclic graph does not.
CA tree structure stores files only at the root directory.
DAn acyclic graph does not support hierarchical file organization.
Attempts:
2 left
💡 Hint
Consider how directories can be linked in each structure.
Reasoning
expert
2:00remaining
Determining Directory Structure Type from Description
A system has directories arranged so that each directory can have multiple parent directories, but no cycles exist. Which directory structure does this describe?
ASingle-level directory structure
BAcyclic graph directory structure
CTwo-level directory structure
DTree directory structure
Attempts:
2 left
💡 Hint
Think about what structure allows multiple parents but forbids cycles.