Computer Science · File Systems
Consider a hierarchical file system. If a user attempts to delete a non-empty directory using a standard 'delete directory' command without any recursive options, what is the most likely outcome?
- 1The operating system will return an error indicating that the directory is not empty.✓
- 2The operating system will prompt the user for confirmation to delete each item within the directory.
- 3Only the directory structure will be removed, leaving the files and subdirectories orphaned.
- 4The operating system will automatically delete all files and subdirectories within it.
Correct answer
The operating system will return an error indicating that the directory is not empty.
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on File Systems?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · File Systems