Top 550+ Solved Operating System (OS) MCQ Questions Answer
Q. Which of the following system calls does not return control to the calling point, on termination?
a. fork
b. exec
c. ioctl
d. longjmp
Q. Which of the following system calls transforms executable binary file into a process?
a. fork
b. exec
c. ioctl
d. longjmp
Q. A fork system call will fail if
a. the previously executed statement is also a fork call
b. the limit on the maximum number of processes in the system would be executed
c. the limit on the minimum number of processes that can be under execution by a single user would be executed
d. all of the mentioned
Q. If a thread invokes the exec system call
a. only the exec executes as a separate process
b. the program specified in the parameter to exec will replace the entire process
c. the exec is ignored as it is invoked by a thread
d. none of the mentioned
Q. If exec is called immediately after forking
a. the program specified in the parameter to exec will replace the entire process
b. all the threads will be duplicated
c. all the threads may be duplicated
d. none of the mentioned
Q. If a process does not call exec after forking
a. the program specified in the parameter to exec will replace the entire process
b. all the threads should be duplicated
c. all the threads should not be duplicated
d. none of the mentioned
Q. What is Thread cancellation?
a. the task of destroying the thread once its work is done
b. the task of removing a thread once its work is done
c. the task of terminating a thread before it has completed
d. none of the mentioned
Q. When a web page is loading, and the user presses a button on the browser to stop loading the page?
a. the thread loading the page continues with the loading
b. the thread loading the page does not stop but continues with another task
c. the thread loading the page is paused
d. the thread loading the page is cancelled
Q. When one thread immediately terminates the target thread, it is called
a. asynchronous cancellation
b. systematic cancellation
c. sudden termination
d. deferred cancellation
Q. When the target thread periodically checks if it should terminate and terminates itself in an orderly manner, it is called?
a. asynchronous cancellation
b. systematic cancellation
c. sudden termination
d. deferred cancellation
Q. Cancelling a thread asynchronously
a. frees all the resources properly
b. may not free each resource
c. spoils the process execution
d. none of the mentioned
Q. Cancellation point is the point where
a. the thread can be cancelled – safely or otherwise doesn’t matter
b. the thread can be cancelled safely
c. the whole process can be cancelled safely
d. none of the mentioned
Q. If multiple threads are concurrently searching through a database and one thread returns the result then the remaining threads must be
a. continued
b. cancelled
c. protected
d. none of the mentioned
Q. 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