Operating System – Complete Study Notes

⭐ Operating System (OS)

  • An Operating System (OS) is system software.
  • It manages computer hardware and software resources.
  • It allows the user to interact with the computer.
  • Without an OS, a computer cannot work.

Definition

πŸ‘‰ An Operating System is a program that acts as an interface between the user and the computer hardware.

Examples

  • Windows
  • Linux
  • macOS
  • Android
  • iOS
  • Unix


🧠 Functions of an Operating System

FunctionSimple MeaningExample
Process ManagementHandles running programsOpening Chrome + Word together
Memory ManagementAllocates RAM to programsOS gives memory to apps
File ManagementManages files and foldersCreate, delete, rename
Device ManagementControls input/output devicesKeyboard, mouse, printer
SecurityProtects data and accessPassword, antivirus
User InterfaceHelps user interactGUI with icons & windows
Error HandlingDetects & fixes errorsβ€œNot responding” message
Resource AllocationShares resources fairlyCPU time sharing

Types of Operating Systems

Type of OSMeaningExample
Batch OSTasks collected & processed in batches (No user interaction)Payroll processing
Time-Sharing OSMany users share system at same timeMainframes
Real-Time OS (RTOS)Immediate response neededFlight control, medical systems
Distributed OSUses multiple computers as one systemCloud computing
Multi-user OSMany users can use one systemUnix, Linux
Mobile OSOS for smartphonesAndroid, iOS
Network OSControls computers in a networkWindows Server

Types of User Interfaces

TypeFull Form / MeaningExamples
GUIGraphical User InterfaceWindows, Android
CLICommand Line InterfaceMS-DOS, Linux terminal
TUIText User InterfaceOld systems

πŸ‘¨β€πŸ’» Types of Processes

  • Process = Running program
  • Types:
    • Foreground process – Visible to user (Example: Browser)
    • Background process – Runs behind (Example: Antivirus scan)

🧠 Multitasking vs Multiprocessing vs Multithreading

TermMeaningExample
MultitaskingOS runs many tasks at same timeSongs + browsing
MultiprocessingMany CPUs used togetherQuad-core processor
MultithreadingMany parts of same program run parallelDownload + browse in browser

πŸ” OS Security Features

  • Password protection
  • Firewalls
  • Encryption
  • Access permissions (Read / Write / Execute)

πŸ–₯ Memory Management Concepts

TermMeaning
Primary memory (RAM)Temporary storage
Secondary memoryPermanent storage
Virtual MemoryUses hard disk as additional RAM
PagingMemory divided into pages
SegmentationMemory divided into segments

πŸ“ File System Concepts

TermMeaning
FileCollection of data
Directory / FolderStores files
PathAddress of file
File extensionType of file (.doc, .exe, .txt)

πŸ”Œ Device Management

  • OS manages I/O devices.
  • Uses Device Drivers (software that runs hardware).
  • Example: Printer driver, Sound driver.

⭐ Important Terms

TermSimple Meaning
KernelCore of the OS, controls hardware
ShellInterface between user & OS
BootingStarting the computer
Cold bootPower ON boot
Warm bootRestart boot
DeadlockTwo processes waiting for each other forever

πŸ“ Most Important Points

  • OS = Interface between User & Hardware
  • Kernel = Heart of OS
  • GUI vs CLI
  • Virtual memory
  • Multi-user & Multitasking systems
  • Batch, Real-time, Distributed OS
  • Booting (Cold/Warm)
  • Device Drivers
  • Deadlock

🧠 OPERATING SYSTEM – MIND MAP SUMMARY

                                   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                                   β”‚   OPERATING SYSTEM   β”‚
                                   β”‚ (Interface between   β”‚
                                   β”‚  User & Hardware)    β”‚
                                   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                                  β”‚
       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
       β”‚                                          β”‚                                          β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”                          β”Œβ”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”                       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   FUNCTIONS  β”‚                          β”‚   COMPONENTS   β”‚                       β”‚   TYPES OF OS     β”‚
β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜                          β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜                       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
       β”‚                                           β”‚                                          β”‚
       β”‚                                           β”‚                                          β”‚
 Process Mgmt                          Kernel (Core of OS)                    Batch OS
 Memory Mgmt                           Shell (Command Interface)              Real-Time OS
 File Mgmt                             File System                            Distributed OS
 Device Mgmt                           Drivers                                Time-Sharing OS
 Security                              Bootloader / BIOS                      Multiuser OS
 UI (GUI/CLI)                                                                     Mobile OS
 Error Handling                                                                     Network OS
 Resource Allocation


🎯 KEY CONCEPTS

PROCESS  β†’ Running program
THREAD   β†’ Part of process (lightweight)
MULTITASKING   β†’ Many tasks at same time
MULTIPROCESSING   β†’ Many CPUs
MULTITHREADING   β†’ Many threads inside one program

🧠 MEMORY MANAGEMENT

RAM (Volatile)
ROM (Permanent)
CACHE (Fastest)
VIRTUAL MEMORY (Hard Disk used as RAM)

Paging β†’ Fixed size pages
Segmentation β†’ Logical segments (code, data, stack)
Thrashing β†’ Excessive paging swapping

πŸ“ FILE & DEVICE MANAGEMENT

File = Data storage
Directory = Folder storing files
Driver = Software controlling hardware
Spooling = Print queue system (Printer)

πŸ–₯ USER INTERFACE TYPES

