Choose Language

Select your preferred reading language
🇬🇧
English
🇮🇳
हिन्दी
Full View
NTPC Graduate Tier 1 2025 Shift-2 📅 06 Jun, 2025

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?

A
The operating system will automatically delete all files and subdirectories within it.
B
The operating system will prompt the user for confirmation to delete each item within the directory.
C
Only the directory structure will be removed, leaving the files and subdirectories orphaned.
D
The operating system will return an error indicating that the directory is not empty.
Result Summary
Logo

APEDIA

NTPC Graduate Tier 1
2025 • 06 Jun, 2025 • Shift-2
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?
Correct Answer
The operating system will return an error indicating that the directory is not empty.
Command Protocol Mechanism: In standard command-line interfaces (like POSIX systems such as Linux/Unix), commands intended solely to remove directories (e.g., '......
💡 Analysis & Explanation
Command Protocol Mechanism
In standard command-line interfaces (like POSIX systems such as Linux/Unix), commands intended solely to remove directories (e.g., 'rmdir') have built-in safety constraints.
Safety Feature
This design deliberately prevents accidental mass deletion of embedded user data.
Execution Result
Unless a forced recursive flag (like '-r') is appended, the system will block the action to protect the internal contents.
Conclusion
An error is thrown explicitly stating 'Directory not empty'.