📖 From Operating System • 18. The Linux System • 11 questions available
Practice MCQs for Processes and threads in The Linux System. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.
🔄 Last updated: 2026-07-27
Q1. A program calls fork() and then, in the child process, calls exec() to run /usr/bin/ls. Which sequence correctly describes what happens?
💡 Difficulty: easy | ✅ Correct: A
Q2. Why does UNIX separate process creation (fork) from program execution (exec) instead of providing a single call that does both?
💡 Difficulty: medium | ✅ Correct: B
Q3. Consider the code: pid = fork(); if (pid == 0) execve(\/bin/grep\, args, env); else execve(\/usr/bin/wc\, args2, env); Which program runs in the parent and which in the child?
💡 Difficulty: hard | ✅ Correct: B
⬆️ View all questions in the quiz below