← Back to 18. The Linux System

📝 Input and Output system in Linux

📖 From Operating System • 18. The Linux System • 9 questions available

Practice MCQs for Input and Output system in Linux. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.

🔄 Last updated: 2026-07-27

2
Easy Questions
5
Medium Questions
2
Hard Questions

📝 Sample Questions

Q1. What is the primary purpose of the page cache in Linux I/O?

🔹 A. To store metadata about files
🔹 B. To hold entire pages of file contents for faster access
🔹 C. To manage network sockets
🔹 D. To schedule CPU time

💡 Difficulty: easy | ✅ Correct: B

Q2. How does the virtual memory system interact with the page cache when a process reads a file?

🔹 A. The virtual memory system directly writes to disk bypassing the page cache
🔹 B. The page cache updates the process's CPU registers
🔹 C. The page cache stores pages, and the virtual memory system maps those pages into the process's address space
🔹 D. The virtual memory system deletes pages from the cache after each read

💡 Difficulty: medium | ✅ Correct: C

Q3. A program calls mmap() to map a 4 KB file region. Which sequence correctly describes what happens inside the kernel?

🔹 A. Kernel allocates a new page, copies file data into it, updates page tables, and adds an entry to the vm_area_struct tree
🔹 B. Kernel writes directly to the disk block, bypassing the page cache
🔹 C. Kernel creates a socket, sends data to a remote server, and stores result in swap
🔹 D. Kernel deletes existing vm_area_struct entries

💡 Difficulty: hard | ✅ Correct: A

⬆️ View all questions in the quiz below

🔗 Related Topics

📝 Linux History📝 The Linux kernel📝 The Linux system📝 Linux distributions📝 Linux licensing
🚀 Start Quiz 📝 Practice Mode