GUI β†’ Icons, windows, mouse (Windows, Android)
CLI β†’ Commands (MS-DOS, Linux terminal)

πŸ” SECURITY & SYSTEM TERMS

Firewall β†’ Network protection
Encryption β†’ Secure data
Authentication β†’ Password login
Deadlock β†’ Processes waiting forever
Booting β†’ Starting computer
 Warm Boot β†’ Restart
 Cold Boot β†’ Switch on from power off

πŸ“¦ TYPES OF SCHEDULING ALGORITHMS

FCFS β†’ First come first served
SJF β†’ Shortest job first
Round Robin β†’ Time slice rotation
Priority Scheduling β†’ Based on priority

πŸ“Œ IMPORTANT EXAMPLES

MOBILE OS     β†’ Android, iOS
DESKTOP OS    β†’ Windows, macOS, Linux
REAL-TIME OS  β†’ VxWorks, QNX, RT-Linux
DISTRIBUTED   β†’ LOCUS
NETWORK OS    β†’ Windows Server

🏁 EXAM QUICK RECALL

ConceptOne-Line
OSInterface between user & hardware
KernelHeart of OS
Virtual MemoryDisk works as RAM
DeadlockInfinite waiting
DriverControls hardware
SchedulerControls process execution

πŸ’‘ Summary

  • OS is necessary for running a computer.
  • Manages resources, memory, files & security.
  • Different types for different purposes.
  • Very important topic for banking and IT exams.

πŸ“„ ONE-LINER QUICK REVISION NOTES

TopicKey Point
OSInterface between user & hardware
KernelHeart/core of OS
ShellUser command interface
BootingStarting the computer
Warm bootRestart
Virtual MemoryHard disk used as RAM
DeadlockInfinite waiting
Device driversControl hardware
GUIGraphical Interface
CLICommand interface


πŸ“ Other Important OS Topics


1. Process Management & Synchronization

2. Memory Management

3. File Systems

4. Basics of OS & Types


🧠 OPERATING SYSTEM – MCQs

