InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 51. |
There are ___ distinct phases of a process.(a) 2(b) 5(c) 4(d) 3I have been asked this question during an internship interview.Origin of the question is Process Status:ps Command and Phases of a Process topic in division The Process of Unix |
|
Answer» Correct ANSWER is (d) 3 |
|
| 52. |
The -a option when used with ps command lists processes of all users but doesn’t display the system processes.(a) True(b) FalseI got this question in an interview for job.The question is from Process Status:ps Command and Phases of a Process in section The Process of Unix |
|
Answer» CORRECT answer is (a) True Easiest explanation: The -a (all) OPTION lists PROCESSES of all users but doesn’t DISPLAY the system processes. For EXAMPLE, |
|
| 53. |
Which option is used by the system administrator for displaying processes of a user?(a) -f(b) -u(c) -a(d) -eThe question was asked in final exam.The origin of the question is Process Status:ps Command and Phases of a Process in division The Process of Unix |
|
Answer» The correct answer is (B) -u |
|
| 54. |
Which option is used by ps command to get a detailed listing of process attributes?(a) -u(b) -f(c) -l(d) -xThe question was asked in an internship interview.I would like to ask this question from Process Status:ps Command and Phases of a Process topic in division The Process of Unix |
|
Answer» CORRECT choice is (b) -f For explanation: ps is a highly VARIANT command; its actual output varies across different flavours. To GET a detailed listing of process attributes ALONG with PPID and owner (UID), we have to use the -f option with ps command. For EXAMPLE, |
|
| 55. |
Which of the following attribute is not shown by ps command?(a) PID(b) PPID(c) tty(d) sizeThe question was posed to me during a job interview.This interesting question is from Process Status:ps Command and Phases of a Process topic in chapter The Process of Unix |
|
Answer» Right OPTION is (d) size |
|
| 56. |
Which command shows some attributes of a process?(a) pid(b) $$(c) ps(d) HOMEThe question was posed to me in final exam.The query is from Process Status:ps Command and Phases of a Process topic in division The Process of Unix |
|
Answer» Right answer is (c) PS |
|
| 57. |
Which of the following command doesn’t create a process?(a) pwd(b) fork(c) cd(d) pwd and cdI got this question in an interview for internship.My question is taken from Process Basics topic in portion The Process of Unix |
|
Answer» Correct answer is (d) pwd and cd |
|
| 58. |
Which process is immediately set up by the kernel when we log on to a UNIX system?(a) shell(b) parent(c) shell(d) bashI got this question in an interview for job.I'm obligated to ask this question of Process Basics in section The Process of Unix |
|
Answer» The CORRECT choice is (a) shell |
|
| 59. |
What is the PID of the first process that is set up when the system is booted?(a) 1(b) 0(c) any(d) 2I had been asked this question during an interview.This interesting question is from Process Basics in portion The Process of Unix |
|
Answer» Correct ANSWER is (B) 0 |
|
| 60. |
The PID of our login shell doesn’t change.(a) True(b) FalseThis question was posed to me in homework.This question is from Process Basics topic in chapter The Process of Unix |
|
Answer» Right option is (b) False |
|
| 61. |
To know the PID of your current shell, which command will be used?(a) echo $$(b) echo $(c) $SHELL(d) $PATHThe question was posed to me in an international level competition.The query is from Process Basics in portion The Process of Unix |
|
Answer» The CORRECT ANSWER is (a) ECHO $$ |
|
| 62. |
Each process is identified by a unique integer called ______(a) PID(b) PPID(c) TID(d) PTIDThis question was posed to me during an interview for a job.This intriguing question originated from Process Basics in section The Process of Unix |
|
Answer» CORRECT option is (a) PID To explain I WOULD say: Each PROCESS is UNIQUELY identified by a unique integer called as the Process ID (PID) which is allotted by the kernel when the process is born. This PID is used for CONTROLLING the process of killing it. |
|
| 63. |
Some attributes of every process are maintained by the kernel in memory in a separate structure called the ______(a) pcb(b) task control block(c) process table(d) task tableThis question was addressed to me in semester exam.This intriguing question originated from Process Basics topic in chapter The Process of Unix |
|
Answer» Correct option is (c) PROCESS table |
|
| 64. |
The parent id of a child is called ______(a) PID(b) PPID(c) TID(d) PTIDThis question was posed to me during an online exam.The origin of the question is Process Basics in chapter The Process of Unix |
|
Answer» The correct option is (b) PPID |
|
| 65. |
Every process has a parent process.(a) True(b) FalseI have been asked this question during an interview.This interesting question is from Process Basics in portion The Process of Unix |
|
Answer» RIGHT option is (a) True To explain: Just like a file has a parent, EVERY process also has the same.The parent is also a process and the process born from it is CALLED child process. For example, when we run the cat command a process representing the cat command is STARTED by the SHELL process. The process started by the shell is called child process and the shell (which could be sh, ksh or any other) is the parent process. |
|
| 66. |
Process table and process control block store same attributes of a process.(a) True(b) FalseThe question was posed to me by my college director while I was bunking the class.Enquiry is from Process Basics topic in section The Process of Unix |
|
Answer» Correct option is (b) False |
|
| 67. |
A process is an instance of_______ program.(a) waiting(b) executing(c) terminated(d) haltedI had been asked this question in an online quiz.The origin of the question is Process Basics topic in division The Process of Unix |
|
Answer» The correct choice is (B) executing |
|
| 68. |
A process is said to be ____ when it starts its execution.(a) born(b) die(c) waiting(d) terminatedThe question was posed to me at a job interview.This key question is from Process Basics topic in chapter The Process of Unix |
|
Answer» Correct answer is (a) BORN |
|
| 69. |
Programs and process are synonymous.(a) True(b) FalseI had been asked this question during an interview for a job.The origin of the question is Process Basics in portion The Process of Unix |
|
Answer» Right choice is (b) False |
|
| 70. |
Which data structure is used to store information about a process?(a) process control block (pcb)(b) array(c) queue(d) program control blockI got this question during an internship interview.This key question is from Process Basics in chapter The Process of Unix |
|
Answer» Correct option is (a) process control BLOCK (pcb) |
|
| 71. |
When the process has completed its execution it is called ______(a) born(b) terminated(c) waiting(d) exitThis question was posed to me by my school teacher while I was bunking the class.The above asked question is from Process Basics in chapter The Process of Unix |
|
Answer» CORRECT option is (d) exit Easy EXPLANATION: A process is said to be died or terminated when it has completed its execution either normally or ABNORMALLY. As long as the process is running it is in an ACTIVE state but as soon as the process has completed its execution, the process is said to DIE. |
|