OPERATING SYSTEMS FO R
PROGRAMMERS - C191 – WGU. PRE-
ASSESSMENT QUESTIONS AND
ANSWERS, 100% ACCURA TE. RATED
A+
Question : What is a valid process state?
Correct answer: Waiting
Question : What are two valid components of a process
control block (PCB)
Correct answer: The process counter; The process state
Question : What is the difference between kernel and user
threads?
Correct answer: Kernel threads are directly managed by the
operating system, whereas user threads are managed without kernel support.
Question : Which advantage does short-term scheduling have
compared with long-term scheduling?
Correct answer: It takes less time to select a process to
execute next.
Question : What is considered stable when the average rate of
process creation is equal to the average departure rate of processes leaving the system?
Correct answer: The degree of multiprogramming
Question : Which action allows an application that is in the
background to be passed to the foreground and vice versa?
Correct answer: Context switching
Question : What is the process of context switching?
Correct answer: Performing a state save and a state restore
Question : Which features are included in the DTrace tool?
Correct answer: Compiler, providers of probes, and
consumers
Question : What is the difference between cooperative and
preemptive scheduling?
Correct answer: Cooperative scheduling occurs when a
process terminates, whereas preemptive scheduling occurs when a process initiates.
Question : Which scheduling criteria measures the number of
processes completed per time unit?
Correct answer: Throughput
Question : Which criterion attempts to keep the processor as
busy as possible?
Correct answer: CPU utilization
Question : When does starvation occur in the priority
scheduling algorithm?
Correct answer: When a process is waiting indefinitely
Question : Which scheduling algorithm was designed
especially for time sharing systems?
Correct answer: Round-robin
Question : What is a difference between soft and hard
processor affinity?
Correct answer: Hard affinity specifies a subset of processors
on which a process may run, whereas soft affinity leaves the processor selection to the OS.
Question : What is an address that is generated by the CPU?
Correct answer: A logical address
Question : Which general-purpose storage is accessed
directly by the CPU?
Correct answer: The main memory
Question : What is a limitation of swapping on mobile
systems?
Correct answer: Applications that fail to free up sufficient
memory are terminated.
Question : What is the name of the memory allocation
scheme where the operating system keeps a table of available holes?
Correct answer: Variable partition
Question : What is described as memory allocated from a
fixed-size segment consisting of physically contiguous pages?
Correct answer: Buddy system
Question : Which memory management solution relocates all
available memory into one variable-sized block?
Correct answer: Compaction
Question : What does the 50-percent rule of memory
fragmentation state when allocating additional memory using the first-fit method?
Correct answer: One-third of all memory may be unused.
Question : Which component is associated with the paging
scheme?