1What is the primary objective of an Operating System?
A.To make the hardware run faster
B.To provide an environment for a user to execute programs conveniently and efficiently
C.To replace the need for RAM
D.To compile source code into machine code
Correct Answer: To provide an environment for a user to execute programs conveniently and efficiently
Explanation:An operating system acts as an intermediary between the user and the computer hardware, aiming to make the system convenient to use and efficient in operation.
Incorrect! Try again.
2Which bit in the PSW (Program Status Word) register distinguishes between User Mode and Supervisor (Kernel) Mode?
A.Mode bit
B.Status bit
C.Interrupt bit
D.Flag bit
Correct Answer: Mode bit
Explanation:The mode bit is used in hardware to indicate the current mode: 0 for kernel/monitor mode and 1 for user mode.
Incorrect! Try again.
3Privileged instructions can only be executed in which mode?
A.User Mode
B.Supervisor Mode
C.Both User and Supervisor Mode
D.I/O Mode
Correct Answer: Supervisor Mode
Explanation:Privileged instructions, which can cause harm if misused (like I/O control or memory management), are restricted to Supervisor (Kernel) Mode.
Incorrect! Try again.
4What is the main disadvantage of a Simple Batch System?
A.Lack of security
B.CPU remains idle during I/O operations
C.Complex user interface
D.High cost of implementation
Correct Answer: CPU remains idle during I/O operations
Explanation:In simple batch systems, the CPU sits idle while a job performs I/O operations because only one job is processed at a time.
Incorrect! Try again.
5Which system concept increases CPU utilization by organizing jobs so that the CPU always has one to execute?
A.Single-tasking
B.Multiprogramming
C.Batch Processing
D.Distributed Processing
Correct Answer: Multiprogramming
Explanation:Multiprogramming keeps several jobs in memory simultaneously. When one job waits for I/O, the OS switches to another job to keep the CPU busy.
Incorrect! Try again.
6What is the defining characteristic of a Time-Sharing System (Multitasking)?
A.It uses multiple CPUs
B.It executes jobs strictly sequentially
C.It switches the CPU between jobs so frequently that users can interact with each program while it is running
D.It is designed only for batch jobs
Correct Answer: It switches the CPU between jobs so frequently that users can interact with each program while it is running
Explanation:Time-sharing is a logical extension of multiprogramming where the CPU switches jobs rapidly (time slicing), allowing for interactive use.
Incorrect! Try again.
7In a Symmetric Multiprocessing (SMP) system:
A.One master processor controls slave processors
B.Each processor runs an identical copy of the OS and they communicate
C.Only one processor handles I/O
D.Processors are located in different geographical locations
Correct Answer: Each processor runs an identical copy of the OS and they communicate
Explanation:In SMP, all processors are peers; no single processor is the master. They all run copies of the OS and share memory.
Incorrect! Try again.
8What defines a Distributed Operating System?
A.A system running on a single powerful mainframe
B.A collection of independent computers that appears to its users as a single coherent system
C.A system designed for real-time constraints
D.A system with multiple CPUs sharing the same clock and memory
Correct Answer: A collection of independent computers that appears to its users as a single coherent system
Explanation:Distributed systems consist of loosely coupled processors (each with its own memory and clock) communicating via a network.
Incorrect! Try again.
9Which of the following is a strict requirement for a Hard Real-Time Operating System (RTOS)?
A.User-friendly interface
B.Guaranteed completion of critical tasks within a specific time constraint
C.High throughput for batch jobs
D.Virtual memory management
Correct Answer: Guaranteed completion of critical tasks within a specific time constraint
Explanation:Hard RTOS systems (e.g., pacemaker, missile control) fail if a task is not completed by its deadline.
Incorrect! Try again.
10What are 'Tightly Coupled' systems also known as?
A.Distributed Systems
B.Parallel Systems
C.Batch Systems
D.Personal Computer Systems
Correct Answer: Parallel Systems
Explanation:Parallel systems (Multiprocessors) share the same memory and clock, making them tightly coupled, as opposed to distributed systems which are loosely coupled.
Incorrect! Try again.
11Which component acts as the interface between a running program and the Operating System?
A.BIOS
B.System Calls
C.Interrupt Vector
D.Bus
Correct Answer: System Calls
Explanation:System calls provide the Interface between a process (running program) and the operating system to request services.
Incorrect! Try again.
12In the context of OS structure, what is a Microkernel?
A.A kernel that is very small in file size
B.A structure where the entire OS runs in kernel mode
C.A structure that moves as much functionality as possible from the kernel into user space
D.A kernel designed only for microcomputers
Correct Answer: A structure that moves as much functionality as possible from the kernel into user space
Explanation:Microkernels minimize the kernel by moving non-essential components (like file systems or device drivers) to user space, communicating via message passing.
Incorrect! Try again.
13What is the 'Bootstrap Program'?
A.The first user program to run
B.The program that initializes the OS during computer startup
C.A program to manage boots
D.The shutdown sequence
Correct Answer: The program that initializes the OS during computer startup
Explanation:Stored in ROM or EEPROM, the bootstrap program initializes all aspects of the system and loads the operating system kernel into memory.
Incorrect! Try again.
14Which of the following is NOT a primary function of an Operating System?
A.Memory Management
B.Process Management
C.Source Code Compilation
D.File Management
Correct Answer: Source Code Compilation
Explanation:Compiling source code is the function of a Compiler, not the Operating System. The OS manages resources like memory, processes, and files.
Incorrect! Try again.
15What is a Process?
A.A program in execution
B.A program stored on the hard disk
C.A system call
D.A high-level language code
Correct Answer: A program in execution
Explanation:A program is a passive entity (file on disk), whereas a process is an active entity representing that program while it is running.
Incorrect! Try again.
16Which data structure does the OS use to store all information about a specific process?
A.File Control Block
B.Process Control Block (PCB)
C.Page Table
D.Interrupt Vector Table
Correct Answer: Process Control Block (PCB)
Explanation:The PCB (also called Task Control Block) serves as the repository for any information that may vary from process to process (registers, state, ID, etc.).
Incorrect! Try again.
17Which of the following is NOT contained in a Process Control Block (PCB)?
A.Program Counter
B.CPU Registers
C.Process State
D.Source code of the program
Correct Answer: Source code of the program
Explanation:The PCB contains execution data (state, registers, counters, memory limits) but does not contain the static source code.
Incorrect! Try again.
18When a process switches from the 'Running' state to the 'Ready' state, what is the likely cause?
A.I/O completion
B.Process termination
C.An interrupt occurs (e.g., time quantum expiry)
D.Waiting for user input
Correct Answer: An interrupt occurs (e.g., time quantum expiry)
Explanation:A switch from Running to Ready usually happens when the scheduler stops the process to let another run (preemption) or a time slice expires.
Incorrect! Try again.
19What state is a process in when it is waiting for some event to occur (such as an I/O completion)?
A.New
B.Running
C.Ready
D.Waiting (or Blocked)
Correct Answer: Waiting (or Blocked)
Explanation:A process enters the Waiting state when it cannot proceed until an external event, like an I/O operation, is finished.
Incorrect! Try again.
20The mechanism of saving the state of the old process and loading the saved state of the new process is called:
A.Process Creation
B.Context Switch
C.Context Saving
D.Swapping
Correct Answer: Context Switch
Explanation:Context Switching is the process of storing the state of the current process so that it can be resumed later and restoring the state of the next process.
Incorrect! Try again.
21What is a significant downside of Context Switching?
A.It creates deadlocks
B.It is purely overhead; the system does no useful work while switching
C.It decreases the number of processes
D.It requires user intervention
Correct Answer: It is purely overhead; the system does no useful work while switching
Explanation:Context switching takes CPU time to save and load registers/maps. During this transition, no user applications are executing.
Incorrect! Try again.
22Which system call is typically used in Unix/Linux systems to create a new process?
A.create()
B.new()
C.fork()
D.start()
Correct Answer: fork()
Explanation:fork() is the standard system call in Unix-like operating systems to create a new process, which is a copy of the parent.
Incorrect! Try again.
23What is a 'Zombie' process?
A.A process that has terminated, but its parent has not yet called wait()
B.A process running indefinitely
C.A process that consumes all CPU resources
D.A virus process
Correct Answer: A process that has terminated, but its parent has not yet called wait()
Explanation:A zombie is a process that has completed execution but still has an entry in the process table because the parent hasn't retrieved its exit status.
Incorrect! Try again.
24What happens to a child process if its parent terminates without invoking wait(), and the OS does not cascade termination?
A.It is terminated immediately
B.It becomes an Orphan process
C.It becomes a Zombie process
D.It stops executing but remains in memory
Correct Answer: It becomes an Orphan process
Explanation:An orphan process is a child process whose parent has finished or terminated. In Unix, these are usually adopted by the init process.
Incorrect! Try again.
25Two processes are 'Cooperating' if:
A.They share the same CPU
B.One process can affect or be affected by the other process
C.They are both in the Ready queue
D.They have different Process IDs
Correct Answer: One process can affect or be affected by the other process
Explanation:Cooperating processes share data or states. Independent processes do not affect one another.
Incorrect! Try again.
26Which of the following is NOT a reason for providing an environment for cooperating processes?
A.Information Sharing
B.Computation Speedup
C.Modularity
D.Hardware Protection
Correct Answer: Hardware Protection
Explanation:Information sharing, speedup (via parallelism), and modularity are benefits of cooperating processes. Hardware protection is an OS function, not a reason for cooperation.
Incorrect! Try again.
27Which method allows processes to communicate by exchanging messages without sharing the same address space?
A.Shared Memory
B.Message Passing
C.Direct Memory Access
D.Virtual Memory
Correct Answer: Message Passing
Explanation:Message passing (IPC) allows processes to communicate and synchronize actions via a message queue or channel, without accessing the same memory block.
Incorrect! Try again.
28In the Producer-Consumer problem using Shared Memory, what is the 'Producer' doing?
A.Consuming data from the buffer
B.Generating data and placing it into the buffer
C.Managing the memory allocation
D.Deleting the buffer
Correct Answer: Generating data and placing it into the buffer
Explanation:The Producer process creates information/items and puts them into a shared buffer, while the Consumer retrieves them.
Incorrect! Try again.
29Which scheduler controls the degree of multiprogramming?
A.Short-term Scheduler
B.Medium-term Scheduler
C.Long-term Scheduler
D.I/O Scheduler
Correct Answer: Long-term Scheduler
Explanation:The Long-term scheduler (Job scheduler) selects which processes are brought into the ready queue (memory), thus determining how many processes are in memory.
Incorrect! Try again.
30The Short-term Scheduler (CPU Scheduler) is responsible for:
A.Selecting which process should be executed next and allocating the CPU
B.Moving processes from disk to memory
C.Handling swap space
D.Creating the PCB
Correct Answer: Selecting which process should be executed next and allocating the CPU
Explanation:The short-term scheduler selects from the processes that are ready to execute and allocates the CPU to one of them. It runs very frequently.
Incorrect! Try again.
31What action does the Medium-term Scheduler typically perform?
A.Swapping processes in and out of memory
B.Creating new processes
C.Assigning PIDs
D.Shutting down the system
Correct Answer: Swapping processes in and out of memory
Explanation:The Medium-term scheduler removes processes from memory (swapping out) to reduce contention and reintroduces them later (swapping in).
Incorrect! Try again.
32In Direct Communication (Message Passing), how must processes be addressed?
A.Using a mailbox ID
B.Implicitly
C.Explicitly naming the recipient or sender
D.Broadcasting to all
Correct Answer: Explicitly naming the recipient or sender
Explanation:In direct communication, send(P, message) sends a message to process P, requiring the explicit name of the process.
Incorrect! Try again.
33Which of the following refers to the number of processes completed per time unit?
A.Turnaround time
B.Throughput
C.Waiting time
D.Response time
Correct Answer: Throughput
Explanation:Throughput is a measure of work done, specifically the number of processes that complete execution per time unit.
Incorrect! Try again.
34The 'exec()' system call is used to:
A.Create a new process
B.Replace the process's memory space with a new program
C.Exit the process
D.Wait for a child process
Correct Answer: Replace the process's memory space with a new program
Explanation:exec() loads a new binary file into memory, destroying the old code image and replacing it with the new one, effectively running a new program within the same process.
Incorrect! Try again.
35Which type of operating system is typically used in embedded devices like washing machines or microwaves?
A.Batch OS
B.Distributed OS
C.Network OS
D.Real-Time OS (or Embedded OS)
Correct Answer: Real-Time OS (or Embedded OS)
Explanation:Embedded devices usually require specific timing and resource constraints, often utilizing RTOS or specialized embedded OS versions.
Incorrect! Try again.
36What is the 'Kernel' of an Operating System?
A.The shell that the user interacts with
B.The central core of the OS that manages resources and hardware
C.The file system structure
D.The application software layer
Correct Answer: The central core of the OS that manages resources and hardware
Explanation:The kernel is the one program running at all times on the computer; it manages input/output requests from software and translates them into data processing instructions for the CPU.
Incorrect! Try again.
37A process control block (PCB) is also known as:
A.Task Control Block
B.Memory Control Block
C.File Control Block
D.I/O Control Block
Correct Answer: Task Control Block
Explanation:PCB and Task Control Block (TCB) are terms often used interchangeably to describe the data structure storing process information.
Incorrect! Try again.
38In Indirect Communication (Message Passing), messages are sent to and received from:
A.Registers
B.Mailboxes (or Ports)
C.The Stack
D.The Heap
Correct Answer: Mailboxes (or Ports)
Explanation:In indirect communication, messages are not sent directly to a process but to a mailbox or port, which can be viewed as an object into which messages can be placed.
Incorrect! Try again.
39What constitutes the 'state' of a process?
A.Only the program code
B.The current activity of the process
C.The file name on the disk
D.The user who owns the process
Correct Answer: The current activity of the process
Explanation:The state is defined by the current activity, such as New, Ready, Running, Waiting, or Terminated.
Incorrect! Try again.
40Which operation allows a parent process to synchronize its execution with the termination of a child process?
A.fork()
B.wait()
C.exit()
D.signal()
Correct Answer: wait()
Explanation:The wait() system call suspends execution of the calling process until one of its children terminates.
Incorrect! Try again.
41What is a Clustered System?
A.A single processor system
B.Two or more individual systems gathered together to perform computational tasks
C.A batch processing system
D.A mainframe
Correct Answer: Two or more individual systems gathered together to perform computational tasks
Explanation:Clustered systems gather multiple CPUs (usually individual systems) to work together, often sharing storage and linked via a LAN, to provide high availability.
Incorrect! Try again.
42During a Context Switch, where is the context of the old process saved?
A.In the new process's stack
B.In the CPU registers
C.In its Process Control Block (PCB)
D.In the secondary storage
Correct Answer: In its Process Control Block (PCB)
Explanation:The OS saves the current state (registers, PC, etc.) into the PCB of the process being swapped out so it can be restored later.
Incorrect! Try again.
43Which command interpreter typically runs when a user logs in on a Unix system?
A.The Kernel
B.The Shell
C.The Compiler
D.The Loader
Correct Answer: The Shell
Explanation:The Shell (e.g., Bash, sh) is the command interpreter that acts as the interface between the user and the operating system.
Incorrect! Try again.
44Which of the following is an example of a System Call used for File Management?
A.fork()
B.open()
C.wait()
D.time()
Correct Answer: open()
Explanation:open() is a system call used to open a file. fork and wait are for process control, and time is for information maintenance.
Incorrect! Try again.
45In the evolution of Operating Systems, what replaced vacuum tubes?
A.Transistors
B.Integrated Circuits
C.Large Scale Integration
D.Relays
Correct Answer: Transistors
Explanation:The second generation of computers (and OS evolution) moved from vacuum tubes to transistors, which were smaller, faster, and more reliable.
Incorrect! Try again.
46What does 'Program Counter' in the PCB indicate?
A.The number of programs running
B.The address of the next instruction to be executed
C.The total memory used
D.The time the process has been running
Correct Answer: The address of the next instruction to be executed
Explanation:The Program Counter (PC) holds the memory address of the next instruction the process is scheduled to execute.
Incorrect! Try again.
47Synchronous Message Passing is also known as:
A.Non-blocking
B.Interrupt driven
C.Rendezvous
D.Polled
Correct Answer: Rendezvous
Explanation:In synchronous message passing, the sender must wait for the receiver to accept the message (blocking send/receive), effectively synchronizing them at a 'rendezvous' point.
Incorrect! Try again.
48Which queue holds the processes that are residing in main memory and are ready and waiting to execute?
A.Job Queue
B.Ready Queue
C.Device Queue
D.Waiting Queue
Correct Answer: Ready Queue
Explanation:The Ready Queue contains all processes that are in memory and ready to run, waiting only for the CPU to be assigned.
Incorrect! Try again.
49The transition from 'New' to 'Ready' state is approved by:
A.Short-term scheduler
B.Long-term scheduler
C.Dispatcher
D.User
Correct Answer: Long-term scheduler
Explanation:The Long-term scheduler admits new processes into the system (memory), moving them from the 'New' state (creation) to the 'Ready' queue.
Incorrect! Try again.
50What is the primary advantage of Shared Memory over Message Passing for IPC?
A.Easier to implement in distributed systems
B.Faster communication as it avoids system calls for data access
C.No synchronization required
D.Works across networks
Correct Answer: Faster communication as it avoids system calls for data access
Explanation:Once the shared memory region is established, accesses are treated as routine memory accesses, avoiding the kernel intervention required in message passing.
Incorrect! Try again.
Give Feedback
Help us improve by sharing your thoughts or reporting issues.