🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Processes and Threads: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. A process waiting for a disk read is in which state?
  2. Q2. What does the PCB contain?
  3. Q3. How many processes exist after a program calls fork() three times in a row?
  4. Q4. Which do threads of the same process NOT share?
  5. Q5. What happens during a context switch?
  6. Q6. What does fork() return in the child process?
  7. Q7. A child process has finished, but its parent has not called wait() to collect its exit status. What is the child called?
  8. Q8. A running process uses up its time slice. Which state does it move to?
  9. Q9. Which part of a process's memory holds objects allocated while the program runs (for example with malloc)?
  10. Q10. Why is switching between two threads of the same process cheaper than switching between two processes?