What is an Operating System?
- A
Software that manages computer hardware and software resources
- B
A programming language
- C
A type of application software
- D
A hardware component
Master Operating Systems with 120+ curated MCQs covering process management, memory management, file systems, scheduling, and more. Perfect for GATE, interviews, and university exams.
What is an Operating System?
Software that manages computer hardware and software resources
A programming language
A type of application software
A hardware component
Which of the following is NOT an operating system?
Windows
Linux
macOS
Microsoft Office
What is the kernel of an operating system?
The core component that manages system resources
A user interface
A file system
A device driver
What is the difference between a monolithic and microkernel architecture?
Monolithic has all services in kernel, microkernel has minimal kernel
Microkernel has all services in kernel, monolithic has minimal kernel
Both have all services in kernel
Both have minimal kernel
What is the purpose of system calls in an OS?
To allow user programs to request services from the kernel
To manage memory allocation
To handle file operations
To manage processes
What is the bootstrap program in an OS?
The program that initializes the OS at system startup
A program that manages files
A program that manages memory
A program that handles errors
What is a process in an operating system?
A program in execution
A program stored on disk
A file
A device driver
What is the difference between a process and a thread?
Processes are independent, threads share resources
Threads are independent, processes share resources
Both are independent
Both share resources
What are the states of a process?
New, Running, Waiting, Ready, Terminated
Start, Run, Stop, Pause
Active, Inactive, Suspended
Open, Closed, Pending
What is a context switch?
Switching the CPU from one process to another
Switching between threads
Switching between programs
Switching between operating systems
What is a process control block (PCB)?
A data structure containing process information
A hardware component
A type of memory
A file system
What is the purpose of scheduling in an OS?
To allocate CPU time to processes
To allocate memory to processes
To allocate I/O to processes
To allocate files to processes
What is the FCFS scheduling algorithm?
First Come First Served
First Come First Scheduled
Fast CPU First Served
First CPU First Served
What is the SJF scheduling algorithm?
Shortest Job First
Shortest Job Fast
Simple Job First
Standard Job First
What is the Round Robin scheduling algorithm?
Each process gets a fixed time quantum
Processes run until completion
Shortest process runs first
Priority-based scheduling
What is the difference between preemptive and non-preemptive scheduling?
Preemptive allows process interruption, non-preemptive doesn't
Non-preemptive allows process interruption, preemptive doesn't
Both allow interruption
Neither allows interruption
What is the priority scheduling algorithm?
Processes with higher priority run first
Processes with lower priority run first
All processes run equally
Random process selection
What is the purpose of multilevel queue scheduling?
To have multiple queues for different process types
To have a single queue for all processes
To prioritize all processes equally
To randomize process selection
What is a critical section?
A segment of code that accesses shared resources
A segment of code that doesn't access shared resources
A segment of code that runs only once
A segment of code that runs forever
What is a semaphore?
A synchronization tool for process coordination
A type of memory
A type of file
A type of process
What is the difference between mutex and semaphore?
Mutex is a binary semaphore, semaphore can be counting
Semaphore is a binary mutex, mutex can be counting
Both are the same
Neither is used for synchronization
What is a deadlock?
Two or more processes waiting for each other to release resources
A process waiting for its own resource
A process terminating normally
A process running indefinitely
What are the conditions for deadlock?
Mutual Exclusion, Hold and Wait, No Preemption, Circular Wait
Parallel Processing, Shared Memory, Priority Inversion
Resource Allocation, Process Scheduling, Memory Management
CPU Management, I/O Management, File Management
What is the Banker's algorithm used for?
To prevent deadlock
To detect deadlock
To recover from deadlock
To ignore deadlock
What is the purpose of memory management in an OS?
To manage allocation and deallocation of memory
To manage CPU scheduling
To manage I/O operations
To manage file systems
What is the difference between physical and logical address space?
Physical is hardware address, logical is program address
Logical is hardware address, physical is program address
Both are hardware addresses
Both are program addresses
What is paging in memory management?
Dividing physical memory into fixed-size blocks called frames
Dividing memory into variable-size blocks
Moving processes between memory and disk
Allocating contiguous memory to processes
What is the difference between segmentation and paging?
Segmentation divides by logical units, paging divides by fixed size
Paging divides by logical units, segmentation divides by fixed size
Both divide by logical units
Both divide by fixed size
What is virtual memory?
Memory that appears to be larger than physical memory
Memory that is always physically available
Memory that cannot be accessed
Memory that is only used for the OS
What is page fault in virtual memory?
Accessing a page that is not in memory
Accessing a page that is in memory
A page that is corrupted
A page that is protected
What is the FIFO page replacement algorithm?
Replaces the oldest page in memory
Replaces the least recently used page
Replaces the most recently used page
Replaces a random page
What is the LRU page replacement algorithm?
Replaces the least recently used page
Replaces the most recently used page
Replaces the oldest page
Replaces the newest page
What is the Optimal page replacement algorithm?
Replaces the page that will not be used for the longest time
Replaces the least recently used page
Replaces the oldest page
Replaces a random page
What is the clock page replacement algorithm?
A circular buffer approach to page replacement
A stack-based approach to page replacement
A queue-based approach to page replacement
A tree-based approach to page replacement
What is the purpose of the reference bit in page replacement?
To track if a page has been accessed
To track if a page has been modified
To track the page location
To track the page size
What is thrashing in virtual memory?
Excessive page fault activity reducing performance
Page faults being handled efficiently
Memory being used optimally
Pages being replaced optimally
What is a file system?
A method of organizing and storing files on storage devices
A type of memory
A type of process
A type of scheduling
What is the difference between a file and a directory?
A file stores data, a directory stores files and directories
A directory stores data, a file stores other files
Both store data
Both store directories
What is the purpose of file allocation tables?
To track where files are stored on disk
To track which files are open
To track file permissions
To track file sizes
What are the common file allocation methods?
Contiguous, Linked, Indexed
Sequential, Random, Direct
FAT, NTFS, ext4
Primary, Secondary, Tertiary
What is the purpose of file permissions?
To control access to files
To control file size
To control file location
To control file type
What is the difference between FAT, NTFS, and ext4?
Different file systems with different features and capabilities
Same file system with different names
Different operating systems
Different types of memory
What is the purpose of I/O management in an OS?
To manage input and output devices
To manage memory
To manage processes
To manage files
What is a device driver?
Software that controls a specific I/O device
A hardware component
A type of file
A type of memory
What is the difference between polling and interrupts?
Polling checks device status, interrupts are triggered by device
Interrupts check device status, polling is triggered by device
Both check device status
Both are triggered by device
What is DMA (Direct Memory Access)?
Allowing I/O devices to access memory without CPU intervention
Direct CPU access to memory
Memory access through the CPU
Memory access through the OS
What is the purpose of buffering in I/O?
To temporarily store data during I/O operations
To permanently store data
To delete data
To compress data
What is the purpose of spooling in I/O?
To queue jobs for output devices
To delete jobs
To prioritize jobs
To cancel jobs
What is the difference between a hard disk and SSD?
HDD uses mechanical parts, SSD uses flash memory
SSD uses mechanical parts, HDD uses flash memory
Both use mechanical parts
Both use flash memory
What is disk scheduling?
The process of ordering disk requests to optimize performance
The process of formatting disks
The process of partitioning disks
The process of defragmenting disks
What is the FCFS disk scheduling algorithm?
First Come First Served
First Cylinder First Served
Fast Cylinder First Served
File Cylinder First Served
What is the SCAN disk scheduling algorithm?
Moves disk arm in one direction, then reverses
Moves disk arm in a circular pattern
Moves disk arm to nearest request
Moves disk arm to farthest request
What is the purpose of disk formatting?
To prepare the disk for storing data
To delete all data
To optimize disk performance
To check for errors
What is RAID?
Redundant Array of Independent Disks
Random Access Independent Disks
Redundant Access Independent Disks
Random Array of Independent Disks
What is the purpose of OS security?
To protect system resources and data from unauthorized access
To improve system performance
To manage memory
To manage processes
What is the difference between a virus and a worm?
Virus needs host program, worm is self-replicating
Worm needs host program, virus is self-replicating
Both need host programs
Both are self-replicating
What is the purpose of user authentication?
To verify the identity of a user
To provide user interface
To manage user files
To schedule user tasks
What is the difference between authorization and authentication?
Authentication verifies identity, authorization grants permissions
Authorization verifies identity, authentication grants permissions
Both verify identity
Both grant permissions
What is a firewall in an OS?
A system that monitors and controls network traffic
A system that manages memory
A system that manages processes
A system that manages files
What is the principle of least privilege in OS security?
Users should have only the minimum privileges needed
Users should have all privileges
Users should have no privileges
Users should have random privileges
What is a distributed operating system?
An OS that runs on multiple interconnected computers
An OS that runs on a single computer
An OS that runs on mobile devices
An OS that runs on embedded systems
What is the difference between a distributed and a network OS?
Distributed OS presents a single system image, network OS doesn't
Network OS presents a single system image, distributed OS doesn't
Both present a single system image
Neither presents a single system image
What is the purpose of process migration in distributed systems?
To move processes between systems for load balancing
To terminate processes
To create new processes
To schedule processes
What is a distributed file system?
A file system that spans multiple computers
A file system on a single computer
A file system on a mobile device
A file system on a cloud server
What is the purpose of remote procedure calls (RPC) in distributed systems?
To allow programs to execute procedures on remote systems
To allow programs to execute locally
To manage memory remotely
To manage files remotely
What is the difference between RPC and RMI?
RPC is for procedural languages, RMI is for object-oriented languages
RMI is for procedural languages, RPC is for object-oriented languages
Both are for procedural languages
Both are for object-oriented languages
What is a real-time operating system?
An OS designed for applications with strict timing requirements
An OS that runs in real time
An OS that runs slowly
An OS that runs on mobile devices
What is the difference between hard and soft real-time systems?
Hard RTOS must meet deadlines, soft RTOS can miss deadlines occasionally
Soft RTOS must meet deadlines, hard RTOS can miss deadlines occasionally
Both must meet deadlines
Both can miss deadlines
What is the purpose of task scheduling in RTOS?
To ensure timely execution of tasks
To execute tasks randomly
To execute tasks slowly
To execute tasks sequentially
What is the difference between preemptive and non-preemptive scheduling in RTOS?
Preemptive allows higher priority tasks to interrupt, non-preemptive doesn't
Non-preemptive allows higher priority tasks to interrupt, preemptive doesn't
Both allow interruptions
Neither allows interruptions
What is priority inversion in RTOS?
A lower priority task holding a resource needed by a higher priority task
A higher priority task holding a resource needed by a lower priority task
Tasks having equal priority
Tasks having random priority
What is the purpose of priority inheritance in RTOS?
To temporarily increase priority of a task holding a resource
To temporarily decrease priority of a task holding a resource
To permanently increase priority
To permanently decrease priority
Who created the Linux kernel?
Linus Torvalds
Richard Stallman
Bill Gates
Steve Jobs
What is the GNU Project?
A project to create a free Unix-like operating system
A project to create Windows
A project to create macOS
A project to create Android
What is the shell in Linux?
A command-line interface to interact with the OS
A graphical user interface
A file system
A type of memory
What is the difference between Linux and Unix?
Linux is a free version of Unix
Unix is a free version of Linux
Both are the same
Neither is related
What is the purpose of the /etc directory in Linux?
To store system configuration files
To store user files
To store device files
To store temporary files
What is the purpose of the /dev directory in Linux?
To store device files
To store system configuration files
To store user files
To store temporary files
What is the Windows NT architecture?
A microkernel-based architecture
A monolithic architecture
A hybrid architecture
A layered architecture
What is the Registry in Windows?
A database for system configuration
A file system
A memory management system
A process management system
What is the purpose of the Windows Kernel?
To manage system resources
To provide user interface
To manage files
To manage networks
What is the difference between Windows 10 and Windows 11?
Windows 11 has updated UI, better performance, and new features
Windows 10 has updated UI, Windows 11 has better performance
Both are the same
Windows 11 is discontinued
What is the purpose of the Windows Update service?
To provide security patches and feature updates
To uninstall applications
To manage files
To manage devices
What is the difference between Windows Subsystem for Linux (WSL) and running Linux on a VM?
WSL uses less resources and provides better integration with Windows
VM uses less resources than WSL
Both are the same
WSL cannot run Linux applications
Who developed the Android operating system?
Apple
Microsoft
Linux Foundation
What is the Android kernel based on?
Linux kernel
Windows kernel
macOS kernel
Unix kernel
What is the purpose of the Android runtime (ART)?
To execute Android applications
To manage files
To manage devices
To manage networks
What is the difference between Android and iOS?
Android is open source, iOS is proprietary
iOS is open source, Android is proprietary
Both are open source
Both are proprietary
What is an APK file in Android?
Android Package file for app installation
Android Kernel file
Android Configuration file
Android Resource file
What is the purpose of Android permissions?
To control app access to system resources
To control app installation
To control app deletion
To control app updates
What is virtualization in computing?
Creating virtual versions of computing resources
Creating physical versions of computing resources
Deleting computing resources
Modifying computing resources
What is the difference between Type 1 and Type 2 hypervisors?
Type 1 runs on bare metal, Type 2 runs on host OS
Type 2 runs on bare metal, Type 1 runs on host OS
Both run on bare metal
Both run on host OS
What is the purpose of containerization (Docker)?
To package applications with their dependencies
To create virtual machines
To manage networks
To manage storage
What is the difference between virtual machines and containers?
VMs include an entire OS, containers share the host OS
Containers include an entire OS, VMs share the host OS
Both include an entire OS
Both share the host OS
What is the purpose of the hypervisor?
To manage virtual machines
To manage physical machines
To manage networks
To manage storage
What is the purpose of cloud computing?
To provide on-demand computing resources over the internet
To provide local computing resources
To delete computing resources
To slow down computing resources
What is the difference between 32-bit and 64-bit operating systems?
64-bit can address more memory and has better performance
32-bit can address more memory than 64-bit
Both can address the same memory
64-bit is slower than 32-bit
What is a daemon process?
A background process that provides system services
A user interface process
A file management process
A memory management process
What is the purpose of multi-level feedback queue scheduling?
To allow processes to move between queues based on behavior
To keep all processes in one queue
To randomize process selection
To prioritize all processes equally
What is a monitor in process synchronization?
A high-level synchronization construct
A low-level synchronization construct
A type of memory
A type of process
What is the purpose of the memory management unit (MMU)?
To translate virtual to physical addresses
To manage CPU scheduling
To manage I/O operations
To manage file systems
What is the purpose of the modified bit in page tables?
To track if a page has been modified
To track if a page has been accessed
To track the page location
To track the page size
What is the purpose of file system journaling?
To maintain a log of file system changes for recovery
To speed up file access
To compress files
To encrypt files
What is the difference between synchronous and asynchronous I/O?
Synchronous I/O blocks until complete, asynchronous I/O doesn't
Asynchronous I/O blocks until complete, synchronous I/O doesn't
Both block until complete
Neither blocks until complete
What is the purpose of disk defragmentation?
To reorganize files for better performance
To delete files
To compress files
To encrypt files
What is a Trojan horse in OS security?
Malicious software disguised as legitimate software
A virus that replicates itself
A self-replicating worm
A harmless program
What is the purpose of distributed consensus algorithms?
To ensure agreement among distributed systems
To increase performance
To decrease latency
To improve security
What is the purpose of the rate-monotonic scheduling algorithm?
To schedule periodic tasks based on their periods
To schedule tasks randomly
To schedule tasks based on priority
To schedule tasks based on size
What is the purpose of the 'ls' command in Linux?
To list directory contents
To list processes
To list files
To list directories
What is the purpose of the Task Manager in Windows?
To manage processes and system performance
To manage files
To manage networks
To manage devices
What is the purpose of the Android application lifecycle?
To manage app states during execution
To manage app installation
To manage app deletion
To manage app updates
What is the difference between virtualization and emulation?
Virtualization is faster, emulation simulates hardware
Emulation is faster, virtualization simulates hardware
Both are the same
Neither is used in modern computing
What is the purpose of the boot loader?
To load the operating system into memory
To manage files
To manage processes
To manage memory
What is the purpose of the 'fork' system call in Unix/Linux?
To create a new process
To create a new file
To create a new directory
To create a new thread
What is the purpose of the TLB (Translation Lookaside Buffer)?
To cache page table entries
To manage file system
To manage I/O
To manage processes
What is the purpose of encryption in OS security?
To protect data from unauthorized access
To protect data from corruption
To protect data from deletion
To protect data from compression
What is the CAP theorem in distributed systems?
Consistency, Availability, Partition tolerance
Consistency, Availability, Performance
Consistency, Availability, Security
Consistency, Availability, Scalability
What is the purpose of the 'chmod' command in Linux?
To change file permissions
To change file owner
To change file content
To change file location
What is the purpose of the Control Panel in Windows?
To manage system settings
To manage files
To manage networks
To manage devices
What is the difference between IaaS, PaaS, and SaaS?
IaaS provides infrastructure, PaaS provides platform, SaaS provides software
PaaS provides infrastructure, IaaS provides platform, SaaS provides software
SaaS provides infrastructure, IaaS provides platform, PaaS provides software
All provide the same service