Operating System Set 23
On This Page
This set of Operating System (OS) Multiple Choice Questions & Answers (MCQs) focuses on Operating System Set 23
Q1 | Which of the following system calls does not return control to the calling point, on termination?
- fork
- exec
- ioctl
- longjmp
Q2 | Which of the following system calls transforms executable binary file into a process?
- fork
- exec
- ioctl
- longjmp
Q3 | Which of the following calls never returns an error?
- getpid
- fork
- ioctl
- open
Q4 | A fork system call will fail if
- the previously executed statement is also a fork call
- the limit on the maximum number of processes in the system would be executed
- the limit on the minimum number of processes that can be under execution by a single user would be executed
- all of the mentioned
Q5 | If a thread invokes the exec system call
- only the exec executes as a separate process
- the program specified in the parameter to exec will replace the entire process
- the exec is ignored as it is invoked by a thread
- none of the mentioned
Q6 | If exec is called immediately after forking
- the program specified in the parameter to exec will replace the entire process
- all the threads will be duplicated
- all the threads may be duplicated
- none of the mentioned
Q7 | If a process does not call exec after forking
- the program specified in the parameter to exec will replace the entire process
- all the threads should be duplicated
- all the threads should not be duplicated
- none of the mentioned
Q8 | What is Thread cancellation?
- the task of destroying the thread once its work is done
- the task of removing a thread once its work is done
- the task of terminating a thread before it has completed
- none of the mentioned
Q9 | When a web page is loading, and the user presses a button on the browser to stop loading the page?
- the thread loading the page continues with the loading
- the thread loading the page does not stop but continues with another task
- the thread loading the page is paused
- the thread loading the page is cancelled
Q10 | When one thread immediately terminates the target thread, it is called
- asynchronous cancellation
- systematic cancellation
- sudden termination
- deferred cancellation
Q11 | When the target thread periodically checks if it should terminate and terminates itself in an orderly manner, it is called?
- asynchronous cancellation
- systematic cancellation
- sudden termination
- deferred cancellation
Q12 | Cancelling a thread asynchronously
- frees all the resources properly
- may not free each resource
- spoils the process execution
- none of the mentioned
Q13 | Cancellation point is the point where
- the thread can be cancelled – safely or otherwise doesn’t matter
- the thread can be cancelled safely
- the whole process can be cancelled safely
- none of the mentioned
Q14 | If multiple threads are concurrently searching through a database and one thread returns the result then the remaining threads must be
- continued
- cancelled
- protected
- none of the mentioned
Q15 | Signals that occur at the same time, are presented to the process
- one at a time, in a particular order
- one at a time, in no particular order
- all at a time
- none of the mentioned
Q16 | Which of the following is not TRUE?
- processes may send each other signals
- kernel may send signals internally
- a field is updated in the signal table when the signal is sent
- each signal is maintained by a single bit
Q17 | Signals of a given type
- are queued
- are all sent as one
- cannot be queued
- none of the mentioned
Q18 | The three ways in which a process responds to a signal are
- ignoring the signal
- handling the signal
- performing some default action
- all of the mentioned
Q19 | Signals are identified by
- signal identifiers
- signal handlers
- signal actions
- none of the mentioned
Q20 | When a process blocks the receipt of certain signals?
- the signals are delivered
- the signals are not delivered
- the signals are received until they are unblocked
- the signals are received by the process once they are delivered
Q21 | The maintains pending and blocked bit vectors in the context of each process.
- cpu
- memory
- process
- kernel
Q22 | In UNIX, the set of masked signals can be set or cleared using the function.
- sigmask
- sigmaskproc
- sigprocmask
- sigproc
Q23 | The usefulness of signals as a general inter process communication mechanism is limited because
- they do not work between processes
- they are user generated
- they cannot carry information directly
- none of the mentioned
Q24 | The usual effect of abnormal termination of a program is
- core dump file generation
- system crash
- program switch
- signal destruction
Q25 | In most cases, if a process is sent a signal while it is executing a system call
- the system call will continue execution and the signal will be ignored completely
- the system call is interrupted by the signal, and the signal handler comes in
- the signal has no effect until the system call completes
- none of the mentioned