Operating Systems MCQs

Operating Systems MCQs on CPU scheduling, memory management, paging, segmentation, deadlocks, and virtual memory.

22 MCQsComputer ScienceAll Levels
Key Concept Overview & Exam Context

Review core principles of Operating Systems before answering questions. These questions simulate placement technical assessments (TCS, Infosys, Amazon), university exams (CS/IT), and technical certifications.

Target Readiness
Placements & Job Interviews
Question Format
Multiple-Choice with Explanations
Verified Solutions
Step-by-step Output Traces

Operating Systems MCQ Questions

Page 1 of 2 (22 total)
Q1

What is the main difference between a process and a thread?

medium
Correct Answer: A process has its own memory space, while threads within the same process share memory
Explanation:
Each process gets its own isolated address space, while threads that belong to the same process share that memory space, which makes communication between threads faster but also introduces the risk of race conditions.
Q2

Which CPU scheduling algorithm can lead to starvation of longer processes?

hard
Q3

What is a race condition?

medium
Q4

What is the purpose of a semaphore in operating systems?

medium
Q5

What is virtual memory?

medium
Q6

What is thrashing in the context of operating systems?

hard
Q7

What is the purpose of the Banker's Algorithm?

hard
Q8

What distinguishes preemptive scheduling from non-preemptive scheduling?

medium
Q9

What is a page fault?

medium
Q10

What is the primary purpose of a context switch?

medium
Q11

What is the difference between a mutex and a semaphore?

hard
Q12

What is the role of the kernel in an operating system?

easy
Q13

Which disk scheduling algorithm selects the request closest to the current head position?

hard
Q14

What is the purpose of an interrupt in operating systems?

medium
Q15

What is the difference between internal and external fragmentation?

hard
Q16

What is the main advantage of multithreading within a single process?

medium
Q17

What is the function of a device driver in an operating system?

easy
Q18

What does it mean for an operating system to be 'multitasking'?

easy
Q19

What is the primary difference between paging and segmentation as memory management techniques?

hard
Q20

What happens during a system call?

medium
Showing 1 to 20 of 22 questions