MCQ On CPU Scheduling
Q1. CPU scheduling is the basis of ___________.
- multiprocessor systems
- multiprogramming operating systems
- larger memory sized systems
- none of the mentioned
Answer: b, multiprogramming operating systems
Q2. A process is selected from the ______ queue by the ________ scheduler, to be executed..
- blocked, short term
- wait, long term
- ready, short term
- ready, long term
Answer: c, ready, short term
Q3. Which module gives control of the CPU to the process selected by the short-term scheduler?.
- dispatcher
- interrupt
- scheduler
- none of the mentioned
Answer: a, dispatcher
Q4. The processes that are residing in main memory and are ready and waiting to execute are kept on a list called _____________.
- job queue
- ready queue
- execution queue
- process queue
Answer: b, ready queue
Q5. The interval from the time of submission of a process to the time of completion is termed as ____________.
- waiting time
- turnaround time
- response time
- throughput
Answer: b, turnaround time
Q6. Which scheduling algorithm allocates the CPU first to the process that requests the CPU first?.
- first-come, first-served scheduling
- shortest job scheduling
- priority scheduling
- none of the mentioned
Answer: a, first-come, first-served scheduling
Q7. In priority scheduling algorithm ____________.
- CPU is allocated to the process with highest priority
- CPU is allocated to the process with lowest priority
- Equal priority processes can not be scheduled
- None of the mentioned
Answer: a, CPU is allocated to the process with highest priority
Q8. In priority scheduling algorithm, when a process arrives at the ready queue, its priority is compared with the priority of ____________.
- all process
- currently running process
- parent process
- init process
Answer: b, currently running process
Q9. Which algorithm is defined in Time quantum?.
- shortest job scheduling algorithm
- round robin scheduling algorithm
- priority scheduling algorithm
- multilevel queue scheduling algorithm
Answer: b, round robin scheduling algorithm
Q10. Process are classified into different groups in ____________.
- shortest job scheduling algorithm
- round robin scheduling algorithm
- priority scheduling algorithm
- multilevel queue scheduling algorithm
Answer: d, multilevel queue scheduling algorithm
Q11. In multilevel feedback scheduling algorithm ____________.
- a process can move to a different classified ready queue
- classification of ready queue is permanent
- processes are not classified into groups
- none of the mentioned
Answer: a, a process can move to a different classified ready queue
Q12. Which one of the following can not be scheduled by the kernel?.
- kernel level thread
- user level thread
- process
- none of the mentioned
Answer: b, user level thread
Q13. In the following cases non – preemptive scheduling occurs?.
- When a process switches from the running state to the ready state
- When a process goes from the running state to the waiting state
- When a process switches from the waiting state to the ready state
- All of the mentioned
Answer: b, When a process goes from the running state to the waiting state
Q14. The switching of the CPU from one process or thread to another is called ____________.
- process switch
- task switch
- context switch
- all of the mentioned
Answer: c, context switch
Q15. What is Dispatch latency?.
- the speed of dispatching a process from running to the ready state
- the time of dispatching a process from running to ready state and keeping the CPU idle
- the time to stop one process and start running another one
- none of the mentioned
Answer: c, the time to stop one process and start running another one
Q16. What is Turnaround time?.
- the total waiting time for a process to finish execution
- the total time spent in the ready queue
- the total time spent in the running queue
- the total time from the completion till the submission of a process
Answer: d, the total time from the completion till the submission of a process
Q17. What is Waiting time?.
- the total time in the blocked and waiting queues
- the total time spent in the ready queue
- the total time spent in the running queue
- the total time from the completion till the submission of a process
Answer: b, the total time spent in the ready queue
Q18. What is Response time?.
- the total time taken from the submission time till the completion time
- the total time taken from the submission time till the first response is produced
- the total time taken from submission time till the response is output
- none of the mentioned
Answer: b, the total time taken from the submission time till the first response is produced
Q19. Round robin scheduling falls under the category of ____________.
- Non-preemptive scheduling
- Preemptive scheduling
- All of the mentioned
- None of the mentioned
Answer: b, Preemptive scheduling
Q20. With round robin scheduling algorithm in a time shared system ____________.
- using very large time slices converts it into First come First served scheduling algorithm
- using very small time slices converts it into First come First served scheduling algorithm
- using extremely small time slices increases performance
- using very small time slices converts it into Shortest Job First algorithm
Answer: a, using very large time slices converts it into First come First served scheduling algorithm
Q21. What is FIFO algorithm?.
- first executes the job that came in last in the queue
- first executes the job that came in first in the queue
- first executes the job that needs minimal processor
- first executes the job that has maximum processor needs
Answer: b, first executes the job that came in first in the queue
Q22. What is Scheduling?.
- allowing a job to use the processor
- making proper use of processor
- all of the mentioned
- none of the mentioned
Answer: a, allowing a job to use the processor
Q23. Which of the following algorithms tends to minimize the process flow time?.
- First come First served
- Shortest Job First
- Earliest Deadline First
- Longest Job First
Answer: b, Shortest Job First
Q24. Which is the most optimal scheduling algorithm?.
- FCFS – First come First served
- SJF – Shortest Job First
- RR – Round Robin
- None of the mentioned
Answer: b, SJF – Shortest Job First
Q25. Which of the following scheduling algorithms gives minimum average waiting time?.
- FCFS
- SJF
- Round – robin
- Priority
Answer: b, SJF
Q26. What is ‘Aging’?.
- keeping track of cache contents
- keeping track of what pages are currently residing in memory
- keeping track of how many times a given page is referenced
- increasing the priority of jobs to ensure termination in a finite time
Answer: d, increasing the priority of jobs to ensure termination in a finite time
Q27. Choose one of the disadvantages of the priority scheduling algorithm?.
- it schedules in a very complex manner
- its scheduling takes up a lot of time
- it can lead to some low priority process waiting indefinitely for the CPU
- none of the mentioned
Answer: c, it can lead to some low priority process waiting indefinitely for the CPU