CS 6200 Graduate Introduction to
Operating Systems Exam Practice
Questions And Correct Answers
(Verified Answers) Plus Rationale 2027
Q&A| Instant Download Pdf.
1. Which statement best characterizes the central purpose of an
operating system in the context of CS 6200?
A. To provide only a graphical interface between users and
applications
B. To replace compiler functionality by translating high-level programs
directly into hardware instructions
C. To provide abstractions and mechanisms that manage hardware
resources while providing controlled execution environments for
applications
D. To eliminate the need for application-level resource management
entirely
Correct Answer: C
The operating system provides abstractions such as processes, virtual
memory, files, and sockets while implementing mechanisms for managing
CPU, memory, I/O devices, and other resources. This corresponds directly
to the course's emphasis on OS abstractions, mechanisms, concurrency,
synchronization, resource management, and distributed services.
, 2. Which distinction between an operating-system abstraction and an
operating-system mechanism is most accurate?
A. An abstraction defines what service or interface is presented,
whereas a mechanism describes how that service is implemented
B. An abstraction is always implemented in hardware, whereas a
mechanism is always implemented in software
C. An abstraction is visible only to the kernel, whereas a mechanism is
visible only to applications
D. An abstraction determines performance, whereas a mechanism
determines correctness
Correct Answer: A
An abstraction hides implementation details and presents a useful
conceptual interface, while a mechanism supplies the underlying means by
which that abstraction is realized. For example, a process is an abstraction,
while context switching is a mechanism used to implement process
execution and multiplexing.
3. A user program executes a system call requesting that the operating
system read data from a file. Which sequence most accurately
describes the transition involved?
A. The application directly modifies kernel memory, after which the
CPU resumes user mode
B. The application enters kernel mode through a controlled trap or
system-call mechanism, the kernel performs the requested operation,
and execution eventually returns to user mode
C. The application terminates and the kernel creates a new process
containing the requested data
D. The hardware automatically converts the system call into a network
request regardless of the underlying device
Correct Answer: B
,A system call provides a controlled entry point from user mode into kernel
mode. The kernel validates the request, performs or initiates the
operation, and eventually returns control to the application in user mode.
4. Why does an operating system generally execute privileged operations
in kernel mode rather than allowing arbitrary user processes to
perform them directly?
A. Kernel mode makes all programs execute faster
B. Privileged execution prevents the compiler from optimizing
application code
C. Privilege separation protects system resources and other processes
from unauthorized or unsafe operations
D. User-mode programs cannot perform arithmetic operations
Correct Answer: C
Privilege separation is fundamental to OS protection. Operations such as
modifying page tables, controlling devices, or disabling interrupts can
affect the entire system and therefore must be restricted to trusted kernel
code.
5. Which hardware feature is most directly responsible for preventing a
user process from indefinitely monopolizing the CPU under a
preemptive multitasking operating system?
A. DMA controller
B. Timer interrupt
C. Disk controller
D. Memory cache
Correct Answer: B
A periodic timer interrupt transfers control to the kernel, allowing the
operating system to regain control of the CPU and potentially schedule
another runnable process or thread. Without such a mechanism, a
malicious or poorly behaved process could prevent ordinary scheduling
from occurring.
, 6. Consider two processes, P1 and P2, executing concurrently. P1 writes
to a shared variable while P2 reads the same variable without
synchronization. Which concept most directly describes the potential
problem?
A. Deadlock
B. Race condition
C. Page fault
D. Context-free execution
Correct Answer: B
A race condition occurs when the correctness of a program depends on the
timing or ordering of concurrent accesses to shared state. Without
synchronization, P2 may observe an inconsistent, stale, or otherwise
unintended value depending on the interleaving of operations.
7. Which property is most closely associated with a correct critical-
section implementation?
A. Every process must enter its critical section simultaneously
B. At most one participating thread or process may execute the
protected critical section at a time
C. Critical sections must always execute in kernel mode
D. A critical section must never contain a memory access
Correct Answer: B
Mutual exclusion requires that no more than one thread or process at a
time execute a critical section protecting a shared resource. This prevents
conflicting concurrent operations from corrupting shared state.
8. Suppose a mutex is initially unlocked. Thread A acquires the mutex
and begins executing a critical section. Thread B then attempts to
acquire the same mutex. What should happen under normal mutex
semantics?
A. Thread B enters the critical section simultaneously with Thread A
B. Thread B permanently terminates
Operating Systems Exam Practice
Questions And Correct Answers
(Verified Answers) Plus Rationale 2027
Q&A| Instant Download Pdf.
1. Which statement best characterizes the central purpose of an
operating system in the context of CS 6200?
A. To provide only a graphical interface between users and
applications
B. To replace compiler functionality by translating high-level programs
directly into hardware instructions
C. To provide abstractions and mechanisms that manage hardware
resources while providing controlled execution environments for
applications
D. To eliminate the need for application-level resource management
entirely
Correct Answer: C
The operating system provides abstractions such as processes, virtual
memory, files, and sockets while implementing mechanisms for managing
CPU, memory, I/O devices, and other resources. This corresponds directly
to the course's emphasis on OS abstractions, mechanisms, concurrency,
synchronization, resource management, and distributed services.
, 2. Which distinction between an operating-system abstraction and an
operating-system mechanism is most accurate?
A. An abstraction defines what service or interface is presented,
whereas a mechanism describes how that service is implemented
B. An abstraction is always implemented in hardware, whereas a
mechanism is always implemented in software
C. An abstraction is visible only to the kernel, whereas a mechanism is
visible only to applications
D. An abstraction determines performance, whereas a mechanism
determines correctness
Correct Answer: A
An abstraction hides implementation details and presents a useful
conceptual interface, while a mechanism supplies the underlying means by
which that abstraction is realized. For example, a process is an abstraction,
while context switching is a mechanism used to implement process
execution and multiplexing.
3. A user program executes a system call requesting that the operating
system read data from a file. Which sequence most accurately
describes the transition involved?
A. The application directly modifies kernel memory, after which the
CPU resumes user mode
B. The application enters kernel mode through a controlled trap or
system-call mechanism, the kernel performs the requested operation,
and execution eventually returns to user mode
C. The application terminates and the kernel creates a new process
containing the requested data
D. The hardware automatically converts the system call into a network
request regardless of the underlying device
Correct Answer: B
,A system call provides a controlled entry point from user mode into kernel
mode. The kernel validates the request, performs or initiates the
operation, and eventually returns control to the application in user mode.
4. Why does an operating system generally execute privileged operations
in kernel mode rather than allowing arbitrary user processes to
perform them directly?
A. Kernel mode makes all programs execute faster
B. Privileged execution prevents the compiler from optimizing
application code
C. Privilege separation protects system resources and other processes
from unauthorized or unsafe operations
D. User-mode programs cannot perform arithmetic operations
Correct Answer: C
Privilege separation is fundamental to OS protection. Operations such as
modifying page tables, controlling devices, or disabling interrupts can
affect the entire system and therefore must be restricted to trusted kernel
code.
5. Which hardware feature is most directly responsible for preventing a
user process from indefinitely monopolizing the CPU under a
preemptive multitasking operating system?
A. DMA controller
B. Timer interrupt
C. Disk controller
D. Memory cache
Correct Answer: B
A periodic timer interrupt transfers control to the kernel, allowing the
operating system to regain control of the CPU and potentially schedule
another runnable process or thread. Without such a mechanism, a
malicious or poorly behaved process could prevent ordinary scheduling
from occurring.
, 6. Consider two processes, P1 and P2, executing concurrently. P1 writes
to a shared variable while P2 reads the same variable without
synchronization. Which concept most directly describes the potential
problem?
A. Deadlock
B. Race condition
C. Page fault
D. Context-free execution
Correct Answer: B
A race condition occurs when the correctness of a program depends on the
timing or ordering of concurrent accesses to shared state. Without
synchronization, P2 may observe an inconsistent, stale, or otherwise
unintended value depending on the interleaving of operations.
7. Which property is most closely associated with a correct critical-
section implementation?
A. Every process must enter its critical section simultaneously
B. At most one participating thread or process may execute the
protected critical section at a time
C. Critical sections must always execute in kernel mode
D. A critical section must never contain a memory access
Correct Answer: B
Mutual exclusion requires that no more than one thread or process at a
time execute a critical section protecting a shared resource. This prevents
conflicting concurrent operations from corrupting shared state.
8. Suppose a mutex is initially unlocked. Thread A acquires the mutex
and begins executing a critical section. Thread B then attempts to
acquire the same mutex. What should happen under normal mutex
semantics?
A. Thread B enters the critical section simultaneously with Thread A
B. Thread B permanently terminates