Os
Os
Os
This set of Operating System Multiple Choice Questions & Answers (MCQs) focuses on “CPU
Scheduling”.
1. Which module gives control of the CPU to the process selected by the short-term scheduler?
a) dispatcher
b) interrupt
c) scheduler
Answer: a
Explanation: None.
2. The processes that are residing in main memory and are ready and waiting to execute are kept on a
list called _____________
a) job queue
b) ready queue
c) execution queue
d) process queue
Answer: b
Explanation: None.
3. The interval from the time of submission of a process to the time of completion is termed as
____________
a) waiting time
b) turnaround time
c) response time
d) throughput
Answer: b
Explanation: None.
4. Which scheduling algorithm allocates the CPU first to the process that requests the CPU first?
Answer: a
Explanation: None.
Answer: a
Explanation: None.
6. In priority scheduling algorithm, when a process arrives at the ready queue, its priority is compared
with the priority of ____________
a) all process
c) parent process
d) init process
Answer: b
Explanation: None.
Answer: b
Explanation: None.
Answer: d
Explanation: None.
Answer: a
Explanation: None.
10. Which one of the following can not be scheduled by the kernel?
c) process
Answer: b
Explanation: User level threads are managed by thread library and the kernel is unaware of them.
a) multiprocessor systems
Answer: b
Explanation: None.
a) time
b) space
c) money
Answer: a
Explanation: None.
Answer: b
Explanation: None.
Answer: c
Explanation: None.
5. A process is selected from the ______ queue by the ________ scheduler, to be executed.
Answer: c
Explanation: None.
a) When a process switches from the running state to the ready state
b) When a process goes from the running state to the waiting state
c) When a process switches from the waiting state to the ready state
d) All of the mentioned
Answer: b
7. The switching of the CPU from one process or thread to another is called ____________
a) process switch
b) task switch
c) context switch
Answer: d
Explanation: None.
b) the time of dispatching a process from running to ready state and keeping the CPU idle
c) the time to stop one process and start running another one
Answer: c
Explanation: None.
Answer: a
Explanation: None.
Explanation: None.
d) the total time from the completion till the submission of a process
Answer: d
Explanation: None.
Answer: b
Explanation: None.
d) the total time from the completion till the submission of a process
Answer: b
Explanation: None.
Answer: c
Explanation: None.
a) the total time taken from the submission time till the completion time
b) the total time taken from the submission time till the first response is produced
c) the total time taken from submission time till the response is output
Answer: b
Explanation: None.
a) Non-preemptive scheduling
b) Preemptive scheduling
Answer: b
Explanation: None.
a) using very large time slices converts it into First come First served scheduling algorithm
b) using very small time slices converts it into First come First served scheduling algorithm
d) using very small time slices converts it into Shortest Job First algorithm
Answer: a
3. The portion of the process scheduler in an operating system that dispatches processes is concerned
with ____________
Explanation: None.
Answer: a
Answer: b
Explanation: None.
6. The strategy of making processes that are logically runnable to be temporarily suspended is called
____________
b) Preemptive scheduling
Answer: b
Explanation: None.
7. What is Scheduling?
Explanation: None.
8. There are 10 different processes running on a workstation. Idle processes are waiting for an input
event in the input queue. Busy processes are scheduled with the Round-Robin time sharing method.
Which out of the following quantum times is the best value for small response times, if the processes
have a short runtime, e.g. less than 10ms?
a) tQ = 15ms
b) tQ = 40ms
c) tQ = 45ms
d) tQ = 50ms
Answer: a
Explanation: None.
9. Orders are processed in the sequence they arrive if _______ rule sequences the jobs.
d) critical ratio
Answer: c
Explanation: None.
10. Which of the following algorithms tends to minimize the process flow time?
Answer: b
Explanation: None.
11. Under multiprogramming, turnaround time for short jobs is usually ________ and that for long jobs
is slightly ___________
a) Lengthened; Shortened
b) Shortened; Lengthened
c) Shortened; Shortened
d) Shortened; Unchanged
Answer: b
Explanation: None.
a) I only
d) I, II and III
Answer: d
Explanation: I) Shortest remaining time first scheduling is a preemptive version of shortest job
scheduling. It may cause starvation as shorter processes may keep coming and a long CPU burst process
never gets CPU.
II) Preemption may cause starvation. If priority based scheduling with preemption is used, then a low
priority process may never get CPU.
III) Round Robin Scheduling improves response time as all processes get CPU after a specified time.
c) RR – Round Robin
Answer: b
Explanation: None.
Answer: b
Explanation: None.
b) multiprogramming systems
c) multiprocessor systems
d) operating systems
Answer: b
Explanation: In a time sharing system, each user needs to get a share of the CPU at regular intervals.
4. Consider the following set of processes, the length of the CPU burst time given in milliseconds.
P1 6
P2 8
P3 7
P4 3
Assuming the above process being scheduled with the SJF scheduling algorithm.
nswer: a
Explanation: None.
Answer: d
Explanation: None.
Answer: a
Explanation: The larger the CPU burst, the lower the priority.
c) it can lead to some low priority process waiting indefinitely for the CPU
Answer: c
Explanation: None.
8. What is ‘Aging’?
Answer: d
Explanation: None.
a) Starvation
b) Wait queue
c) Ready queue
d) Aging
Answer: d
Explanation: None.
a) i only
d) i, ii and iii
Answer: d
Explanation: None.
11. Which of the following scheduling algorithms gives minimum average waiting time?
a) FCFS
b) SJF
c) Round – robin
d) Priority
Answer: b
Explanation: None.
CPU fetches the instruction from memory according to the value of:
A. program counter
B. status register
C. instruction register
A. stack pointer
B. cache
C. accumulator
D. disk buffer
A. physical address
B. absolute address
C. logical address
B. CPU
C. PCI
5. Memory management technique in which system stores and retrieves data from
secondary storage for use in main memory is called:
A. fragmentation
B. paging
C. mapping
A. stack pointer
C. page register
D. program counter
A. logical address
B. absolute address
C. physical address
D. relative address
B. page offset
C. page size
9. What is compaction?
B. a paging technique
A. each process
B. each thread
C. each instruction
D. each address
D. None of these
D. None of these
D. None of these
14. With relocation and limit registers, each logical address must be _______ the limit
register.
A. less than
B. equal to
C. greater than
D. None of these
15. The operating system and the other processes are protected from being modified by an
already running process because :
D. every address generated by the CPU is being checked against the relocation and limit
registers
17. Using transient code, _______ the size of the operating system during program
execution.
A. increases
B. decreases
C. changes
D. maintains
18. When memory is divided into several fixed sized partitions, each partition may contain
________.
D. None of these
D. All of these
20. The first fit, best fit and worst fit are strategies to select a ______.
D. All of these
A. is being used
C. is always used
D. None of these
A. compaction
D. None of these
D. All of these
24. If relocation is static and is done at assembly or load time, compaction _________.
A. cannot be done
B. must be done
D. can be done
25. The disadvantage of moving all process to one end of memory and all holes to the other
direction, producing one large hole of available memory is :
D. All of these
D. None of these
D. None of these
C. very small
D. All of these
30. When the memory allocated to a process is slightly larger than the process, then :
C. both a and b
D. neither a nor b
A. that can be used by one process at a time and is not depleted by that use
A. mutual exclusion
B. a process may hold allocated resources while awaiting assignment of other resources
A. the system can allocate resources to each process in some order and still avoid a
deadlock
B. using thread
C. using pipes
A. banker’s algorithm
B. round-robin algorithm
C. elevator algorithm
D. karn’s algorithm
A. deadlock
B. starvation
C. inversion
D. aging
8. Which one of the following is a visual ( mathematical ) way to determine the deadlock
occurrence?
B. starvation graph
C. inversion graph
9. To avoid deadlock:
A. must always be less than the total number of resources available in the system
B. must always be equal to the total number of resources available in the system
C. must not exceed the total number of resources available in the system
B. interrupts
C. system calls
D. special programs
D. None of these
A. A process must be not be holding a resource, but waiting for one to be freed, and then
request to acquire it
B. A process must be holding at least one resource and waiting to acquire additional
resources that are being held by other processes
C. A process must hold at least one resource and not be waiting to acquire additional
resources
D. None of these
A. must exist
C. may exist
D. None of these
A. is required
B. is not required
C. None of these
18. To ensure that the hold and wait condition never occurs in the system, it must be
ensured that :
B. each process must request and be allocated all its resources before it begins its
execution
C. a process can request resources only when it has none
D. All of these
19. The disadvantage of a process being allocated all its resources before beginning its
execution is :
D. None of these
20. To ensure no preemption, if a process is holding some resources and requests another
resource that cannot be immediately allocated to it :
21. One way to ensure that the circular wait condition never holds is to :
A. impose a total ordering of all resource types and to determine whether one precedes
another in the ordering
B. to never let a process acquire resources that are held by other processes
D. All of these
A. processes
B. threads
C. instructions
2. _____ is the concept in which a process is copied into main memory from the secondary
memory according to the requirement.
A. Paging
B. Demand paging
C. Segmentation
D. Swapping
B. entire process
C. entire thread
A. primary memory
B. secondary memory
C. CPU
5. When a program tries to access a page that is mapped in address space but not loaded
in physical memory, then?
D. no error occurs
A. page-fault rate
B. hit ratio
10. Working set model for page replacement is based on the assumption of:
A. modularity
B. locality
C. globalization
D. random access
1. CPU fetches the instruction from memory according to the value of:
A. program counter
B. status register
C. instruction register
A. stack pointer
B. cache
C. accumulator
D. disk buffer
3. Which one of the following is the address generated by CPU?
A. physical address
B. absolute address
C. logical address
B. CPU
C. PCI
5. Memory management technique in which system stores and retrieves data from
secondary storage for use in main memory is called:
A. fragmentation
B. paging
C. mapping
A. stack pointer
C. page register
D. program counter
A. logical address
B. absolute address
C. physical address
D. relative address
8. The page table contains:
B. page offset
C. page size
9. What is compaction?
B. a paging technique
A. each process
B. each thread
C. each instruction
D. each address
D. None of these
D. None of these
D. None of these
14. With relocation and limit registers, each logical address must be _______ the limit
register.
A. less than
B. equal to
C. greater than
D. None of these
15. The operating system and the other processes are protected from being modified by an
already running process because :
D. every address generated by the CPU is being checked against the relocation and
limit
17. Using transient code, _______ the size of the operating system during program execution.
A. increases
B. decreases
C. changes
D. maintains
18. When memory is divided into several fixed sized partitions, each partition may contain
________.
D. None of these
D. All of these
20. The first fit, best fit and worst fit are strategies to select a ______.
D. All of these
A. is being used
C. is always used
D. None of these
A. compaction
D. None of these
24. If relocation is static and is done at assembly or load time, compaction _________.
A. cannot be done
B. must be done
D. can be done
25. The disadvantage of moving all process to one end of memory and all holes to the other
direction, producing one large hole of available memory is :
D. All of these
D. None of these
D. None of these
C. very small
D. All of these
30. When the memory allocated to a process is slightly larger than the process, then :
C. both a and b
D. neither a nor b
https://compscibits.com/mcq-questions/Operating-System/Introduction-to-Operating-Systems
https://engineeringinterviewquestions.com/operating-systems-multiple-choice-questions-and-answers/