πŸ“ Topic-1: Basics & Introduction to OS – 50 MCQs

  1. Operating System is a type of:
    A) Application Software
    B) System Software
    C) Firmware
    D) Utility Software
    Answer: b
  2. Which of the following is NOT an operating system?
    A) Linux
    B) Windows
    C) Android
    D) Oracle
    Answer: d
  3. The OS works as an interface between:
    A) User and Hardware
    B) Mouse and Keyboard
    C) RAM and ROM
    D) Printer and Scanner
    Answer: a
  4. Which of the following controls execution of programs?
    A) Compiler
    B) Operating System
    C) Assembler
    D) Linker
    Answer: b
  5. Which OS is an example of open-source software?
    A) Windows
    B) macOS
    C) Linux
    D) iOS
    Answer: c
  6. The core component of OS is called:
    A) Shell
    B) Kernel
    C) Application
    D) Processor
    Answer: b
  7. Android OS is based on:
    A) UNIX
    B) Windows
    C) Linux kernel
    D) Macintosh
    Answer: c
  8. MS-DOS is a type of:
    A) GUI OS
    B) CLI OS
    C) Real-time OS
    D) Distributed OS
    Answer: b
  9. The primary purpose of an OS is to:
    A) Format disks
    B) Manage hardware and software resources
    C) Run applications faster
    D) Remove viruses
    Answer: b
  10. Which OS does Apple use in Mac computers?
    A) Ubuntu
    B) macOS
    C) Solaris
    D) Fedora
    Answer: b
  11. GUI stands for:
    A) Global User Interface
    B) Graphical User Interface
    C) Graphics Utility Interface
    D) General Utility Input
    Answer: b
  12. iOS is used in:
    A) Android phones
    B) Apple devices
    C) Windows PC
    D) Banking servers
    Answer: b
  13. Which OS is used mainly for servers & supercomputers?
    A) Windows 7
    B) Linux
    C) Symbian
    D) Chrome OS
    Answer: b
  14. Which of the following loads OS into memory during startup?
    A) Compiler
    B) BIOS
    C) Bootloader
    D) Kernel
    Answer: c
  15. UNIX was originally developed by:
    A) Microsoft
    B) Bell Labs
    C) IBM
    D) Intel
    Answer: b
  16. The first version of Windows was released in:
    A) 1981
    B) 1985
    C) 1989
    D) 1992
    Answer: b
  17. Restarting the computer without turning off power is called:
    A) Hard boot
    B) Warm boot
    C) Power boot
    D) Soft shutdown
    Answer: b
  18. The program that interprets commands is called:
    A) Kernel
    B) Shell
    C) Driver
    D) Disk manager
    Answer: b
  19. Which of the following is not a function of OS?
    A) Memory management
    B) Process management
    C) File handling
    D) Weather forecasting
    Answer: d
  20. The smallest unit of memory handled by OS is:
    A) Bit
    B) Byte
    C) KB
    D) File
    Answer: b
  21. Mobile operating system among the following is:
    A) DOS
    B) Windows 98
    C) Android
    D) Ubuntu
    Answer: c
  22. GUI uses:
    A) Commands only
    B) Icons, windows & menus
    C) Text editors
    D) Numeric codes
    Answer: b
  23. A running program is called:
    A) Command
    B) Process
    C) Thread
    D) Object
    Answer: b
  24. Software that controls hardware is called:
    A) BIOS
    B) Driver
    C) Compiler
    D) Linker
    Answer: b
  25. Which system allows multiple users at the same time?
    A) Single-user OS
    B) Multi-user OS
    C) Gate OS
    D) Multi-threaded OS
    Answer: b
  26. The OS that guarantees immediate response is:
    A) Batch OS
    B) Real-Time OS
    C) Network OS
    D) Mobile OS
    Answer: b
  27. The OS divides work into time slices in:
    A) Batch OS
    B) Time-sharing OS
    C) Multiprocessing OS
    D) Embedded OS
    Answer: b
  28. Windows Server is an example of:
    A) Network OS
    B) Mobile OS
    C) Desktop OS
    D) Real-time OS
    Answer: a
  29. Linux is written in:
    A) C language
    B) Java
    C) Python
    D) Assembly only
    Answer: a
  30. The OS used in ATM machines is usually:
    A) Batch OS
    B) Real-time OS
    C) Distributed OS
    D) Multiuser OS
    Answer: b
  31. Which OS uses terminal or shell commands?
    A) Windows 11
    B) Linux / Unix
    C) Android
    D) macOS
    Answer: b
  32. Chrome OS is developed by:
    A) Google
    B) Microsoft
    C) Apple
    D) IBM
    Answer: a
  33. The main memory managed by OS is:
    A) ROM
    B) RAM
    C) Hard disk
    D) CD-ROM
    Answer: b
  34. A user interacts with OS using:
    A) Shell
    B) ALU
    C) BIOS
    D) Compiler
    Answer: a
  35. Firmware is stored in:
    A) ROM
    B) RAM
    C) CPU
    D) HDD
    Answer: a
  36. Which OS is most used in mobile phones globally?
    A) iOS
    B) Android
    C) BlackBerry
    D) Symbian
    Answer: b
  37. The master control program is also called:
    A) Driver
    B) Operating System
    C) BIOS
    D) Task manager
    Answer: b
  38. Which OS supports multitasking?
    A) Windows
    B) Linux
    C) macOS
    D) All of the above
    Answer: d
  39. Which type of OS is used to control embedded devices?
    A) Mobile OS
    B) Real-time OS
    C) Distributed OS
    D) Batch OS
    Answer: b
  40. The OS responsible for protecting data and passwords:
    A) Security management
    B) Virus scanner
    C) File manager
    D) Hardware controller
    Answer: a
  41. An interface where user types commands is:
    A) GUI
    B) CLI
    C) VDU
    D) Menu OS
    Answer: b
  42. Which OS function allocates CPU time?
    A) Synchronization
    B) Scheduling
    C) Formatting
    D) Listing
    Answer: b
  43. Programs required for computer startup are stored in:
    A) RAM
    B) ROM
    C) Hard disk
    D) Pen drive
    Answer: b
  44. Which company developed Windows OS?
    A) Microsoft
    B) Google
    C) Apple
    D) IBM
    Answer: a
  45. Which OS is used in iPads?
    A) Android
    B) iPadOS
    C) Symbian
    D) Windows mobile
    Answer: b
  46. Which OS is most widely used on personal computers?
    A) UNIX
    B) Windows
    C) Android
    D) DOS
    Answer: b
  47. Which is an example of a network operating system?
    A) Windows 10
    B) Windows Server
    C) iOS
    D) Android
    Answer: b
  48. Another name for restart is:
    A) Shutdown
    B) Warm boot
    C) Cold boot
    D) BIOS clear
    Answer: b
  49. Which OS uses icons & menus for interaction?
    A) CLI
    B) GUI
    C) BIOS
    D) Scheduler
    Answer: b
  50. The OS manages which resources?
    A) CPU
    B) Memory
    C) Input / Output devices
    D) All of the above
    Answer: d

