← Back to 18. The Linux System

πŸ“ Virtual memory in The Linux System

πŸ“– From Operating System β€’ 18. The Linux System β€’ 40 questions available

Practice MCQs for Virtual memory in The Linux System. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.

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

9
Easy Questions
20
Medium Questions
11
Hard Questions

πŸ“ Sample Questions

Q1. A program calls clone() with only the CLONE_VM flag. Which resource is shared between the parent and child?

πŸ”Ή A. The memory address space
πŸ”Ή B. The file‑system information
πŸ”Ή C. The set of open files
πŸ”Ή D. No resources are shared

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

Q2. Why does storing a process’s virtual‑memory context in a separate substructure allow Linux to treat threads and processes similarly?

πŸ”Ή A. Because the CPU registers are duplicated for each thread
πŸ”Ή B. Because each thread gets its own page table
πŸ”Ή C. Because the memory context can be shared or isolated independently of other resources
πŸ”Ή D. Because Linux copies the entire process image for every thread

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

Q3. Compare fork() with clone() called without any flags. Which statement best describes their differences in resource sharing and performance?

πŸ”Ή A. Both share all resources, but clone() is faster
πŸ”Ή B. fork() shares memory, clone() does not
πŸ”Ή C. fork() creates a completely independent copy, while clone() without flags still creates an independent copy but incurs extra overhead for handling separate subcontexts
πŸ”Ή D. clone() without flags behaves exactly like fork() with no performance difference

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

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