Programmers Exam With Actual
Questions & Verified Answers,Plus
Rationales/Expert Verified For
Guaranteed Pass 2025/2026 /Latest
Update/Instant Download Pdf
1. Which of the following is the primary purpose of an operating system?
A. Compiling code
B. Managing hardware resources
C. Writing applications
D. Connecting to the Internet
B. Managing hardware resources
Rationale: The operating system acts as an intermediary between applications and
hardware, managing resources such as CPU, memory, and storage.
2. Which OS component is responsible for process scheduling?
A. File system
B. Kernel
C. Device driver
D. User interface
B. Kernel
Rationale: The kernel is the core component of an OS and handles process management,
including scheduling and context switching.
3. What type of OS allows multiple users to run programs simultaneously?
A. Single-user OS
B. Batch OS
C. Multi-user OS
D. Real-time OS
,C. Multi-user OS
Rationale: Multi-user operating systems allow several users to access system resources
concurrently, often via time-sharing.
4. What is a process in an operating system?
A. A program in execution
B. A sequence of commands in a script
C. A file on disk
D. A hardware device
A. A program in execution
Rationale: A process is an active instance of a program loaded into memory and managed
by the OS.
5. Which scheduling algorithm selects the process with the shortest burst time next?
A. First-Come, First-Served
B. Shortest Job Next
C. Round Robin
D. Priority
B. Shortest Job Next
Rationale: Shortest Job Next (SJN) schedules the process with the smallest execution time
first, optimizing turnaround time.
6. In a multitasking system, the CPU switches from one process to another. This is
called:
A. Deadlock
B. Paging
C. Context switching
D. Thrashing
C. Context switching
Rationale: Context switching saves the state of the current process and loads the state of
the next process to allow multitasking.
7. Which memory management technique divides memory into fixed-size blocks?
A. Paging
B. Segmentation
C. Virtual memory
D. Fragmentation
A. Paging
Rationale: Paging divides memory into fixed-size blocks (pages) to avoid external
fragmentation.
, 8. What is the primary advantage of virtual memory?
A. Faster CPU speed
B. More storage on disk
C. Ability to run processes larger than physical memory
D. Eliminates process scheduling
C. Ability to run processes larger than physical memory
Rationale: Virtual memory allows the system to use disk storage as an extension of RAM,
enabling large processes to run.
9. Which type of OS is designed for systems that require strict timing constraints?
A. Multi-user
B. Batch
C. Real-time
D. Network
C. Real-time
Rationale: Real-time operating systems guarantee timely processing of inputs, crucial for
embedded systems and critical applications.
10. What does a device driver do?
A. Schedules processes
B. Translates OS commands for hardware
C. Manages virtual memory
D. Compiles code
B. Translates OS commands for hardware
Rationale: Device drivers act as intermediaries between the OS and hardware devices,
translating commands and managing I/O.
11. Which of the following is an example of secondary storage?
A. RAM
B. CPU cache
C. Hard disk
D. Registers
C. Hard disk
Rationale: Secondary storage provides persistent data storage, unlike volatile memory like
RAM or CPU cache.
12. A deadlock occurs when:
A. Two processes complete simultaneously
B. Processes wait indefinitely for resources held by each other
C. CPU usage is zero
D. Memory is exhausted