πŸ“Œ Process Management & Scheduling

  1. A running program is called:
    A) Thread
    B) Process
    C) Job
    D) Task
    Answer: b
  2. A process in the ready state means:
    A) It is waiting for I/O
    B) It is executing currently
    C) It is waiting to be assigned CPU
    D) It is completed
    Answer: c
  3. Scheduling is done by the:
    A) Compiler
    B) Scheduler
    C) Hard Disk
    D) Loader
    Answer: b
  4. The first process scheduling algorithm is:
    A) RR
    B) FCFS
    C) SJF
    D) Priority
    Answer: b
  5. SJF stands for:
    A) Small Job First
    B) Shortest Job First
    C) Simple Job Format
    D) Scheduled Job First
    Answer: b
  6. The scheduling method used in time-sharing systems is:
    A) FCFS
    B) Round Robin
    C) SJF
    D) LIFO
    Answer: b
  7. In Round Robin scheduling, each process gets:
    A) Long time slice
    B) Infinite time slice
    C) Fixed time quantum
    D) No time slice
    Answer: c
  8. Which scheduling is preemptive?
    A) FCFS
    B) SJF (non-preemptive)
    C) Round Robin
    D) FIFO
    Answer: c
  9. Priority scheduling selects process with:
    A) Lowest priority
    B) Highest priority
    C) Random order
    D) Longest job
    Answer: b
  10. Context switching means:
    A) Switching between memory blocks
    B) Swapping processes
    C) Switching CPU focus from one process to another
    D) Changing OS
    Answer: c
  11. A process waiting for another resource is:
    A) Running
    B) Ready
    C) Blocked
    D) Terminated
    Answer: c
  12. Terminated state means:
    A) Aborted
    B) Completed
    C) Killed
    D) All of these
    Answer: d
  13. Foreground processes run:
    A) In background
    B) With user interaction
    C) Without scheduler
    D) Independently
    Answer: b
  14. Background process is also called:
    A) Daemon
    B) Thread
    C) Kernel
    D) BIOS
    Answer: a
  15. Critical section in OS refers to:
    A) Memory area
    B) Code accessing shared resource
    C) Unused space
    D) System hardware
    Answer: b
  16. Mutual exclusion prevents:
    A) Context switching
    B) Memory fragmentation
    C) Race condition
    D) Multi-processing
    Answer: c
  17. Race condition occurs when:
    A) Too many commands run
    B) Processes share resources incorrectly
    C) CPU overheats
    D) Disk crashes
    Answer: b
  18. Deadlock condition means:
    A) CPU failure
    B) Processes waiting forever
    C) System restart
    D) Virus attack
    Answer: b
  19. Which is not a condition for deadlock?
    A) Mutual exclusion
    B) Hold and wait
    C) Circular wait
    D) Fast switching
    Answer: d
  20. Deadlock prevention means:
    A) Kill system
    B) Avoid one of deadlock conditions
    C) Reduce memory
    D) Increase CPU speed
    Answer: b
  21. Banker’s algorithm is used for:
    A) Booting
    B) Deadlock avoidance
    C) Process creation
    D) Paging
    Answer: b
  22. Longest Job First scheduling:
    A) Runs shortest job first
    B) Runs based on priority
    C) Runs longest job first
    D) Uses no queue
    Answer: c
  23. Dispatcher function:
    A) Allocates memory
    B) Transfers control of CPU to process
    C) Handles interrupt
    D) Deletes process
    Answer: b
  24. Process Control Block (PCB) stores:
    A) Data
    B) Process information
    C) Only ID
    D) File permissions
    Answer: b
  25. Process ID is:
    A) Device name
    B) Unique number to identify process
    C) A kernel
    D) Task mode
    Answer: b
  26. Multiple processes running at same time is:
    A) Single tasking
    B) Multitasking
    C) No scheduling
    D) Swapping
    Answer: b
  27. Multiple CPUs working together is called:
    A) Multithreading
    B) Multiprocessing
    C) Multitasking
    D) Uniprocessing
    Answer: b
  28. Multiple threads inside one process is:
    A) Booting
    B) Multithreading
    C) Multiprocessing
    D) Swapping
    Answer: b
  29. Suspended state means:
    A) On hold temporarily
    B) Terminated
    C) Executing
    D) Ready
    Answer: a
  30. Which causes deadlock?
    A) Multiple I/O
    B) Circular waiting
    C) Fast scheduling
    D) GUI mode
    Answer: b
  31. Starvation means:
    A) Deadlock always
    B) Process waits indefinitely
    C) CPU failure
    D) No process running
    Answer: b
  32. Which scheduling reduces starvation?
    A) SJF
    B) FCFS
    C) Aging
    D) RTS
    Answer: c
  33. Round Robin is suitable for:
    A) Real-time systems
    B) Interactive systems
    C) Batch system
    D) Banking system
    Answer: b
  34. Gantt chart is used for:
    A) CPU measurement
    B) Scheduling visualization
    C) Page replacement
    D) Cache handling
    Answer: b
  35. Dispatcher latency means time required to:
    A) Print
    B) Switch process
    C) Boot OS
    D) Transfer data
    Answer: b
  36. The first state of new process is:
    A) Ready
    B) New
    C) Running
    D) Blocked
    Answer: b
  37. Fork() system call is used for:
    A) Delete task
    B) Create new process
    C) Enter critical section
    D) Add memory
    Answer: b
  38. Process suspension reason:
    A) I/O wait
    B) High priority job arrival
    C) System load
    D) All
    Answer: d
  39. Dispatcher handles:
    A) CPU switching
    B) Memory segmentation
    C) File management
    D) Encryption
    Answer: a
  40. CPU utilization means:
    A) Percentage of time CPU is busy
    B) RAM speed
    C) Disk usage
    D) Memory availability
    Answer: a
  41. Process creation is done using:
    A) Init()
    B) fork()
    C) create()
    D) load()
    Answer: b
  42. A short job gets higher priority in:
    A) FCFS
    B) LJF
    C) SJF
    D) Priority
    Answer: c
  43. Multiprogramming increases:
    A) Execution time
    B) CPU utilization
    C) RAM corruption
    D) Boot time
    Answer: b
  44. Batch system does not need:
    A) User interaction
    B) Scheduling
    C) CPU
    D) Memory
    Answer: a
  45. Interrupt means:
    A) Signal to CPU for attention
    B) End process
    C) Boot
    D) Load OS
    Answer: a
  46. Which command interrupts execution?
    A) Ctrl + X
    B) Ctrl + C
    C) Ctrl + V
    D) Ctrl + S
    Answer: b
  47. Process scheduling improves:
    A) CPU usage
    B) Boot time
    C) GUI capability
    D) Device speed
    Answer: a
  48. Process holds resource while waiting for others:
    A) Resource allocation
    B) Hold & wait
    C) Free state
    D) Paging
    Answer: b
  49. Deadlock detection means:
    A) Kill OS
    B) Identify cycle
    C) Reboot system
    D) Optimize CPU
    Answer: b
  50. Recovering from deadlock by killing processes is:
    A) Deadlock avoidance
    B) Deadlock recovery
    C) Deadlock prevention
    D) Scheduling
    Answer: b

