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.
| 1. |
To find out how efficiently a program a used the system resources, which command is used?(a) sys(b) time(c) crontab(d) daemonThe question was asked in an international level competition.My query is from Process Management in section The Process of Unix |
|
Answer» The correct answer is (B) time |
|
| 2. |
The cron tab is a table having a list of commands that are scheduled to be run at regular intervals.(a) True(b) FalseThis question was posed to me in an interview for job.The above asked question is from Process Management topic in section The Process of Unix |
|
Answer» The correct option is (a) True |
|
| 3. |
Which of the following command will remove the current crontab?(a) crontab -p(b) crontab -l(c) crontab -e(d) crontab -rI have been asked this question in final exam.The query is from Process Management in portion The Process of Unix |
|
Answer» Right answer is (d) crontab -r |
|
| 4. |
What is cron?(a) a simple process(b) an orphan process(c) a daemon(d) a zombie processI had been asked this question in an international level competition.Enquiry is from Process Management topic in division The Process of Unix |
|
Answer» Right choice is (c) a daemon |
|
| 5. |
Jobs scheduled using batch command can be removed using ___ option.(a) -a(b) -d(c) -f(d) -rI have been asked this question in an internship interview.My question is from Process Management in chapter The Process of Unix |
|
Answer» CORRECT option is (d) -r For explanation: Any job scheduled USING BATCH goes to a special at QUEUE. To remove a job from this queue we can use the -r option with at command. For example, |
|
| 6. |
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 interactionThe question was posed to me in an online quiz.Enquiry is from Process Management topic in chapter The Process of Unix |
|
Answer» Right option is (d) process which runs automatically WITHOUT any user INTERACTION |
|
| 7. |
Jobs scheduled using batch command goes to a special at queue.(a) True(b) FalseThis question was addressed to me in exam.My question is taken from Process Management in section The Process of Unix |
|
Answer» Right CHOICE is (a) True |
|
| 8. |
Which command permits to schedule jobs for later execution, as soon as the system load permits?(a) at(b) %(c) batch(d) cronThe question was asked in homework.The question is from Process Management in section The Process of Unix |
|
Answer» CORRECT option is (c) batch To elaborate: The batch command also allows us to SCHEDULE jobs for LATER execution but UNLIKE at command, it executes the jobs as soon as the system load permits. For EXAMPLE, |
|
| 9. |
We cannot find out the name of the program scheduled using at command.(a) True(b) FalseI have been asked this question during an interview for a job.This is a very interesting question from Process Management topic in chapter The Process of Unix |
|
Answer» The correct option is (a) True |
|
| 10. |
To remove a job from the queue, which option is used with at command?(a) -r(b) -l(c) -e(d) -tThis question was posed to me by my college director while I was bunking the class.My question is taken from Process Management topic in chapter The Process of Unix |
|
Answer» The correct option is (a) -r |
|
| 11. |
Which one of the following forms used with at command is invalid?(a) at noon(b) at now +2 years(c) at3:07 + 1 day(d) at morningI had been asked this question during an interview.This is a very interesting question from Process Management topic in division The Process of Unix |
|
Answer» The CORRECT CHOICE is (d) at morning |
|
| 12. |
We can list the jobs queued using at command by using ____ option.(a) -p(b) -v(c) -l(d) -rI got this question during an online exam.The origin of the question is Process Management in division The Process of Unix |
|
Answer» RIGHT choice is (c) -l For explanation: Jobs scheduled using at command are sent to a QUEUE for later EXECUTION. To LIST the jobs in this queue we can use the -l OPTION with at command. This command will list each of the scheduled jobs in the queue in this format. |
|
| 13. |
Which of the following keyword is not supported by at command?(a) now(b) noon(c) tomorrow(d) eveningThis question was addressed to me in an online quiz.The question is from Process Management in portion The Process of Unix |
|
Answer» Correct answer is (d) evening |
|
| 14. |
We can schedule a job to run at a specified time of day using _______ command.(a) batch(b) at(c) cron(d) jobsThe question was asked in an interview for internship.My question is from Process Management topic in portion The Process of Unix |
|
Answer» Right option is (B) at |
|
| 15. |
We can use the _____ symbol with at command to redirect our output to a specified file.(a) >(b) >(d) %I got this question during an online interview.I'm obligated to ask this question of Process Management in chapter The Process of Unix |
|
Answer» Right choice is (a) > |
|
| 16. |
Which command is used to list the status of jobs?(a) fg(b) JOBS(c) jobs(d) fgI had been asked this question in semester exam.Asked question is from Process Management topic in section The Process of Unix |
|
Answer» Right CHOICE is (C) jobs |
|
| 17. |
POSIX shell provides job control facilities like bg or fg.(a) True(b) FalseThe question was posed to me in semester exam.I'm obligated to ask this question of Process Management topic in section The Process of Unix |
|
Answer» The correct answer is (b) False |
|
| 18. |
Which of the following is not a part of job control facilities?(a) relate a job to the background(b) bring it back to the foreground(c) kill a job(d) create a new jobThis question was addressed to me in an interview for job.The above asked question is from Process Management in chapter The Process of Unix |
|
Answer» The correct option is (d) CREATE a NEW job |
|
| 19. |
The command bg %2 is valid.(a) True(b) FalseI have been asked this question in a job interview.This intriguing question comes from Process Management topic in section The Process of Unix |
|
Answer» Right option is (a) True |
|
| 20. |
____ command will bring the background jobs to the foreground.(a) bg(b) fg(c) ctrl-Z(d) killThe question was posed to me in an online interview.My doubt stems from Process Management in section The Process of Unix |
|
Answer» The correct choice is (b) fg |
|
| 21. |
The command fg %1 will bring the first background job to the foreground.(a) True(b) FalseThis question was addressed to me in an international level competition.Origin of the question is Process Management topic in division The Process of Unix |
|
Answer» RIGHT option is (a) True Best EXPLANATION: fg command can be used with the JOB NUMBER, job name or a string as ARGUMENTS prefixed with the % symbol. For example, |
|
| 22. |
Which command will push the current foreground job to the background?(a) bg(b) fg(c) ctrl-Z(d) killThe question was asked in class test.My doubt is from Process Management in section The Process of Unix |
|
Answer» Right choice is (a) BG |
|
| 23. |
Which of the following command is used to suspend a job?(a) ctrl-Z(b) ctrl-Q(c) bg(d) $I got this question in examination.My question is from Process Management in portion The Process of Unix |
|
Answer» Correct ANSWER is (a) ctrl-Z |
|
| 24. |
What is a job?(a) group of tasks(b) group of commands(c) group of processes(d) group of signalsI had been asked this question in unit test.My question is taken from Process Management topic in division The Process of Unix |
|
Answer» RIGHT choice is (c) group of PROCESSES The best explanation: A JOB is a name given to a group of processes. The easiest WAY of creating a job is to run a pipeline of two or more commands. If we are using C, Korn or Bash shell we can USE the job control commands to manipulate jobs. |
|
| 25. |
Kill -l will list all the signal numbers on our machine.(a) True(b) FalseI had been asked this question during an interview.Asked question is from Process Handling Commands topic in chapter The Process of Unix |
|
Answer» Correct answer is (a) True |
|
| 26. |
Which of the followings command(s) is used to kill the login shell?(a) kill 0(b) kill-9$$(c) kill-sKILL 0(d) kill-9$$ and kill-sKILL 0I got this question in semester exam.My question comes from Process Handling Commands in division The Process of Unix |
|
Answer» RIGHT answer is (d) KILL-9$$ and kill-sKILL 0 Explanation: A SIMPLE kill COMMAND (with TERM) will not kill the LOGIN shell. We can kill the login shell by using any of the following commands: |
|
| 27. |
Which option is preferred while killing a process using SIGKILL signal (9)?(a) -p(b) -s(c) -h(d) -dI got this question by my school teacher while I was bunking the class.This question is from Process Handling Commands topic in portion The Process of Unix |
|
Answer» The correct answer is (b) -s |
|
| 28. |
Which signal is used with kill command to terminate the process when they ignore the SIGTERM signal (15)?(a) SIGTERM (16)(b) SIGTERM(0)(c) SIGKILL(9)(d) -dThe question was asked in a national level competition.Question is from Process Handling Commands topic in division The Process of Unix |
|
Answer» The correct answer is (c) SIGKILL(9) |
|
| 29. |
By default, kill uses the SIGTERM signal (15) to terminate the process.(a) True(b) FalseI got this question in homework.Enquiry is from Process Handling Commands in portion The Process of Unix |
|
Answer» Correct choice is (a) True |
|
| 30. |
Which one of the following command is used for killing the last background job?(a) kill $(b) kill $$(c) kill $!(d) kill !I got this question in examination.My question is from Process Handling Commands in section The Process of Unix |
|
Answer» The correct choice is (c) kill $! |
|
| 31. |
Which command is used for premature termination of a process?(a) signal(b) nice(c) kill(d) nohupThe question was asked by my college director while I was bunking the class.The origin of the question is Process Handling Commands in division The Process of Unix |
|
Answer» Correct option is (C) kill |
|
| 32. |
Which option can be used explicitly to reduce the priority of any process.(a) -a(b) -n(c) -o(d) -qThe question was posed to me by my school teacher while I was bunking the class.Enquiry is from Process Handling Commands in chapter The Process of Unix |
|
Answer» Correct option is (b) -N |
|
| 33. |
nice command is a ______ command in C shell.(a) internal(b) external(c) built-in(d) directoryThe question was posed to me in final exam.I need to ask this question from Process Handling Commands topic in portion The Process of Unix |
|
Answer» Correct choice is (C) built-in |
|
| 34. |
It is better to use & with nice command.(a) True(b) FalseI had been asked this question by my college professor while I was bunking the class.The question is from Process Handling Commands topic in chapter The Process of Unix |
|
Answer» Right answer is (a) True |
|
| 35. |
Which command is used for executing jobs according to their priority?(a) nohup(b) $(c) &(d) niceI had been asked this question in quiz.The above asked question is from Process Handling Commands in chapter The Process of Unix |
|
Answer» Correct choice is (d) nice |
|
| 36. |
What is the PID of the process who takes the parentage of the process run with nohup command?(a) 0(b) 1(c) 2(d) InfiniteThe question was asked in unit test.I would like to ask this question from Process Handling Commands in section The Process of Unix |
|
Answer» Right answer is (B) 1 |
|
| 37. |
nohup command doesn’t send the standard output of a command to any file.(a) True(b) FalseThis question was addressed to me during an online exam.This intriguing question comes from Process Handling Commands topic in chapter The Process of Unix |
|
Answer» Right answer is (b) False |
|
| 38. |
When nohup command is used, shells returns the _____(a) PID(b) PPID(c) tty(d) TTyThe question was posed to me in an international level competition.My question is from Process Handling Commands in chapter The Process of Unix |
|
Answer» The correct option is (a) PID |
|
| 39. |
Which of the following shell(s) allows the user to run jobs in the background even when the user has logged out (without using nohup command)?(a) C(b) bash(c) Korn(d) C and bashI have been asked this question in an internship interview.This intriguing question comes from Process Handling Commands topic in portion The Process of Unix |
|
Answer» Right option is (d) C and bash |
|
| 40. |
It is necessary to terminate the command line with &, even when we are using nohup command.(a) True(b) FalseThis question was posed to me in examination.The question is from Process Handling Commands in section The Process of Unix |
|
Answer» Correct option is (a) True |
|
| 41. |
Which command is used for running jobs in the background?(a) nice(b) ps(c) nohup(d) execThe question was posed to me by my college professor while I was bunking the class.My question comes from Process Handling Commands in portion The Process of Unix |
|
Answer» Correct CHOICE is (c) nohup |
|
| 42. |
Shell ___ operator is used for running jobs in the background.(a) $(b) #(c) |(d) &I had been asked this question in an interview for job.Asked question is from Process Handling Commands topic in chapter The Process of Unix |
|
Answer» Right OPTION is (d) & |
|
| 43. |
We can run the jobs in the background in UNIX.(a) True(b) FalseI had been asked this question in an interview.My doubt stems from Process Handling Commands in portion The Process of Unix |
|
Answer» The correct CHOICE is (a) True |
|
| 44. |
Which system call is used by the parent process to wait for the child process to complete?(a) wait(b) exec(c) fork(d) exitThe question was posed to me during an online exam.This interesting question is from Process Status:ps Command and Phases of a Process topic in portion The Process of Unix |
|
Answer» Right answer is (B) exec |
|
| 45. |
Which system call is used to run a new program?(a) fork(b) wait(c) exec(d) exitThe question was asked at a job interview.My doubt stems from Process Status:ps Command and Phases of a Process in section The Process of Unix |
|
Answer» Correct choice is (c) exec |
|
| 46. |
What is the value returned by fork system call, when the creation of child process is unsuccessful?(a) positive integer(b) negative integer(c) zero(d) fractional valueThe question was asked in unit test.My enquiry is from Process Status:ps Command and Phases of a Process in portion The Process of Unix |
|
Answer» Right choice is (b) negative integer |
|
| 47. |
When fork() is invoked, the child process created gets a new PID.(a) True(b) FalseI have been asked this question in semester exam.My question is from Process Status:ps Command and Phases of a Process in chapter The Process of Unix |
|
Answer» The correct answer is (a) True |
|
| 48. |
Which option is used with ps command to list system processes?(a) -A(b) -a(c) -e(d) –A and -eI got this question in my homework.I'd like to ask this question from Process Status:ps Command and Phases of a Process topic in section The Process of Unix |
|
Answer» RIGHT option is (d) –A and -e Explanation: Apart from PROCESSES a user generates, a number of system processes keep running all the time. Most of them are not associated with any terminal. To list all PROCESS on our MACHINE, we can use either -A or -e option with ps command. But beware, this list could be very long on a busy system. |
|
| 49. |
Which of the following system call is used for creating a new process?(a) read(b) fork(c) wait(d) newThis question was posed to me in my homework.My doubt is from Process Status:ps Command and Phases of a Process topic in division The Process of Unix |
|
Answer» Right option is (b) fork |
|
| 50. |
A system call is a programmatic way in which the program requests for the service from the kernel of an operating system.(a) True(b) FalseThis question was addressed to me during an online exam.My doubt stems from Process Status:ps Command and Phases of a Process in portion The Process of Unix |
|
Answer» The correct option is (a) True |
|