💻

Operating Systems MCQ

Test your Operating Systems knowledge with 100 multiple choice questions covering fundamentals to advanced concepts, with instant feedback and explanations.

100 Questions 40 Beginner 40 Intermediate 20 Advanced
1

What is an operating system?

2

What is a process?

3

What is a thread?

4

What is virtual memory?

5

What is a system call?

6

What is context switching?

7

What does CPU scheduling decide?

8

What is deadlock?

9

What is a semaphore?

10

What is paging in memory management?

11

What is the difference between preemptive and non-preemptive scheduling?

12

What is the role of the Process Control Block (PCB)?

13

What is a page fault?

14

What is a file system?

15

What is the difference between internal and external fragmentation?

16

What is the FCFS (First Come First Serve) scheduling algorithm?

17

What is the Round Robin scheduling algorithm?

18

What is the difference between multiprogramming and multitasking?

19

What is a mutex?

20

What is thrashing in operating systems?

21

What does fork() do in Unix/Linux?

22

What is the Producer-Consumer problem?

23

What is segmentation in memory management?

24

What is the difference between kernel mode and user mode?

25

What is the Least Recently Used (LRU) page replacement policy?

26

What is an inode in Unix file systems?

27

What is swapping in memory management?

28

What is the banker's algorithm used for?

29

What is an interrupt?

30

What is DMA (Direct Memory Access)?

31

What is a race condition?

32

What is the critical section problem?

33

What is the purpose of the TLB (Translation Lookaside Buffer)?

34

What is a zombie process?

35

What is a monolithic kernel vs a microkernel?

36

What is the Shortest Job First (SJF) scheduling algorithm?

37

What is inter-process communication (IPC)?

38

What is the purpose of the boot loader?

39

What is copy-on-write (COW) in operating systems?

40

What does it mean for a process to be in the "ready" state?

1

What are the four Coffman conditions for deadlock?

2

What is the difference between a binary semaphore and a counting semaphore?

3

What is the working set model for virtual memory?

4

What is the difference between hard links and symbolic links?

5

What is Peterson's solution and what problem does it solve?

6

What is demand paging?

7

What is the clock (second-chance) page replacement algorithm?

8

What is priority inversion?

9

What is the multi-level feedback queue (MLFQ) scheduler?

10

What is the Completely Fair Scheduler (CFS) in Linux?

11

What is the difference between eager and lazy loading in virtual memory?

12

What is a page table walk and what is the multi-level page table?

13

What is the difference between user-level and kernel-level threads?

14

What is the POSIX specification?

15

What is the reader-writer problem?

16

What is the difference between a process scheduler and a memory scheduler?

17

What is the journaling file system?

18

What is the dining philosophers problem?

19

What is Belady's anomaly?

20

What is the difference between preemptive and cooperative multitasking?

21

What is the difference between a spinlock and a mutex?

22

What is a virtual file system (VFS)?

23

What is the purpose of the init process (PID 1)?

24

What is CPU affinity and how does it relate to NUMA-aware scheduling?

25

How does the Shortest Remaining Time First (SRTF) algorithm differ from non-preemptive SJF?

26

Why can strict "shortest job first" scheduling lead to starvation?

27

What problem does the "aging" technique solve in priority scheduling?

28

In the producer-consumer (bounded-buffer) problem, why are two counting semaphores ("empty" and "full") needed in addition to a mutex?

29

What is a monitor in the context of process synchronization?

30

Why is the "circular wait" condition often the easiest of the four deadlock conditions to break in practice?

31

What distinguishes deadlock detection from deadlock avoidance?

32

How does segmentation with paging (segmented paging) combine the benefits of both schemes?

33

What is the main tradeoff when choosing a smaller versus larger time quantum in Round Robin scheduling?

34

Why do modern operating systems generally prefer demand paging over loading an entire process into memory at start-up?

35

What is the purpose of a "dirty bit" associated with a page table entry?

36

In a journaling file system, what is the difference between "metadata-only" journaling and "full data" journaling?

37

How do message queues differ from shared memory as an inter-process communication mechanism?

38

What is the role of the "scheduler" component in a microkernel-based operating system compared to a monolithic one?

39

Why might an operating system use a "lazy" TLB invalidation strategy (such as address-space tagging with ASIDs) instead of flushing the entire TLB on every context switch?

40

What is "priority donation" (or priority inheritance) and what problem does it directly address?