πŸ“Œ Memory, Paging, Segmentation, Virtual Memory, Cache, Swapping

  1. Which memory is volatile?
    A) ROM
    B) RAM
    C) SSD
    D) Hard Disk
    Answer: b
  2. Which memory is permanent?
    A) RAM
    B) Cache
    C) ROM
    D) Registers
    Answer: c
  3. Fastest memory is:
    A) HDD
    B) RAM
    C) Cache
    D) Pen Drive
    Answer: c
  4. Virtual memory is:
    A) Secondary memory
    B) Using disk as RAM
    C) Backup memory
    D) Flash memory
    Answer: b
  5. Paging divides memory into:
    A) Segments
    B) Frames / Pages
    C) Blocks
    D) Chunks
    Answer: b
  6. Segmentation divides memory based on:
    A) Fixed size
    B) Logical divisions like code/data/stack
    C) Equal blocks
    D) ROM
    Answer: b
  7. Thrashing occurs when:
    A) Too many interrupts
    B) Excessive paging/swapping
    C) Too many files
    D) Booting problem
    Answer: b
  8. Swapping means:
    A) Copying files
    B) Moving processes between RAM and disk
    C) Formatting
    D) Renaming
    Answer: b
  9. Fragmentation occurs when:
    A) Memory is not fully used
    B) Memory is overflow
    C) Memory is swapped
    D) Data lost
    Answer: a
  10. Internal fragmentation means:
    A) Blocks unused outside memory
    B) Unused space inside allocated block
    C) No RAM available
    D) Cache full
    Answer: b
  11. External fragmentation means:
    A) Too many processes
    B) Free spaces scattered
    C) No disk space
    D) Corruption
    Answer: b
  12. Compaction reduces:
    A) Internal fragmentation
    B) External fragmentation
    C) Both
    D) None
    Answer: b
  13. First-Fit algorithm allocates:
    A) Smallest free block
    B) First free block found
    C) Largest free block
    D) Best free block
    Answer: b
  14. Best-Fit algorithm allocates:
    A) Largest block
    B) Best smallest fitting free block
    C) Random block
    D) Joint block
    Answer: b
  15. Worst-Fit algorithm allows:
    A) Smallest block
    B) Largest block
    C) Mid block
    D) No block
    Answer: b
  16. Page table contains:
    A) File names
    B) Mapping of virtual to physical addresses
    C) Cache addresses
    D) Interrupt numbers
    Answer: b
  17. TLB stands for:
    A) Time Local Buffer
    B) Translation Lookaside Buffer
    C) Table Lookup Buffer
    D) Transfer Level Buffer
    Answer: b
  18. TLB improves:
    A) I/O speed
    B) Page translation speed
    C) Boot speed
    D) Keyboard input
    Answer: b
  19. Memory Management Unit (MMU) handles:
    A) CPU operations
    B) Address translation
    C) File naming
    D) Load balancing
    Answer: b
  20. Page fault occurs when:
    A) Disk crashes
    B) Page is not in RAM
    C) CPU overheats
    D) Program ends
    Answer: b
  21. Page replacement algorithm decides:
    A) Which page to remove from RAM
    B) File storage
    C) Device control
    D) Scheduling
    Answer: a
  22. LRU stands for:
    A) Last Released Unit
    B) Least Recently Used
    C) Last Recently Updated
    D) Logical Resource Utility
    Answer: b
  23. FIFO page replacement removes:
    A) First page loaded
    B) Last page loaded
    C) Max memory block
    D) Random page
    Answer: a
  24. Optimal page replacement algorithm:
    A) Removes last used page
    B) Removes page not needed in future
    C) Removes smallest page
    D) Removes faulty page
    Answer: b
  25. Demand paging means:
    A) Load pages only when required
    B) Load full program
    C) Load from ROM
    D) Load by user manually
    Answer: a
  26. Dirty bit indicates:
    A) File deleted
    B) Page modified after loading
    C) Page corrupted
    D) Page swapped
    Answer: b
  27. Cache memory stores:
    A) Frequently used instructions
    B) Temporary files
    C) Booting commands
    D) Deleted files
    Answer: a
  28. Cache hit means:
    A) Data found in cache
    B) Data lost
    C) Memory corruption
    D) Page fault
    Answer: a
  29. Cache miss means:
    A) No extra RAM
    B) Data not found in cache
    C) Slow CPU
    D) Interrupt
    Answer: b
  30. Locality of reference refers to:
    A) Memory location repeatedly accessed
    B) Memory divided
    C) Memory loss
    D) Disk swapping
    Answer: a
  31. Which memory stores BIOS?
    A) RAM
    B) ROM
    C) HDD
    D) Cache
    Answer: b
  32. Main memory is also called:
    A) ROM
    B) Secondary memory
    C) Primary memory
    D) Logical memory
    Answer: c
  33. Disk storage is:
    A) Primary memory
    B) Secondary memory
    C) Cache memory
    D) Virtual memory
    Answer: b
  34. Memory hierarchy means:
    A) CPU flow
    B) Fast to slow memory arrangement
    C) IO system
    D) Buffer control
    Answer: b
  35. Overlay technique is used for:
    A) Loading multiple programs
    B) Running large programs in limited memory
    C) Painting screen
    D) Delete processes
    Answer: b
  36. Buddy system is:
    A) Memory allocation system
    B) File naming
    C) Cache synchronization
    D) Deadlock breaking
    Answer: a
  37. DMA stands for:
    A) Direct Memory Address
    B) Direct Memory Access
    C) Data Memory Activity
    D) Dynamic Memory Allocation
    Answer: b
  38. Swapping reduces:
    A) CPU time
    B) Load on RAM
    C) Cache
    D) Disk space
    Answer: b
  39. Registers are:
    A) Slow memory
    B) Fastest memory in CPU
    C) Secondary memory
    D) Backup memory
    Answer: b
  40. Which one is NOT secondary memory?
    A) HDD
    B) CD
    C) SSD
    D) RAM
    Answer: d
  41. Spooling uses:
    A) Buffer memory
    B) Kernel memory
    C) Cache only
    D) ROM only
    Answer: a
  42. Segmentation fault means:
    A) Accessing restricted memory
    B) No ROM
    C) No CPU
    D) Disk full
    Answer: a
  43. Copy-on-write allows:
    A) Write lock
    B) Page sharing until modified
    C) Page corruption
    D) Dirty bit removal
    Answer: b
  44. Belady’s anomaly occurs in:
    A) Paging
    B) FIFO page replacement
    C) Segmentation
    D) Scheduling
    Answer: b
  45. Swapping files stored in:
    A) RAM
    B) Disk
    C) BIOS
    D) Cache
    Answer: b
  46. Main goal of memory management:
    A) Reduce CPU speed
    B) Efficient use of RAM
    C) Increase hardware cost
    D) Encrypt data
    Answer: b
  47. Frame means:
    A) Physical memory block
    B) Virtual address
    C) Cache mapping
    D) Boot sector
    Answer: a
  48. Heap memory used for:
    A) Static allocation
    B) Dynamic allocation
    C) Booting
    D) Kernel
    Answer: b
  49. Stack memory used for:
    A) Function calls & variables
    B) Long term storage
    C) Application data
    D) Kernel mapping
    Answer: a
  50. RAM full effect:
    A) Faster computer
    B) Page faults increase
    C) Cache increase
    D) Disk erase
    Answer: b

