Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 8 MCQs Process Management

CSE105 — Creative Engineering Workshop 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 Concept of Processes Easy

    What is a process in an operating system?

  2. Question 2 of 60 Concept of Processes Easy

    Which of the following best describes the difference between a program and a process?

  3. Question 3 of 60 Process ID (PID) Easy

    What does PID stand for?

  4. Question 4 of 60 Process ID (PID) Easy

    Which statement about a Process ID (PID) is correct?

  5. Question 5 of 60 Process ID (PID) Easy

    In Linux, which process is traditionally assigned the PID of 1?

  6. Question 6 of 60 ps Easy

    What is the primary purpose of the ps command?

  7. Question 7 of 60 ps Easy

    Which command displays a snapshot of processes at the moment it is run, rather than updating continuously?

  8. Question 8 of 60 ps Easy

    Which ps option combination is commonly used to display all processes on the system with full details?

  9. Question 9 of 60 top Easy

    What does the top command do?

  10. Question 10 of 60 top Easy

    Which key is commonly pressed to quit the top command?

  11. Question 11 of 60 top Easy

    The top command is mainly used to monitor which of the following?

  12. Question 12 of 60 jobs Easy

    What does the jobs command display?

  13. Question 13 of 60 jobs Easy

    In the shell, a job typically refers to which of the following?

  14. Question 14 of 60 bg Easy

    What does the bg command do?

  15. Question 15 of 60 bg Easy

    Which key combination is typically used to suspend a foreground job before sending it to the background with bg?

  16. Question 16 of 60 fg Easy

    What is the purpose of the fg command?

  17. Question 17 of 60 fg Easy

    If you have a job running in the background and want to interact with it directly in the terminal, which command should you use?

  18. Question 18 of 60 kill Easy

    What is the main purpose of the kill command?

  19. Question 19 of 60 kill Easy

    The kill command identifies which process to signal by using its __.

  20. Question 20 of 60 pkill Easy

    How does pkill differ from kill?

  21. Question 21 of 60 Concept of Processes Medium

    A running program creates a child process using fork(). Which statement best describes the relationship between the two processes immediately after fork() returns?

  22. Question 22 of 60 Concept of Processes Medium

    A process that has finished execution but still has an entry in the process table because its parent has not read its exit status is called a:

  23. Question 23 of 60 Concept of Processes Medium

    A child process continues running after its parent terminates. Which process typically adopts this orphaned child on a modern Linux system?

  24. Question 24 of 60 Process ID (PID) Medium

    Which command displays the PID of the currently running shell?

  25. Question 25 of 60 Process ID (PID) Medium

    After launching a command in the background with &, which shell variable holds the PID of that most recently backgrounded process?

  26. Question 26 of 60 Process ID (PID) Medium

    On a standard Linux system, which process always has a PID of 1?

  27. Question 27 of 60 ps Medium

    Which ps command lists every process on the system with detailed information in the BSD-style format?

  28. Question 28 of 60 ps Medium

    You want to find the PID of a process named nginx using ps. Which pipeline achieves this?

  29. Question 29 of 60 ps Medium

    In the output of ps -ef, which column shows the parent process ID of each listed process?

  30. Question 30 of 60 top Medium

    While top is running interactively, which key sorts the process list by memory usage?

  31. Question 31 of 60 top Medium

    The load average shown in top reports three numbers. What do these three values represent?

  32. Question 32 of 60 top Medium

    In top, a process shows a state of R in the status column. What does this indicate?

  33. Question 33 of 60 jobs Medium

    You run jobs and see [2]+ Stopped vim file.txt. What does the + symbol next to the job number indicate?

  34. Question 34 of 60 jobs Medium

    Which command lists the active jobs of the current shell along with their PIDs?

  35. Question 35 of 60 bg Medium

    You pressed Ctrl+Z to suspend a long-running command. Which command resumes it in the background so the terminal is freed?

  36. Question 36 of 60 bg Medium

    You have two stopped jobs [1] and [2]. Which command resumes job 1 specifically in the background?

  37. Question 37 of 60 fg Medium

    A command is running in the background and you want to bring it back to the foreground to interact with it. Which command does this?

  38. Question 38 of 60 kill Medium

    A process ignores the default kill signal. Which command forcibly and unconditionally terminates the process with PID 4521?

  39. Question 39 of 60 kill Medium

    Which signal number does the kill command send by default when no signal is specified?

  40. Question 40 of 60 pkill Medium

    Which command terminates all running processes whose name matches firefox in a single step?

  41. Question 41 of 60 kill Hard

    A process ignores SIGTERM because it has installed a custom handler that only logs the signal. Which signal number should you send to force termination that the process cannot catch, block, or ignore?

  42. Question 42 of 60 Concept of Processes Hard

    A process calls fork() which returns 0 in one context and a positive integer in another. What do these two return values indicate respectively?

  43. Question 43 of 60 Process ID (PID) Hard

    A parent process terminates before its child completes. Which process becomes the new parent of the orphaned child, and what is that process's typical PID?

  44. Question 44 of 60 jobs Hard

    You run sleep 100 &, then sleep 200 &, then sleep 300 &. Running jobs shows job [3] marked with a +. What does the + sign specifically denote?

  45. Question 45 of 60 pkill Hard

    You run pkill -9 -f "python.*server". Which processes are targeted for SIGKILL?

  46. Question 46 of 60 bg Hard

    A foreground process is stopped with Ctrl+Z. You then run bg. What is the sequence of signals delivered that resumes the job in the background?

  47. Question 47 of 60 top Hard

    In top, a process shows %CPU of 150.0 on a 4-core system. How is this value possible and what does it indicate?

  48. Question 48 of 60 ps Hard

    Which ps command reliably lists processes sorted by memory usage in descending order, showing the top memory consumers?

  49. Question 49 of 60 kill Hard

    A defunct (zombie) process appears in ps output. Why does kill -9 <PID> fail to remove it?

  50. Question 50 of 60 fg Hard

    You have jobs [1], [2], and [3] in the background. Which command brings job 2 specifically to the foreground?

  51. Question 51 of 60 pkill Hard

    What is the key behavioral difference between pkill firefox and killall firefox?

  52. Question 52 of 60 Concept of Processes Hard

    A process in the D state shown by ps cannot be terminated even with SIGKILL. What does the D state represent?

  53. Question 53 of 60 Process ID (PID) Hard

    In a shell, $$ expands to 4821 and $! expands to 4835. What do these two variables represent?

  54. Question 54 of 60 top Hard

    In top, the summary line shows %wa (iowait) at 45% while %us and %sy are low. What does this most likely indicate?

  55. Question 55 of 60 ps Hard

    What does the STAT column value Ss mean in the output of ps aux?

  56. Question 56 of 60 kill Hard

    Running kill -0 <PID> produces no output and returns exit status 0. What is the purpose of signal 0?

  57. Question 57 of 60 bg Hard

    A backgrounded job (via bg) attempts to read from the terminal (stdin). What happens to the job?

  58. Question 58 of 60 pkill Hard

    You want to send SIGTERM only to processes named nginx owned by user www-data. Which command is correct?

  59. Question 59 of 60 jobs Hard

    After running jobs -l, what additional information is shown compared to plain jobs?

  60. Question 60 of 60 Concept of Processes Hard

    A daemon process is created by double-forking. Why is the second fork() performed after the first child calls setsid()?

That's unit 8

Answer a few questions and your score shows up here.