OS Concepts & Linux Programming CCEE CDAC
- Get link
- X
- Other Apps
Linux – Process Management 28 IMP MCQ
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
a) &
b) *
c) ?
d) |
View Answer
Answer:a
a) su
b) root
c) chroot
d) user
View Answer
Answer:a
a) kill
b) bg
c) fg
d) ps
View Answer
Answer:d
a) INT
b) TERM
c) KILL
d) STOP
View Answer
Answer:c
a) status R means running
b) Status S means sleeping
c) Status E means exited
d) Status Z means zombie
View Answer
Answer:c
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
$ 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
a) KILL
b) TSTP
c) TERM
d) INT
View Answer
Answer:d
(a) nice
(b) renice
(c) priority cannot be changed for a running process
(d) only superuser can change the priority
View Answer
Answer:b
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
- input.
- output.
- operating system.
- memory.
C
MCQ14. Process synchronization of operating system programs is done by
- input.
- output.
- operating system.
- memory.
C
MCQ15. A process of operating system for execution needs
- through put.
- timers.
- resources.
- both a and b.
C
MCQ16. An executed program of computer system is called
- trap.
- process.
- program.
- interrupt.
B
MCQ17. A single threaded process of operating system programs has
- one program counter.
- two program counters.
- three program counters.
- four program counters.
A
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
- Get link
- X
- Other Apps
Comments
Post a Comment