Signal Handling MCQ’s

Read Time:2 Minute, 7 Second

This set of Operating System Multiple Choice Questions & Answers (MCQs) focuses on “Signal Handling”.

1. Which of the following is not TRUE?
a) Processes may send each other signals
b) Kernel may send signals internally
c) A field is updated in the signal table when the signal is sent
d) Each signal is maintained by a single bit

2. Signals of a given type ____________
a) are queued
b) are all sent as one
c) cannot be queued
d) none of the mentioned

3. Signals that occur at the same time, are presented to the process ____________
a) one at a time, in a particular order
b) one at a time, in no particular order
c) all at a time
d) none of the mentioned

4. The three ways in which a process responds to a signal are ____________
a) ignoring the signal
b) handling the signal
c) performing some default action
d) all of the mentioned

5. When a process blocks the receipt of certain signals?
a) The signals are delivered
b) The signals are not delivered
c) The signals are received until they are unblocked
d) The signals are received by the process once they are delivered

6. In UNIX, the set of masked signals can be set or cleared using the ________ function.
a) sigmask
b) sigmaskproc
c) sigprocmask
d) sigproc

7. Signals are identified by ____________
a) signal identifiers
b) signal handlers
c) signal actions
d) none of the mentioned

8. The _______ maintains pending and blocked bit vectors in the context of each process.
a) CPU
b) Memory
c) Process
d) Kernel

9. The usefulness of signals as a general inter process communication mechanism is limited because ____________
a) they do not work between processes
b) they are user generated
c) they cannot carry information directly
d) none of the mentioned

10. In UNIX, the abort() function sends the ________ signal to the calling process, causing abnormal termination.
a) SIGTERM
b) SIGSTOP
c) SIGABORT
d) SIGABRT

11. A process can never be sure that a signal it has sent _____________
a) has which identifier
b) has not been lost
c) has been sent
d) all of the mentioned

12. The usual effect of abnormal termination of a program is ____________
a) core dump file generation
b) system crash
c) program switch
d) signal destruction
View Answer

13. In most cases, if a process is sent a signal while it is executing a system call ____________
a) the system call will continue execution and the signal will be ignored completely
b) the system call is interrupted by the signal, and the signal handler comes in
c) the signal has no effect until the system call completes
d) none of the mentioned

14. In UNIX, the ______________ system call is used to send a signal.
a) sig
b) send
c) kill
d) sigsend

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous post Thread Cancellation MCQ’s
Next post Thread Pools MCQ’s