Tap an option to check your answer — the correct answer and full explanation appear after you choose.
Computer ScienceOperating SystemsID: OS-011
Which scheduling scheme keeps several ready queues and moves a process between them according to how it behaves?
AFirst Come First Served
BPriority scheduling
CRound Robin
DMultilevel feedback queue ✓ Correct answer
✓ Correct answer: Multilevel feedback queue
Full explanation
A multilevel feedback queue keeps several ready queues, usually with different time quanta, and moves a process down to a lower queue if it uses up its whole quantum, so short interactive jobs stay near the top and long CPU-bound jobs sink.
Computer ScienceOperating SystemsID: OS-012
Which way of handling deadlock makes sure that at least one of the four Coffman conditions can never hold?
ADeadlock prevention ✓ Correct answer
BDeadlock avoidance
CDeadlock detection
DDeadlock recovery
✓ Correct answer: Deadlock prevention
Full explanation
Deadlock prevention designs the system so that at least one Coffman condition can never hold, for example by making processes ask for all their resources at once (breaking hold and wait) or by taking resources in a fixed order (breaking circular wait).
Computer ScienceOperating SystemsID: OS-013
What is a state called in which there is some order for every process to get what it still needs and finish?
ADeadlock state
BUnsafe state
CSafe state ✓ Correct answer
DBlocked state
✓ Correct answer: Safe state
Full explanation
A state is safe if there is some order in which every process can get its remaining need and finish. The Banker's algorithm grants a request only if the state afterwards is still safe; an unsafe state is not yet a deadlock, but a deadlock becomes possible from it.
Computer ScienceOperating SystemsID: OS-014
Which graph is used to detect a deadlock when each resource has only one instance?
AResource allocation graph ✓ Correct answer
BPage table
CProcess tree
DFile directory
✓ Correct answer: Resource allocation graph
Full explanation
A resource allocation graph draws processes as circles and resources as squares, with arrows for requests and allocations. When each resource has a single instance, a cycle in this graph means a deadlock.
Computer ScienceOperating SystemsID: OS-015
Which deadlock recovery method takes a resource away from one process and gives it to another?
AAdding more memory
BIncreasing the time quantum
CResource preemption ✓ Correct answer
DRestarting the printer
✓ Correct answer: Resource preemption
Full explanation
Resource preemption recovers from a deadlock by taking a resource away from one process and giving it to another, which breaks the no-preemption condition. The other common recovery is to kill one of the deadlocked processes.
Computer ScienceOperating SystemsID: OS-016
Which Coffman condition is broken by numbering every resource and always taking them in increasing order?
AMutual exclusion
BHold and wait
CNo preemption
DCircular wait ✓ Correct answer
✓ Correct answer: Circular wait
Full explanation
Taking resources in a fixed increasing order breaks circular wait, because a cycle would need a process to take a lower-numbered resource after a higher-numbered one. This lock ordering is the prevention method used most in real code.
Computer ScienceOperating SystemsID: OS-017
What is it called when the result of two processes depends on the order in which they run?
ADeadlock
BRace condition ✓ Correct answer
CStarvation
DThrashing
✓ Correct answer: Race condition
Full explanation
A race condition is when the result depends on the timing or order in which processes run, because they share data without synchronisation. Semaphores and mutexes exist to prevent it.
Computer ScienceOperating SystemsID: OS-018
What is the part of a program that accesses a shared resource called?
ACritical section ✓ Correct answer
BDead code
CKernel section
DUser section
✓ Correct answer: Critical section
Full explanation
The critical section is the part of a program that accesses a shared resource. Only one process may be in its critical section for that resource at a time, which is what mutual exclusion guarantees.
Computer ScienceOperating SystemsID: OS-019
What is a process called that has finished running, but whose entry is still in the process table because its parent has not read its exit status yet?
AOrphan process
BZombie process ✓ Correct answer
CDaemon process
DChild process
✓ Correct answer: Zombie process
Full explanation
A zombie process has finished running, but its entry stays in the process table until its parent reads its exit status. It holds no memory or CPU, only the table entry.
Computer ScienceOperating SystemsID: OS-020
What is a process called whose parent has finished before it, so it is adopted by the init process?
AThread
BDaemon process
CZombie process
DOrphan process ✓ Correct answer
✓ Correct answer: Orphan process
Full explanation
An orphan process is one whose parent has finished before it has. The init process adopts it, so it keeps running normally instead of being left without a parent.
Computer ScienceOperating SystemsID: OS-021
In which file allocation method is a file stored in consecutive blocks on the disk?
ALinked allocation
BIndexed allocation
CContiguous allocation ✓ Correct answer
DClustered allocation
✓ Correct answer: Contiguous allocation
Full explanation
In contiguous allocation a file is stored in consecutive blocks, so reading it is fast because the disk head hardly moves, but finding a long enough free stretch becomes hard as files are deleted and the disk fragments.
Computer ScienceOperating SystemsID: OS-022
In which file allocation method does an index block hold the addresses of all the blocks of a file?
AContiguous allocation
BLinked allocation
CIndexed allocation ✓ Correct answer
DSequential allocation
✓ Correct answer: Indexed allocation
Full explanation
In indexed allocation an index block holds the addresses of all the blocks of a file, so any block can be reached directly without following a chain. This is how direct access to any part of a file is done.
Computer ScienceOperating SystemsID: OS-023
Which file access method reads records one after another, in order, from the start?
ADirect access
BSequential access ✓ Correct answer
CIndexed access
DRandom access
✓ Correct answer: Sequential access
Full explanation
Sequential access reads records one after another in order, from the start of the file. It is the natural way to read a file on tape, and the way most files are read when the whole file is needed.
Computer ScienceOperating SystemsID: OS-024
In Linux, which structure stores the metadata of a file, such as its size, owner and the addresses of its blocks?
AFile Allocation Table
BInode ✓ Correct answer
CMaster File Table
DBoot sector
✓ Correct answer: Inode
Full explanation
An inode stores the metadata of a file in Linux and Unix: its size, owner, permissions and the addresses of its blocks. The file name itself lives in the directory, not in the inode.
Computer ScienceOperating SystemsID: OS-025
Which file system is designed for USB flash drives and supports files larger than 4 GB?
ANTFS
Bext4
CexFAT ✓ Correct answer
DAPFS
✓ Correct answer: exFAT
Full explanation
exFAT is the successor to FAT32 for flash drives and memory cards: it works on Windows, macOS and Linux, and unlike FAT32 it supports files larger than 4 GB.
Computer ScienceOperating SystemsID: OS-026
Which operating system manages a group of separate computers so that they work together as one system?
ABatch operating system
BDistributed operating system ✓ Correct answer
CEmbedded operating system
DReal-time operating system
✓ Correct answer: Distributed operating system
Full explanation
A distributed operating system manages a group of separate computers connected by a network so that they work together as one system, sharing resources and spreading the work between them.
Computer ScienceOperating SystemsID: OS-027
Which operating system manages resources over a network and provides services such as file sharing and printing to other computers?
ANetwork operating system ✓ Correct answer
BBatch operating system
CEmbedded operating system
DSingle-user operating system
✓ Correct answer: Network operating system
Full explanation
A network operating system manages resources over a network and provides services such as file sharing, printing and user accounts to the other computers on the network.
Computer ScienceOperating SystemsID: OS-028
In which kind of real-time system does missing a deadline cause the whole system to fail?
ASoft real-time system
BBatch system
CHard real-time system ✓ Correct answer
DTime-sharing system
✓ Correct answer: Hard real-time system
Full explanation
In a hard real-time system missing a deadline is a failure of the system, as in aircraft controls or a pacemaker. In a soft real-time system a missed deadline only makes the service worse, as in video streaming.
Computer ScienceOperating SystemsID: OS-029
In which kind of kernel do all operating system services run in kernel space?
AMicrokernel
BMonolithic kernel ✓ Correct answer
CHybrid kernel
DExokernel
✓ Correct answer: Monolithic kernel
Full explanation
In a monolithic kernel all operating system services, such as file systems and device drivers, run in kernel space as one large program. Linux is the best-known example.
Computer ScienceOperating SystemsID: OS-030
In which kind of kernel do only the basic services run in kernel space, with the rest running as ordinary programs in user space?
AMonolithic kernel
BMicrokernel ✓ Correct answer
CShell
DLoader
✓ Correct answer: Microkernel
Full explanation
In a microkernel only the basic services, such as passing messages between programs, run in kernel space. File systems and drivers run as ordinary programs in user space, so a fault in one of them cannot crash the whole kernel.