InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 51. |
A swapper manipulates ___________ whereas the pager is concerned with individual _______ of a process.(a) the entire process, parts(b) all the pages of a process, segments(c) the entire process, pages(d) none of the mentionedI had been asked this question in an international level competition.The question is from Virtual Memory in section The Linux System of Operating System |
|
Answer» CORRECT option is (c) the ENTIRE PROCESS, pages To explain: None. |
|
| 52. |
Segment replacement algorithms are more complex than page replacement algorithms because ____________(a) Segments are better than pages(b) Pages are better than segments(c) Segments have variable sizes(d) Segments have fixed sizesThe question was posed to me in an online interview.This question is from Virtual Memory topic in section The Linux System of Operating System |
|
Answer» Correct choice is (C) SEGMENTS have VARIABLE sizes |
|
| 53. |
Virtual memory is normally implemented by ________(a) demand paging(b) buses(c) virtualization(d) all of the mentionedThis question was posed to me during an online exam.My question is from Virtual Memory topic in division The Linux System of Operating System |
|
Answer» CORRECT CHOICE is (a) DEMAND paging The EXPLANATION is: NONE. |
|
| 54. |
In virtual memory. the programmer __________ of overlays.(a) has to take care(b) does not have to take care(c) all of the mentioned(d) none of the mentionedThe question was posed to me in an online interview.This intriguing question originated from Virtual Memory topic in portion The Linux System of Operating System |
|
Answer» Correct ANSWER is (B) does not have to take care |
|
| 55. |
The ability to execute a program that is only partially in memory has benefits like ____________(a) The amount of physical memory cannot put a constraint on the program(b) Programs for an extremely large virtual space can be created(c) Throughput increases(d) All of the mentionedI had been asked this question in an interview for internship.This question is from Virtual Memory in division The Linux System of Operating System |
|
Answer» The CORRECT CHOICE is (d) All of the mentioned |
|
| 56. |
Error handler codes, to handle unusual errors are ____________(a) almost never executed(b) executed very often(c) executed periodically(d) none of the mentionedThe question was posed to me in an online quiz.This is a very interesting question from Virtual Memory in section The Linux System of Operating System |
|
Answer» The CORRECT answer is (a) almost NEVER executed |
|
| 57. |
The instruction being executed, must be in ____________(a) physical memory(b) logical memory(c) physical & logical memory(d) none of the mentionedThis question was posed to me in an interview for internship.Question is taken from Virtual Memory topic in section The Linux System of Operating System |
|
Answer» The correct OPTION is (a) PHYSICAL memory |
|
| 58. |
Virtual memory allows ____________(a) execution of a process that may not be completely in memory(b) a program to be smaller than the physical memory(c) a program to be larger than the secondary storage(d) execution of a process without being in physical memoryThis question was posed to me at a job interview.Origin of the question is Virtual Memory in chapter The Linux System of Operating System |
|
Answer» The CORRECT OPTION is (a) execution of a process that MAY not be completely in memory |
|
| 59. |
Working set model for page replacement is based on the assumption of ____________(a) modularity(b) locality(c) globalization(d) random accessI got this question during an online exam.My question is from Virtual Memory topic in chapter The Linux System of Operating System |
|
Answer» CORRECT OPTION is (B) locality The EXPLANATION is: NONE. |
|
| 60. |
A process is thrashing if ____________(a) it is spending more time paging than executing(b) it is spending less time paging than executing(c) page fault occurs(d) swapping can not take placeI got this question at a job interview.This interesting question is from Virtual Memory topic in portion The Linux System of Operating System |
|
Answer» The CORRECT choice is (a) it is SPENDING more time PAGING than executing |
|
| 61. |
Which algorithm chooses the page that has not been used for the longest period of time whenever the page required to be replaced?(a) first in first out algorithm(b) additional reference bit algorithm(c) least recently used algorithm(d) counting based page replacement algorithmThis question was addressed to me in final exam.This key question is from Virtual Memory topic in division The Linux System of Operating System |
|
Answer» Right choice is (c) LEAST recently USED algorithm |
|
| 62. |
In FIFO page replacement algorithm, when a page must be replaced ____________(a) oldest page is chosen(b) newest page is chosen(c) random page is chosen(d) none of the mentionedThe question was asked in semester exam.This is a very interesting question from Virtual Memory in portion The Linux System of Operating System |
|
Answer» Correct choice is (a) OLDEST page is chosen |
|
| 63. |
Effective access time is directly proportional to ____________(a) page-fault rate(b) hit ratio(c) memory access time(d) none of the mentionedI have been asked this question in a national level competition.This question is from Virtual Memory topic in chapter The Linux System of Operating System |
|
Answer» RIGHT CHOICE is (a) page-fault rate The BEST EXPLANATION: NONE. |
|
| 64. |
When a program tries to access a page that is mapped in address space but not loaded in physical memory, then ____________(a) segmentation fault occurs(b) fatal error occurs(c) page fault occurs(d) no error occursThe question was asked during an internship interview.Question is from Virtual Memory in chapter The Linux System of Operating System |
|
Answer» The CORRECT ANSWER is (c) PAGE FAULT occurs |
|
| 65. |
Swap space exists in ____________(a) primary memory(b) secondary memory(c) cpu(d) none of the mentionedI have been asked this question by my school principal while I was bunking the class.Asked question is from Virtual Memory in portion The Linux System of Operating System |
|
Answer» CORRECT OPTION is (B) SECONDARY memory Explanation: NONE. |
|
| 66. |
The pager concerns with the ____________(a) individual page of a process(b) entire process(c) entire thread(d) first page of a processThe question was posed to me during a job interview.Origin of the question is Virtual Memory topic in section The Linux System of Operating System |
|
Answer» The CORRECT ANSWER is (a) INDIVIDUAL PAGE of a process |
|
| 67. |
_____ is the concept in which a process is copied into the main memory from the secondary memory according to the requirement.(a) Paging(b) Demand paging(c) Segmentation(d) SwappingThis question was addressed to me in an interview for internship.The question is from Virtual Memory topic in chapter The Linux System of Operating System |
| Answer» | |
| 68. |
Because of virtual memory, the memory can be shared among ____________(a) processes(b) threads(c) instructions(d) none of the mentionedThis question was addressed to me in an internship interview.Asked question is from Virtual Memory in section The Linux System of Operating System |
|
Answer» RIGHT CHOICE is (a) processes Explanation: NONE. |
|
| 69. |
The number of the threads in the pool can be decided on factors such as ____________(a) number of CPUs in the system(b) amount of physical memory(c) expected number of concurrent client requests(d) all of the mentionedI have been asked this question in unit test.Query is from Thread Pools in section The Linux System of Operating System |
|
Answer» The CORRECT ANSWER is (d) all of the mentioned |
|
| 70. |
Thread pools limit the number of threads that exist at any one point, hence ____________(a) not letting the system resources like CPU time and memory exhaust(b) helping a limited number of processes at a time(c) not serving all requests and ignoring many(d) none of the mentionedI had been asked this question in an interview.This key question is from Thread Pools topic in division The Linux System of Operating System |
|
Answer» Right option is (a) not letting the system resources LIKE CPU time and MEMORY exhaust |
|
| 71. |
Thread pools help in ____________(a) servicing multiple requests using one thread(b) servicing a single request using multiple threads from the pool(c) faster servicing of requests with an existing thread rather than waiting to create a new thread(d) none of the mentionedThis question was posed to me in unit test.My enquiry is from Thread Pools topic in section The Linux System of Operating System |
|
Answer» The CORRECT option is (C) faster servicing of REQUESTS with an existing thread rather than WAITING to create a new thread |
|
| 72. |
If the thread pool contains no available thread ____________(a) the server runs a new process(b) the server goes to another thread pool(c) the server demands for a new pool creation(d) the server waits until one becomes freeThe question was asked by my school principal while I was bunking the class.The query is from Thread Pools in portion The Linux System of Operating System |
|
Answer» RIGHT ANSWER is (d) the server WAITS until ONE becomes free Easiest explanation - NONE. |
|
| 73. |
What is the idea behind thread pools?(a) a number of threads are created at process startup and placed in a pool where they sit and wait for work(b) when a process begins, a pool of threads is chosen from the many existing and each thread is allotted equal amount of work(c) all threads in a pool distribute the task equally among themselves(d) none of the mentionedThis question was addressed to me in an internship interview.This question is from Thread Pools topic in portion The Linux System of Operating System |
|
Answer» Right ANSWER is (a) a NUMBER of threads are created at process startup and placed in a pool where they sit and WAIT for work |
|
| 74. |
Each connection arriving at multi threaded servers via network is generally ____________(a) is directly put into the blocking queue(b) is wrapped as a task and passed on to a thread pool(c) is kept in a normal queue and then sent to the blocking queue from where it is dequeued(d) none of the mentionedThis question was addressed to me in examination.This key question is from Thread Pools topic in portion The Linux System of Operating System |
|
Answer» CORRECT ANSWER is (b) is wrapped as a task and passed on to a THREAD pool To EXPLAIN I would say: None. |
|
| 75. |
Instead of starting a new thread for every task to execute concurrently, the task can be passed to a ___________(a) process(b) thread pool(c) thread queue(d) none of the mentionedThe question was posed to me during an interview for a job.My query is from Thread Pools topic in chapter The Linux System of Operating System |
|
Answer» The correct option is (B) THREAD pool |
|
| 76. |
Thread pools are useful when ____________(a) when we need to limit the number of threads running in the application at the same time(b) when we need to limit the number of threads running in the application as a whole(c) when we need to arrange the ordering of threads(d) none of the mentionedThis question was posed to me in an internship interview.I want to ask this question from Thread Pools in division The Linux System of Operating System |
|
Answer» The correct choice is (a) when we need to LIMIT the number of threads RUNNING in the APPLICATION at the same time |
|
| 77. |
In UNIX, the ______________ system call is used to send a signal.(a) sig(b) send(c) kill(d) sigsendThis question was posed to me during an internship interview.I'd like to ask this question from Signal Handling topic in section The Linux System of Operating System |
|
Answer» RIGHT OPTION is (C) kill Explanation: NONE. |
|
| 78. |
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 mentionedI had been asked this question during an internship interview.I'd like to ask this question from Signal Handling topic in section The Linux System of Operating System |
|
Answer» CORRECT ANSWER is (B) has not been lost Explanation: NONE. |
|
| 79. |
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 mentionedI got this question during an online interview.Query is from Signal Handling topic in portion The Linux System of Operating System |
|
Answer» Right option is (C) the SIGNAL has no EFFECT until the system call completes |
|
| 80. |
In UNIX, the abort() function sends the ________ signal to the calling process, causing abnormal termination.(a) SIGTERM(b) SIGSTOP(c) SIGABORT(d) SIGABRTThis question was posed to me in an online quiz.My doubt is from Signal Handling in section The Linux System of Operating System |
|
Answer» The CORRECT OPTION is (d) SIGABRT |
|
| 81. |
The usual effect of abnormal termination of a program is ____________(a) core dump file generation(b) system crash(c) program switch(d) signal destructionThe question was asked in an online interview.My doubt is from Signal Handling topic in section The Linux System of Operating System |
|
Answer» Right CHOICE is (a) CORE dump FILE generation |
|
| 82. |
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 mentionedI got this question in semester exam.Origin of the question is Signal Handling in portion The Linux System of Operating System |
|
Answer» The correct OPTION is (c) they cannot CARRY information directly |
|
| 83. |
In UNIX, the set of masked signals can be set or cleared using the ________ function.(a) sigmask(b) sigmaskproc(c) sigprocmask(d) sigprocI have been asked this question by my college director while I was bunking the class.I'd like to ask this question from Signal Handling in portion The Linux System of Operating System |
|
Answer» CORRECT OPTION is (C) sigprocmask Explanation: NONE. |
|
| 84. |
The _______ maintains pending and blocked bit vectors in the context of each process.(a) CPU(b) Memory(c) Process(d) KernelThis question was addressed to me by my school principal while I was bunking the class.The doubt is from Signal Handling topic in section The Linux System of Operating System |
|
Answer» The CORRECT OPTION is (d) Kernel |
|
| 85. |
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 deliveredThis question was addressed to me during an online exam.The question is from Signal Handling in division The Linux System of Operating System |
|
Answer» The CORRECT OPTION is (a) The signals are delivered |
|
| 86. |
Signals are identified by ____________(a) signal identifiers(b) signal handlers(c) signal actions(d) none of the mentionedThe question was posed to me in an online quiz.This interesting question is from Signal Handling topic in division The Linux System of Operating System |
|
Answer» The correct OPTION is (a) SIGNAL identifiers |
|
| 87. |
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 mentionedI got this question during an interview for a job.I'd like to ask this question from Signal Handling in portion The Linux System of Operating System |
|
Answer» CORRECT OPTION is (d) all of the mentioned Easiest EXPLANATION - NONE. |
|
| 88. |
Signals of a given type ____________(a) are queued(b) are all sent as one(c) cannot be queued(d) none of the mentionedI had been asked this question during a job interview.Origin of the question is Signal Handling topic in section The Linux System of Operating System |
|
Answer» The correct OPTION is (B) are all sent as one |
|
| 89. |
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 bitThe question was posed to me in an online quiz.Question is taken from Signal Handling topic in chapter The Linux System of Operating System |
|
Answer» Right answer is (C) A FIELD is updated in the signal table when the signal is sent |
|
| 90. |
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 mentionedI got this question in semester exam.My doubt stems from Signal Handling topic in section The Linux System of Operating System |
|
Answer» CORRECT ANSWER is (b) ONE at a time, in no PARTICULAR order For explanation: NONE. |
|
| 91. |
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 mentionedI got this question in an interview for job.This key question is from Thread Cancellation in chapter The Linux System of Operating System |
|
Answer» RIGHT OPTION is (B) cancelled Explanation: NONE. |
|
| 92. |
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 mentionedI got this question in examination.My doubt stems from Thread Cancellation in division The Linux System of Operating System |
|
Answer» Right CHOICE is (b) the thread can be CANCELLED safely |
|
| 93. |
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 mentionedI had been asked this question in an interview for job.The question is from Thread Cancellation in division The Linux System of Operating System |
|
Answer» The correct CHOICE is (b) MAY not FREE each resource |
|
| 94. |
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 cancellationI got this question in a national level competition.Question is from Thread Cancellation topic in chapter The Linux System of Operating System |
|
Answer» The CORRECT OPTION is (d) DEFERRED cancellation |
|
| 95. |
When one thread immediately terminates the target thread, it is called ____________(a) Asynchronous cancellation(b) Systematic cancellation(c) Sudden Termination(d) Deferred cancellationI had been asked this question in a national level competition.This key question is from Thread Cancellation in portion The Linux System of Operating System |
|
Answer» CORRECT OPTION is (a) ASYNCHRONOUS cancellation Explanation: NONE. |
|
| 96. |
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 cancelledThis question was addressed to me at a job interview.I want to ask this question from Thread Cancellation topic in portion The Linux System of Operating System |
|
Answer» The CORRECT choice is (d) the thread LOADING the PAGE is cancelled |
|
| 97. |
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 mentionedThe question was asked at a job interview.This intriguing question comes from Thread Cancellation in section The Linux System of Operating System |
|
Answer» The CORRECT option is (C) the task of terminating a THREAD before it has completed |
|
| 98. |
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 mentionedThis question was addressed to me in quiz.This intriguing question originated from The Fork and exec System Calls in section The Linux System of Operating System |
|
Answer» Correct option is (b) all the threads should be duplicated |
|
| 99. |
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 mentionedThis question was posed to me during an internship interview.My question is taken from The Fork and exec System Calls in chapter The Linux System of Operating System |
|
Answer» RIGHT CHOICE is (a) the program specified in the PARAMETER to exec will REPLACE the ENTIRE process The explanation is: None. |
|
| 100. |
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 mentionedThe question was posed to me during an interview.The doubt is from The Fork and exec System Calls topic in section The Linux System of Operating System |
|
Answer» CORRECT answer is (b) the program SPECIFIED in the PARAMETER to exec will REPLACE the entire process Easiest EXPLANATION - None. |
|