← Back to 11. File System Interface

πŸ“ Single level directory File

πŸ“– From Operating System β€’ 11. File System Interface β€’ 14 questions available

Practice MCQs for Single level directory File. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.

πŸ”„ Last updated: 2026-07-26

1
Easy Questions
6
Medium Questions
7
Hard Questions

πŸ“ Sample Questions

Q1. Which extension is used for a compiled Java class file?

πŸ”Ή A. .java
πŸ”Ή B. .class
πŸ”Ή C. .jar
πŸ”Ή D. .py

πŸ’‘ Difficulty: easy | βœ… Correct: B

Q2. A user attempts to run a script named \backup.sh\ on a Windows machine. Which outcome is most likely?

πŸ”Ή A. The script runs without issues
πŸ”Ή B. Windows prompts for a program to open the file
πŸ”Ή C. The script fails because .sh is not recognized as an executable extension on Windows
πŸ”Ή D. Windows automatically converts .sh to .exe and runs it

πŸ’‘ Difficulty: medium | βœ… Correct: C

Q3. Why do many operating systems rely on file extensions rather than inspecting file contents to identify file types?

πŸ”Ή A. Because inspecting contents is faster
πŸ”Ή B. Because extensions provide a simple, legacy‑compatible method
πŸ”Ή C. Because extensions are required by the hardware
πŸ”Ή D. Because content inspection is illegal in some jurisdictions

πŸ’‘ Difficulty: hard | βœ… Correct: B

⬆️ View all questions in the quiz below

πŸ”— Related Topics

πŸ“ File attributes conceptsπŸ“ File operations conceptsπŸ“ How many File types in file systemπŸ“ File structure in file systemπŸ“ Internal file structure
πŸš€ Start Quiz πŸ“ Practice Mode