πŸ“Œ File System, Directories, Device Drivers, I/O Management, Spooling, Commands, File Allocation

  1. A file is:
    A) Collection of records
    B) Collection of data stored in memory
    C) Hardware device
    D) A CPU program
    Answer: b
  2. A directory is:
    A) File extension
    B) Folder that stores files
    C) Filename
    D) Keyboard key
    Answer: b
  3. File extension of executable file in Windows:
    A) .txt
    B) .exe
    C) .docx
    D) .ppt
    Answer: b
  4. Which one is NOT a file organization method?
    A) Sequential
    B) Indexed
    C) Direct
    D) Optional
    Answer: d
  5. File allocation table is used in:
    A) FAT system
    B) Database
    C) Antivirus
    D) BIOS
    Answer: a
  6. NTFS stands for:
    A) Network Table File System
    B) New Technology File System
    C) New Terminal Format System
    D) National Transfer File System
    Answer: b
  7. Spooling stands for:
    A) System polling
    B) Simultaneous Peripheral Operation Online
    C) Serial print online
    D) Special online operation
    Answer: b
  8. Spooling is mainly used for:
    A) Scanner
    B) Printer
    C) Audio system
    D) Monitor
    Answer: b
  9. A device driver is:
    A) Hardware component
    B) Software controlling hardware
    C) Data file
    D) System shell
    Answer: b
  10. File system manages:
    A) CPU scheduling
    B) Storage of files on disk
    C) RAM allocation
    D) Encryption
    Answer: b
  11. Which command lists files in DOS?
    A) SHOW
    B) DIR
    C) LIST
    D) FILES
    Answer: b
  12. Command to delete a file in DOS:
    A) DELETE
    B) REMOVE
    C) DEL
    D) ERASE
    Answer: c
  13. Command to change directory:
    A) CD
    B) MD
    C) RD
    D) DIR
    Answer: a
  14. Which command creates a new directory?
    A) CD
    B) MD
    C) NEWW
    D) COPY
    Answer: b
  15. File attributes include:
    A) Read-only
    B) Hidden
    C) System file
    D) All of them
    Answer: d
  16. Root directory means:
    A) Last directory
    B) Highest level directory
    C) Copy of directory
    D) Deleted folder
    Answer: b
  17. Path determines:
    A) File location
    B) File name
    C) RAM size
    D) Booting type
    Answer: a
  18. Absolute path starts from:
    A) Desktop
    B) Root directory
    C) Downloads
    D) Folder
    Answer: b
  19. Relative path starts from:
    A) Home directory
    B) Root
    C) OS level
    D) BIOS
    Answer: a
  20. File control block (FCB) stores:
    A) File size, permissions, location
    B) Boot data
    C) BIOS info
    D) Cache data
    Answer: a
  21. Sequential file access means:
    A) Random access
    B) Access in order
    C) Tree access
    D) Infinite looping
    Answer: b
  22. Random access used in:
    A) Disk files
    B) Tape files
    C) Printer
    D) BIOS
    Answer: a
  23. Disk scheduling algorithm:
    A) SSTF
    B) FIFO
    C) LIFO
    D) SJF
    Answer: a
  24. Device controller is:
    A) Hardware component for managing devices
    B) Part of database
    C) Application component
    D) Encryption tool
    Answer: a
  25. Device queue stores:
    A) Waiting processes
    B) Waiting I/O requests
    C) File blocks
    D) Passwords
    Answer: b
  26. I/O bound process spends most time in:
    A) CPU
    B) I/O operations
    C) Memory
    D) Scheduler
    Answer: b
  27. Disk fragmentation occurs due to:
    A) Virus
    B) File deletion and storage gaps
    C) RAM clearing
    D) BIOS reset
    Answer: b
  28. Defragmentation means:
    A) Delete files
    B) Arrange disk blocks sequentially
    C) Reduce memory
    D) Shut down system
    Answer: b
  29. Disk scheduling improves:
    A) Disk throughput
    B) CPU speed
    C) Boot speed
    D) GUI look
    Answer: a
  30. RAID stands for:
    A) Random Access Input Drive
    B) Redundant Array of Independent Disks
    C) Remote Access Internet Disk
    D) Real-time Array Integrated Device
    Answer: b
  31. Read/write head is part of:
    A) CPU
    B) Hard disk
    C) RAM
    D) BIOS chip
    Answer: b
  32. File access permission NOT included:
    A) Read
    B) Write
    C) Execute
    D) Print
    Answer: d
  33. System call for file creation:
    A) create()
    B) newFile()
    C) del()
    D) sys()
    Answer: a
  34. Tree structure directories are used in:
    A) Windows
    B) Linux
    C) UNIX
    D) All of the above
    Answer: d
  35. I/O interrupt means:
    A) Program stopped
    B) Device asking for service
    C) Disk deleted
    D) CPU off
    Answer: b
  36. Buffering helps in:
    A) Speeding I/O operations
    B) Shutting system
    C) Booting
    D) Installing software
    Answer: a
  37. Caching is used to:
    A) Reduce CPU heat
    B) Speed repeated access
    C) Store deleted files
    D) Format disk
    Answer: b
  38. UNC path is used in:
    A) Wireless
    B) Network shared directories
    C) App installation
    D) BIOS
    Answer: b
  39. The smallest storage unit in disk:
    A) Track
    B) Sector
    C) Block
    D) Cluster
    Answer: b
  40. File locking prevents:
    A) Multiple access conflict
    B) Power failure
    C) Disk crash
    D) Cache overflow
    Answer: a
  41. Mounting means:
    A) Loading file in RAM
    B) Attaching storage device to directory tree
    C) Copying files
    D) Booting
    Answer: b
  42. Unmounting means:
    A) Remove disk from directory tree
    B) Delete drive
    C) Shutdown
    D) Restart
    Answer: a
  43. Tape storage supports:
    A) Sequential access
    B) Random access
    C) Combined methods
    D) Flash memory
    Answer: a
  44. Hard disk supports:
    A) Only sequential access
    B) Only random access
    C) Both
    D) None
    Answer: c
  45. File rename system call:
    A) rn()
    B) rename()
    C) mv()
    D) Both b & c
    Answer: d
  46. Unmounted file system means:
    A) Files accessible
    B) Files not accessible
    C) System removed
    D) Boot mode
    Answer: b
  47. Disk formatting means:
    A) Place disk blocks in order
    B) Erase all data and prepare for new storage
    C) Backup files
    D) Index creation
    Answer: b
  48. Double buffering used in:
    A) Printing
    B) Graphics & gaming
    C) Database query
    D) Networking
    Answer: b
  49. File deletion frees:
    A) Cache
    B) Disk blocks
    C) RAM
    D) BIOS
    Answer: b
  50. I/O management goal:
    A) CPU scheduling
    B) Reduce device access time
    C) Increase keyboard speed
    D) Remove memory faults
    Answer: b

