Which of the following scheduling algorithms does not involve preemption?
A Priority Scheduling
B FCFS
C Shortest Job First
D Round Robin
First-Come-First-Served (FCFS) is a non-preemptive CPU scheduling algorithm. Once a process starts executing, it runs to completion before any other process can take over, which can lead to inefficiencies in resource utilization.
In multi-threading, which term refers to a thread sharing its resources with others?
A Resource Sharing
B Thread Synchronization
C Thread Concurrency
D Process Isolation
Thread concurrency refers to the ability of multiple threads to run simultaneously, sharing resources like memory. Each thread operates independently but may share resources for more efficient execution within a process.
What is the role of a context switch in an operating system?
A CPU Scheduling
B Thread Synchronization
C Process Control
D Memory Allocation
A context switch occurs when the CPU switches from executing one process to another. This involves saving the current process’s state and loading the state of the next process, allowing multitasking on a single processor.
Which of the following is a primary purpose of memory paging in an OS?
A Task Scheduling
B File Management
C Efficient Memory Usage
D Process Synchronization
Paging is a memory management technique that divides memory into fixed-size blocks, allowing the system to load only required pages into RAM. This improves memory utilization and prevents fragmentation.
Which of the following is a function of the operating system’s kernel?
A File Management
B User Interface
C Task Scheduling
D Memory Allocation
The kernel manages memory allocation in the system, ensuring that each process has access to the memory it needs. It also handles memory protection and frees memory once processes are finished.
What is the main advantage of using a distributed operating system?
A Resource Sharing
B Lower Costs
C Increased Security
D Easy Setup
A distributed operating system enables multiple computers to work together as a cohesive unit. It allows sharing of resources like processing power and storage across a network, improving overall efficiency and scalability.
Which type of operating system is designed for immediate and precise response to external events?
A Distributed OS
B Mobile OS
C Real-Time OS
D Batch OS
Real-Time Operating Systems are designed to guarantee specific response times for external events. They are commonly used in critical applications like industrial control systems, robotics, and medical devices, where delays can have serious consequences.
What is the role of a semaphore in concurrent programming?
A File Access
B Synchronization
C Scheduling
D Memory Management
A semaphore is used for synchronization in concurrent programming to control access to shared resources. It prevents race conditions by ensuring that only one process can access a resource at a time.
Which of the following is true for a process in an operating system?
A Is an instance of a program in execution
B Cannot be interrupted
C Can only execute one instruction
D Always uses kernel resources
A process is an instance of a program in execution. It includes the program code, current activity, and data, and can be interrupted by the operating system to allow multitasking.
Which OS type is most commonly used in smartphones and tablets?
A Real-Time OS
B Embedded OS
C Mobile OS
D Linux
Mobile Operating Systems, such as Android and iOS, are specifically designed for smartphones and tablets. They handle tasks like app management, touch input, and communication with hardware in mobile devices.
What is the role of a process manager in an operating system?
A Handle Memory
B Manage Processes
C Handle Hardware
D Manage Files
The process manager is responsible for creating, scheduling, and terminating processes. It ensures that each process gets access to the CPU and manages their states, including blocking and resuming processes.
Which of the following is a key feature of a microkernel architecture?
A Modular Design
B No User Mode
C Large Kernel Size
D Limited Functionality
A microkernel operates with a minimal core that handles only essential tasks like memory management and communication. Other services like device drivers run in user space, allowing for a more modular and maintainable system.
What is the main purpose of deadlock detection in an operating system?
A Ensure Fair CPU Allocation
B Prevent System Crashes
C Detect Resource Contention
D Identify Cyclic Dependencies
Deadlock detection is used to identify situations where processes are in a cyclic dependency, waiting for each other to release resources. Once detected, the operating system can take corrective action to resolve the deadlock.
Which of the following defines a virtual memory system?
A Multiple CPU Usage
B Real-Time Allocation
C Illusion of Large Memory
D Hardware Isolation
Virtual memory allows programs to use more memory than physically available by swapping data between RAM and storage. This creates the illusion of a large, continuous memory space, making it easier for programs to run.
In a multithreading environment, what is the primary concern when threads share data?
A Data Integrity
B Task Scheduling
C CPU Utilization
D Memory Overhead
When multiple threads share data, itβs crucial to ensure data integrity. Concurrent threads accessing the same data can lead to inconsistent results, so synchronization mechanisms like semaphores and mutexes are used to manage access.