Unix Processes Management MCQs
Processes Management MCQs : This section focuses on "Processes Management" in unix. These Multiple Choice Questions (MCQ) should be practiced to improve the unix skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. Each process in the system has a unique ________.
A. pidentity
B. processidentity
C. pid
D. proid
View Answer
Ans : C
Explanation: Each process in the system has a unique pid.
2. When you start a process (run a command), how many ways you can run it?
A. 2
B. 3
C. 4
D. 5
View Answer
Ans : A
Explanation: When you start a process (run a command), there are two ways you can run it : Foreground Processes and Background Processes.
3. By default, every process that you start runs in the __________.
A. Foreground
B. Background
C. Both A and B
D. None of the above
View Answer
Ans : A
Explanation: By default, every process that you start runs in the foreground.
4. A process is an instance of _______ program.
A. waiting
B. executing
C. terminated
D. halted
View Answer
Ans : B
Explanation: A process is simply an instance of a running program. A process passes through many states throughout its life cycle i.e. when it is born until it is executed. After the process has completed it is said to be terminated.
5. Which data structure is used to store information about a process?
A. process control block
B. stack
C. queue
D. program control block
View Answer
Ans : A
Explanation: A process control block is a data structure which is used for storing information about a process.
6. Which of the following command doesn't create a process?
A. pwd
B. fork
C. cd
D. Both A and C
View Answer
Ans : D
Explanation: When we run a command, a process representing the command is started by the shell process but all commands don't set up processes. Built-in commands of the shell like pwd, cd etc do not create processes.
7. ____ command will bring the background jobs to the foreground.
A. bg
B. gd
C. fg
D. kill
View Answer
Ans : C
Explanation: We can use the fg command to bring any of the background jobs to the foreground.
8. Which command is used to list the status of jobs?
A. JOBS
B. jobs
C. fg
D. bg
View Answer
Ans : B
Explanation: We can use the jobs command to list the status of the jobs.
9. What is a daemon?
A. process whose parent has died
B. process who has completed its execution but still has an entry in the process table
C. process which is running infinitely
D. process which runs automatically without any user interaction
View Answer
Ans : D
Explanation: Process which runs automatically without any user interaction is known as daemon.
10. What is cron?
A. a simple process
B. an orphan process
C. a daemon
D. a zombie process
View Answer
Ans : C
Explanation: cron is a daemon which runs on UNIX systems.
Discussion