Operating System MCQ Questions

1) Which is the best process to access number of records from the same file ?
  1. A batch job
  2. An on-line job
  3. A real time job
  4. All of above
Show/Hide Answer
Answer = A 
Explanation: Many batch jobs are run in parallel and JCL is used to control the operation of each job
2) What is the name of the arrangement where several central processing units share one memory ?
  1. Multi tasking
  2. Multi programming
  3. Multi processing
  4. Concurrent programming
Show/Hide Answer
Answer =  C 
Explanation: Multiprogramming is the allocation of a computer system and its resources to more than one concurrent application, job or user
3) Banker's algorithm for resource allocation deals with ?
  1. Dead lock prevention
  2. Dead lock avoidance
  3. Dead lock recovery
  4. Mutual Exclusion
Show/Hide Answer
Answer = B 
Explanation: The Banker's algorithm is a resource allocation and deadlock avoidance algorithm developed by Edsger Dijkstra that tests for safety by simulating the allocation of predetermined maximum possible amounts of all resources, and then makes a "s-state" check to test for possible deadlock conditions for all other pending activities, before deciding whether allocation should be allowed to continue.
4) If the CPU scheduling policy is STF, the average waiting time (without prevention) will be ?
  1. 12.8 ms
  2. 6.8 ms
  3. 17 ms
  4. None of above
Show/Hide Answer
Answer = B 
Explanation: No Explanation
5) Producer consumer problem can be solved using ?
  1. Semaphores
  2. Event counters
  3. Monitors
  4. All of above
Show/Hide Answer
Answer = D 
Explanation: No Explanation
6) If the CPU scheduling policy is priority scheduling without pre-emption, the average waiting time will be ?
  1. 19 ms
  2. 11.8 ms
  3. 10.8 ms
  4. None of above
Show/Hide Answer
Answer =  C 
Explanation: No Explanation
7) Situation where two or more processes are reading or writing some shared data and the final result depends upon who runs precisely is called ?
  1. Race Condition
  2. Critical Section
  3. Mutual Exclusion
  4. Message Passing
Show/Hide Answer
Answer = A 
Explanation: A race condition or race hazard is a type of flaw in an electronic or software system where the output is dependent on the sequence or timing of other uncontrollable events.
8) In partitioned memory allocation scheme ?
  1. The best fit algorithm is always better than the first fit algorithm
  2. The best fir algorithm is always better that best fit algorithm
  3. The superiority of the first fir algorithm depends upon the sequence of memory request
  4. None of above
Show/Hide Answer
Answer =  C 
Explanation: No Explanation
9) The main function of dispatcher is ?
  1. swapping a process to the disk
  2. Assigning reads process to the CPU
  3. Suspending some of the processes when the CPU load is high
  4. Bring processes from the disk to the main memory
Show/Hide Answer
Answer = B 
Explanation:  The dispatcher is the module that gives control of the CPU to the process selected by the short-time scheduler
10) For implementing multiprogramming system ?
  1. special support from
  2. special support from processor is not essential
  3. cache memory must be available
  4. mote than one processor must be available
Show/Hide Answer
Answer = B 
Explanation: No Explanation


Do You Like This? Please take 5 seconds to share with your firends.

0 comments:

Post a Comment