Linux Questions & Answers – Process Management

This set of Linux / Unix questions and answers focuses on Linux administration on Process Management and related commands. It will be useful for anyone learning Linux Basics, Essentials and/or Administration.

1. If a program executing in background attempts to read from STDIN
a) It is terminated
b) It’s execution is suspended
c) STDIN is made available to it
d) None of the mentioned
View Answer

Answer: b
Explanation: None.

2. Which command is used to bring the background process to forground?
a) bg
b) fg
c) background
d) forground
View Answer

Answer: b
Explanation: None.

3. How to run a process in the background?
a) &
b) *
c) ?
d) |
View Answer

Answer: a
Explanation: None.
advertisement
advertisement

4. Which command can be executed by a user who is already logged into the system, in order to change to the root user? (type the command without any parameters)
a) su
b) root
c) chroot
d) user
View Answer

Answer: a
Explanation: None.

5. Process information in the current shell can be obtained by using
a) kill
b) bg
c) fg
d) ps
View Answer

Answer: d
Explanation: None.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. Which signal is sent by the command “kill -9 ” ?
a) INT
b) TERM
c) KILL
d) STOP
View Answer

Answer: c
Explanation: None.

7. Which of the following values for STAT column of ps command is not true:
a) status R means running
b) Status S means sleeping
c) Status E means exited
d) Status Z means zombie
View Answer

Answer: c
Explanation: None.
advertisement

8. When a child process exits before the parent process exits, which of the following is true:
a) the child process becomes defunct
b) the parent process becomes defunct
c) if the parent process does not handle SIGCHLD, the child process becomes a zombie
d) none of the mentioned
View Answer

Answer: c
Explanation: None.

9. A user issues the following command sequence:

advertisement
    $ a.out &
    $ bash
    $ a.out &

If the user kills the bash process, then which of the following is true?
a) the second a.out process is also terminated
b) the second a.out process becomes a defunct process
c) the first a.out process becomes a zombie process
d) init process becomes parent of second a.out process
View Answer

Answer: d
Explanation: None.

10. The signal sent to a process when the Ctrl-C key is pressed is
a) KILL
b) TSTP
c) TERM
d) INT
View Answer

Answer: d
Explanation: None.

11. we can change the priority of a running process using
a) nice
b) renice
c) priority cannot be changed for a running process
d) only superuser can change the priority
View Answer

Answer: b
Explanation: None.

12. nohup is used to
a) automatically hang up the process after logout
b) continue the process after logout
c) create backgroung process
d) manually hang up the process after logout
View Answer

Answer: b
Explanation: None.

Sanfoundry Global Education & Learning Series – Linux Administration & Programming.

Here’s the list of Best Books in Linux Commands & Shell Programming.
Here’s the list of Best Books in Linux Kernel, Device-Drivers & System Programming.

To practice all questions on Linux Administration & Programming, here is complete set of 1000+ Multiple Choice Questions and Answers on Linux.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.