Linux Questions & Answers on Process Management for Freshers

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
Answer: b
2. Which command is used to bring the background process to forground?

a) bg
b) fg
c) background
d) forground
Answer: b
3. How to run a process in the background?

a) &
b) *
c) ?
d) |
Answer: a
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
Answer: a
5. Process information in the current shell can be obtained by using

a) kill
b) bg
c) fg
d) ps
Answer: d
6. Which signal is sent by the command “kill -9 ” ?

a) INT
b) TERM
c) KILL
d) STOP
Answer: c
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
Answer: c
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
Answer: c
9. A user issues the following command sequence:
    $ 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
Answer: d
10. The signal sent to a process when the Ctrl-C key is pressed is

a) KILL
b) TSTP
c) TERM
d) INT
Answer: d
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
Answer: b
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
Answer: b

Related

Multiple Choice Questions 3397012768551160657

Post a Comment

emo-but-icon

item