πŸ“Œ Types of OS, Kernel, Shell, Booting, Security, Commands, Distributed, RTOS & Cloud

  1. Operating system designed for real-time applications is called:
    A) Time-sharing OS
    B) Real-Time OS
    C) Distributed OS
    D) Batch OS
    Answer: b
  2. Batch operating system works:
    A) With real-time response
    B) Without user interaction
    C) With GUI interface
    D) Only on mobile
    Answer: b
  3. Unix is an example of:
    A) Single-user OS
    B) Multi-user OS
    C) Real-time OS
    D) Mobile OS
    Answer: b
  4. Distributed operating system means:
    A) OS runs on single machine only
    B) Runs across multiple connected computers
    C) Runs mobile apps
    D) Runs BIOS
    Answer: b
  5. Multiprocessing OS uses:
    A) Single CPU
    B) Multiple CPUs
    C) No CPU
    D) Only secondary memory
    Answer: b
  6. Mobile operating systems include:
    A) Android, iOS
    B) Windows, Linux
    C) Solaris, Unix
    D) Fedora, DOS
    Answer: a
  7. Time-sharing OS supports:
    A) One user
    B) Many users simultaneously
    C) Offline access
    D) Real-time systems
    Answer: b
  8. Multi-tasking system means:
    A) One task at a time
    B) Multiple tasks at same time
    C) One job per day
    D) No scheduling
    Answer: b
  9. Deadlock means:
    A) CPU locks
    B) Processes wait forever
    C) RAM destroyed
    D) Disk failure
    Answer: b
  10. Kernel is:
    A) Command interpreter
    B) Core of OS
    C) Anti-virus
    D) Printer software
    Answer: b
  11. Shell is:
    A) Graphical display
    B) User command interface
    C) Memory manager
    D) BIOS driver
    Answer: b
  12. Monolithic kernel:
    A) Small kernel design
    B) Everything runs in kernel mode
    C) No scheduling
    D) No memory allocation
    Answer: b
  13. Microkernel:
    A) Large kernel
    B) Moves most functions to user space
    C) Supports no threads
    D) Cloud computing only
    Answer: b
  14. Hybrid kernel is used in:
    A) Linux
    B) Windows & macOS
    C) Android
    D) DOS
    Answer: b
  15. Booting means:
    A) Shutting down
    B) Starting computer
    C) Format disk
    D) Install OS
    Answer: b
  16. Cold boot means:
    A) Restart system
    B) Power ON start
    C) Sleep mode
    D) Sub-boot
    Answer: b
  17. Warm boot means:
    A) Power ON
    B) Restart computer
    C) Shut system
    D) Format
    Answer: b
  18. RTOS used in:
    A) Gaming
    B) Flight control systems
    C) Normal browsing
    D) Word processing
    Answer: b
  19. Firmware is stored in:
    A) RAM
    B) ROM
    C) Disk
    D) USB
    Answer: b
  20. BIOS stands for:
    A) Basic Information Output System
    B) Basic Input Output System
    C) Binary Internal OS
    D) Basic Internal Operation Software
    Answer: b
  21. Bootloader loads:
    A) BIOS
    B) OS into memory
    C) Printer drivers
    D) USB software
    Answer: b
  22. Cloud-based OS example:
    A) Chrome OS
    B) MS-DOS
    C) Windows XP
    D) Unix Shell
    Answer: a
  23. Linux is based on:
    A) Apple kernel
    B) Windows kernel
    C) UNIX principles
    D) Android Software
    Answer: c
  24. Command line OS example:
    A) Windows 11
    B) MS-DOS
    C) Android
    D) macOS
    Answer: b
  25. Example of distributed system:
    A) Google Cloud
    B) MS-DOS
    C) Windows 95
    D) iPhone OS
    Answer: a
  26. ATM machines mostly use:
    A) Batch OS
    B) RTOS
    C) Multiuser OS
    D) GUI OS
    Answer: b
  27. UNIX creator:
    A) Bill Gates
    B) Linus Torvalds
    C) Ken Thompson & Dennis Ritchie
    D) Steve Jobs
    Answer: c
  28. Linux creator:
    A) Linus Torvalds
    B) Dennis Ritchie
    C) IBM
    D) Microsoft
    Answer: a
  29. Which OS is mostly used for servers?
    A) Windows 10
    B) Linux / Unix
    C) Android
    D) macOS
    Answer: b
  30. Virtual machine allows:
    A) Running RAM only
    B) Running multiple OS on single hardware
    C) Running without OS
    D) Running BIOS only
    Answer: b
  31. Middleware used in:
    A) I/O devices
    B) Distributed systems
    C) RAM
    D) Internet only
    Answer: b
  32. Cybersecurity in OS includes:
    A) Passwords
    B) Firewalls
    C) File permissions
    D) All of the above
    Answer: d
  33. Firewall protects from:
    A) Hardware failure
    B) Unauthorized network access
    C) Disk corruption
    D) Bootloader
    Answer: b
  34. Encryption means:
    A) Data compress
    B) Scrambling data to secure
    C) System restore
    D) Removing virus
    Answer: b
  35. Access control list (ACL) used for:
    A) Memory allocation
    B) File permissions
    C) Booting
    D) Paging
    Answer: b
  36. Example of mobile-embedded OS:
    A) Android
    B) Windows XP
    C) UNIX
    D) Solaris
    Answer: a
  37. Cluster computing means:
    A) No network
    B) Multiple computers working as one
    C) Always offline
    D) No scheduling
    Answer: b
  38. Grid computing used for:
    A) Gaming
    B) Scientific problem solving
    C) Movies only
    D) BIOS
    Answer: b
  39. Peer-to-peer OS architecture used in:
    A) Torrent systems
    B) Mobile calling
    C) BIOS
    D) DOS
    Answer: a
  40. Command interpreter role:
    A) Executes user commands
    B) Manage drivers
    C) Print files
    D) Make network
    Answer: a
  41. Interrupt means:
    A) Virus infection
    B) Hardware signal requesting CPU attention
    C) Data deleted
    D) Disk formatting
    Answer: b
  42. System call provides:
    A) Hardware to user
    B) Interface between OS & applications
    C) BIOS to CPU
    D) Firewall function
    Answer: b
  43. Embedded OS example:
    A) Windows 10
    B) VxWorks
    C) Linux Mint
    D) macOS Catalina
    Answer: b
  44. Which OS features guarantee response time?
    A) Batch OS
    B) RTOS
    C) Distributed OS
    D) Cloud OS
    Answer: b
  45. Multithreading improves:
    A) File storage
    B) Concurrent processing inside a process
    C) Disk formatting
    D) System errors
    Answer: b
  46. System monitor in OS used for:
    A) Memory & CPU tracking
    B) Game control
    C) BIOS update
    D) Formatting
    Answer: a
  47. OS handling multiple apps means:
    A) Multiuser
    B) Multitasking
    C) Multithreading
    D) Multiprocessor
    Answer: b
  48. OS responsible for:
    A) Resource allocation
    B) Device control
    C) Protection & file system
    D) All of the above
    Answer: d
  49. Cloud OS advantage:
    A) Local storage only
    B) Anywhere remote access
    C) No internet needed
    D) No security
    Answer: b
  50. RTOS example:
    A) QNX
    B) Windows XP
    C) UNIX
    D) Chrome OS
    Answer: a