You are on page 1of 6

MCQ papers for CDAC

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

2. Which command is used to bring the background process to forground?


a) bg
b) fg
c) background
d) forground
View Answer

Answer:b

3. How to run a process in the background?


a) &
b) *
c) ?
d) |
View Answer

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
View Answer
Answer:a

5. Process information in the current shell can be obtained by using


a) kill
b) bg
c) fg
d) ps
View Answer
Answer:d

6. Which signal is sent by the command “kill -9 ” ?


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

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
View Answer
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
View Answer
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
View Answer
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
View Answer
Answer:b

MCQ13. Thread scheduling of operating system programs is done by

1. input.
2. output.
3. operating system.
4. memory.

MCQ14. Process synchronization of operating system programs is done by

1. input.
2. output.
3. operating system.
4. memory.

MCQ15. A process of operating system for execution needs

1. through put.
2. timers.
3. resources.
4. both a and b.

MCQ16. An executed program of computer system is called

1. trap.
2. process.
3. program.
4. interrupt.

MCQ17. A single threaded process of operating system programs has

1. one program counter.


2. two program counters.
3. three program counters.
4. four program counters.

18. Which of the following statements are true


a. An exclusively single user system can not be a multiprogramming system.
b. A Uni-programming system will have higher processor utilization because
it
does not suffer from switching overheads witnessed in multi-programming
systems.
c. A multiprogramming system enhances primary memory utilization.

19. A time sharing system is always a multiprogramming system.


a. True
b. False

20. A system is a multi-programming system because


a. There are multiple devices connected to the system
b. There are multiple persons who have an account on that system.
c. There are multiple memory resident ready-to-run programs in the system

21. Which of the following defines response time?


a. Time from the first character of input to the first character of output.
b. Time from the first character of input to the last character of output.
c. Time from the last character of input to the last character of output.
d. Time from the last character of input to the first character of output.

22. A process which has just terminated but has yet to relinquish its
resources is called
a. A suspended process
b. A zombie process
c. A blocked process
d. A terminated process

23. Suppose process P is currently suspended. Upon completion of IO, P


joins the group
of ready-to-run processes. When the current running process gets
suspended, P would
be the first process to move to running state.
a. True
b. False

24. For which of the following policy can we expect the average waiting time
to be the
shortest?
Operating Systems/Process and Process Management Multiple Choice
Questions
P.C.P.Bhat/IISc Bangalore M3/V1/June 04/2
a. First come first served
b. Last come first served
c. Longest job last
d. Random selection of jobs.

25. In using a shortest job first policy starvation


a. Always occurs
b. Never occurs
c. May occur some times

26. Indicate which of the following rules is often followed to predict the next
burst time
a. Equal weight for all the previous bursts
b. Older the interval higher is the weight associated
c. Most recent burst weighted highest.
d. Allocate a fixed duration regardless of previous bursts.

27. Which of the following information is stored in process control block to


support
process context switching?
a. The date and time of switching
b. UID
c. PID
d. Terminal from where the process was initiated
e. Estimate of the last burst used by the process

28. The ps command indicate from which terminal a process was initiated.
a. True
b. False

You might also like