← Back to 11. File System Interface

πŸ“ Two level directory File

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

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

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

5
Easy Questions
14
Medium Questions
8
Hard Questions

πŸ“ Sample Questions

Q1. Which file extension indicates a shell script that can be executed directly?

πŸ”Ή A. .exe
πŸ”Ή B. .docx
πŸ”Ή C. .sh
πŸ”Ή D. .pdf

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

Q2. A developer has source code in a file named Main.java and a compiled class file Main.class. Which file must be compiled before it can be executed?

πŸ”Ή A. Main.java
πŸ”Ή B. Main.class
πŸ”Ή C. Main.exe
πŸ”Ή D. Main.txt

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

Q3. In a two‑level directory system where each directory name may contain up to 8 characters, and the full path includes the top‑level directory, a slash, and the subdirectory, what is the maximum number of characters the path can contain (excluding any file name)?

πŸ”Ή A. \(8+1+8=17\)
πŸ”Ή B. \(8+2+8=18\)
πŸ”Ή C. \(8+1+8+1=19\)
πŸ”Ή D. \(8+8=16\)

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

⬆️ 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