0
0
Operating Systemsknowledge~5 mins

Directory structure (single-level, two-level, tree, acyclic graph) in Operating Systems - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a single-level directory structure?
A single-level directory structure has all files stored in one directory. It is simple but can cause name conflicts because all files share the same directory.
Click to reveal answer
beginner
How does a two-level directory structure organize files?
A two-level directory structure has a separate directory for each user. Each user's files are stored in their own directory, avoiding name conflicts between users.
Click to reveal answer
intermediate
Describe the tree directory structure.
A tree directory structure organizes files in a hierarchy like a tree. It has a root directory and subdirectories, allowing files to be grouped logically and avoiding name conflicts.
Click to reveal answer
advanced
What is an acyclic graph directory structure?
An acyclic graph directory structure allows directories to share subdirectories or files using links, but it does not allow cycles (loops). This helps save space and organize files flexibly.
Click to reveal answer
intermediate
Why are tree and acyclic graph directory structures preferred over single-level structures?
Tree and acyclic graph structures help organize files better, avoid name conflicts, and allow sharing of files or directories. Single-level structures are simple but limited and can cause problems as the number of files grows.
Click to reveal answer
Which directory structure stores all files in one directory?
ATree
BTwo-level
CSingle-level
DAcyclic graph
What is the main advantage of a two-level directory structure?
AAvoids file name conflicts between users
BSupports cycles in directory links
CAllows sharing files between users
DStores all files in one directory
Which directory structure resembles a tree with a root and branches?
ASingle-level
BTree
CTwo-level
DAcyclic graph
What does 'acyclic' mean in an acyclic graph directory structure?
AIt does not allow cycles or loops
BIt has only two levels
CIt stores files in one directory
DIt allows cycles or loops
Which directory structure allows sharing of subdirectories without creating loops?
ASingle-level
BTwo-level
CTree
DAcyclic graph
Explain the differences between single-level, two-level, tree, and acyclic graph directory structures.
Think about how files are organized and how name conflicts are avoided.
You got /4 concepts.
    Why might an operating system choose a tree or acyclic graph directory structure over simpler ones?
    Consider the benefits of hierarchy and sharing.
    You got /4 concepts.