QB
QB
PART – A
1
6. Which of the following is NOT a type of Operating System?
A) Batch Operating System
B) Real-Time Operating System
C) Distributed Operating System
D) Spreadsheet Operating System
Answer: D
2
12. Which operating system structure provides better modularity?
A) Monolithic
B) Layered
C) Batch
D) Single-user
Answer: B
14. Which operating system structure improves reliability by reducing kernel size?
A) Monolithic
B) Layered
C) Microkernel
D) Batch
Answer: C
3
C) Process Scheduling
D) Memory Allocation
Answer: A
21. Which of the following is a major challenge faced by modern operating systems?
A) Security
B) Scalability
C) Energy Efficiency
D) All of the above
Answer: D
4
Answer: B
25. Which command is used to display the current working directory in Linux?
A) ls
B) pwd
C) mkdir
D) who
Answer: B
5
1. Define an Operating System. [CO1,LOT,K1]
6
2. State any two objectives of an Operating System. [CO1,LOT,K1]
3. List the different generations in the evolution of Operating [CO1,LOT,K1]
Systems.
4. What is a Batch Operating System? [CO1,LOT,K1]
5. Define a Multiprogramming Operating System. [CO1,LOT,K1]
6. What is a Multitasking Operating System? [CO1,LOT,K1]
7. Define a Time-sharing Operating System. [CO1,LOT,K1]
8. What is a Real-Time Operating System (RTOS)? [CO1,LOT,K1]
9. List any four types of Operating Systems. [CO1,LOT,K1]
10. Define Operating System Structure. [CO1,LOT,K1]
11. Name the different Operating System structures. [CO1,LOT,K1]
12. What is a Monolithic Kernel? [CO1,LOT,K1]
13. Define a Layered Operating System. [CO1,LOT,K1]
14. What is a Microkernel? [CO1,LOT,K1]
15. Define System Call. [CO1,LOT,K1]
16. Explain why an Operating System is called a resource manager. [CO1,LOT,K2]
17. Differentiate between Multiprogramming and Multitasking [CO1,LOT,K2]
Operating Systems.
18. Describe how an Operating System improves system performance. [CO1,LOT,K2]
19. Explain the role of system calls in user-program execution. [CO1,LOT,K2]
20. Compare Monolithic Kernel and Microkernel structures. [CO1,LOT,K2]
21. What are the major challenges of modern Operating Systems? [CO1,LOT,K1]
22. What is Virtualization in Operating Systems? [CO1,LOT,K1]
PART – B
1. Explain the history and evolution of Operating Systems from batch [CO1,HOT,K2]
systems to modern operating systems with suitable examples.
2. Discuss the various types of Operating Systems and explain their [CO1,HOT,K2]
characteristics, advantages, and applications.
3. Explain the functions of an Operating System and describe how [CO1,HOT,K2]
7
each function contributes to efficient system performance.
4. Describe the different Operating System structures (Monolithic, [CO1,HOT,K2]
Layered, Microkernel, Modular, and Hybrid) with neat diagrams.
5. Explain the major challenges faced by modern Operating Systems [CO1,HOT,K2]
and discuss how they affect system performance and security.
6. Illustrate the evolution of Operating Systems and classify different [CO1,HOT,K3]
Operating Systems suitable for various computing environments
such as desktop, mobile, embedded, and cloud computing.
7. Analyze the functions performed by an Operating System during [CO1,HOT,K4]
the execution of multiple user applications and explain their
significance.
8. Compare and analyze Monolithic Kernel and Microkernel [CO1,HOT,K4]
architectures with respect to performance, reliability, scalability,
and security.
9. Analyze the advantages and limitations of different Operating [CO1,HOT,K4]
System structures and recommend the most suitable structure for
modern computing systems.
10. Evaluate the suitability of UNIX and Linux Operating Systems for [CO1,HOT,K5]
enterprise server environments by considering performance,
security, scalability, and cost.
8
System Calls and Process Management
System Calls-Process Concepts and Lifecycle, Process Control Block (PCB)- Context
Switching - Threading Models, Process vs Thread Process Creation and Termination-
Case study.
PART – A
4. Which system call replaces the current process image with a new program?
A) fork()
B) wait()
C) exec()
D) exit()
Answer: C
6. Which system call causes the parent process to wait for its child process?
9
A) wait()
B) fork()
C) exec()
D) sleep()
Answer: A
9. Which process state indicates that the process is waiting for an event?
A) Running
B) Waiting (Blocked)
C) Ready
D) Terminated
Answer: B
10
C) Program Control Buffer
D) Processor Cache Block
Answer: B
11
Answer: B
20. Which threading model maps many user threads to one kernel thread?
A) One-to-One
B) Many-to-One
C) Many-to-Many
D) Two-to-One
Answer: B
22. Which threading model allows many user threads to be multiplexed over many
kernel threads?
A) One-to-One
B) Many-to-One
C) Many-to-Many
D) None of the above
Answer: C
12
25. Compared to processes, threads are:
A) More expensive to create
B) Faster to create and switch
C) Independent programs
D) Slower to execute
Answer: B
27. Which function is primarily responsible for creating a child process in Linux?
A) exec()
B) fork()
C) kill()
D) open()
Answer: B
30. In a web browser, downloading files while browsing different tabs is an example
of:
A) Batch Processing
B) Process Scheduling
C) Multithreading
D) Deadlock
Answer: C
13
1. Define a system call. Give any two examples of system calls. [CO2,LOT,K1]
2. List any three categories of system calls with one example each. [CO2,LOT,K1]
3. What is a process? Mention its main characteristics. [CO2,LOT,K1]
4. Draw and explain the process lifecycle (process states). [CO2,LOT,K2]
5. Define Process Control Block (PCB). List any four information [CO2,LOT,K1]
stored in a PCB.
6. Explain the purpose of the Process Control Block (PCB) in an [CO2,LOT,K2]
operating system.
7. What is context switching? Why is it required? [CO2,LOT,K2]
8. List the steps involved in a context switch. [CO2,LOT,K2]
9. Differentiate between a process and a thread. [CO2,LOT,K2]
10. Define a thread. State any two advantages of multithreading. [CO2,LOT,K2]
11. Explain the many-to-one threading model with a neat diagram. [CO2,LOT,K2]
12. Explain the one-to-one threading model and mention one [CO2,LOT,K2]
advantage and one disadvantage.
13. Explain the many-to-many threading model. [CO2,LOT,K2]
14. Compare user-level threads and kernel-level threads. [CO2,LOT,K2]
15. What is process creation? List the situations in which a process is [CO2,LOT,K1]
created.
16. Explain the steps involved in process creation. [CO2,LOT,K2]
17. What is process termination? List any three reasons for process [CO2,LOT,K1]
termination.
18. Distinguish between normal and abnormal process termination. [CO2,LOT,K2]
19. Explain the role of the fork() and exec() system calls in [CO2,LOT,K2]
UNIX/Linux.
20. What is the purpose of the wait() system call? [CO2,LOT,K2]
21. Explain the relationship between parent and child processes. [CO2,LOT,K2]
22. Explain why threads are considered lightweight compared to [CO2,LOT,K2]
processes.
14
PART – B
15
CPU Scheduling
PART – A
2. Which scheduling criterion measures the percentage of time the CPU is busy?
A) Turnaround time
B) Waiting time
C) CPU utilization
D) Response time
4. Which scheduling criterion refers to the number of processes completed per unit
time?
A) Throughput
B) Turnaround time
C) Waiting time
D) Response time
Answer: A) Throughput
16
C) Waiting Time + Arrival Time
D) Completion Time – Waiting Time
7. Which scheduling algorithm follows the First Come First Served principle?
A) FCFS
B) SJF
C) Round Robin
D) Priority Scheduling
Answer: A) FCFS
9. Which scheduling algorithm selects the process with the shortest CPU burst?
A) FCFS
B) Round Robin
C) Shortest Job First
D) Priority Scheduling
17
11. Which scheduling algorithm requires knowledge of CPU burst time?
A) FCFS
B) SJF
C) FIFO
D) LIFO
Answer: B) SJF
Answer: B) Starvation
18
C) CPU burst prediction
D) Memory partitions
19. Which scheduling algorithm is also known as Shortest Remaining Time First
(SRTF)?
A) Preemptive SJF
B) FCFS
C) Round Robin
D) Priority Scheduling
19
Answer: C) Infinite waiting time
22. Which scheduling algorithm may suffer from the convoy effect?
A) FCFS
B) Round Robin
C) Priority Scheduling
D) SRTF
Answer: A) FCFS
24. Which scheduling algorithm generally provides the best average turnaround
time?
A) FCFS
B) SJF
C) Round Robin
D) FIFO
Answer: B) SJF
25. Which scheduling algorithm may cause starvation for long processes?
A) SJF
B) FCFS
C) Round Robin
D) FIFO
Answer: A) SJF
26. Which scheduling type allows the operating system to take the CPU from a
running process?
A) Non-preemptive scheduling
B) Preemptive scheduling
C) Batch scheduling
D) Static scheduling
20
27. Which of the following is NOT a CPU scheduling algorithm?
A) FCFS
B) Round Robin
C) SJF
D) Paging
Answer: D) Paging
28. Which scheduling criterion measures how quickly the first response is provided?
A) Waiting time
B) Turnaround time
C) Response time
D) Throughput
Answer: B) FCFS
30. Which scheduling algorithm is considered fair because each process receives
CPU time in turns?
A) FCFS
B) Round Robin
C) SJF
D) Priority Scheduling
21
7. What is throughput? [CO3,LOT,K1]
8. What is preemptive scheduling? [CO3,LOT,K1]
9. Define non-preemptive scheduling. [CO3,LOT,K1]
10. Explain how scheduling algorithms improve CPU efficiency. [CO3,LOT,K2]
11. Compare FCFS and SJF scheduling algorithms. [CO3,LOT,K2]
12. Explain how starvation occurs in Priority Scheduling. [CO3,LOT,K2]
13. Compare waiting time and turnaround time. [CO3,LOT,K2]
14. Differentiate between preemptive and non-preemptive scheduling. [CO3,LOT,K1]
15. Describe the impact of dispatch latency on system performance. [CO3,LOT,K2]
16. What is the time quantum in Round Robin scheduling? [CO3,LOT,K1]
17. What is aging in scheduling? [CO3,LOT,K1]
18. What is convoy effect? [CO3,LOT,K1]
19. Explain why context switching affects system performance. [CO3,LOT,K2]
20. What is context switching? [CO3,LOT,K1]
PART – B
22
3. Determine the average waiting time and average turnaround
time.
FCFS
Non-Preemptive SJF
Priority Scheduling
Round Robin (Time Quantum = 2 ms)
23
Synchronization and Deadlocks
PART – A
Answer: D) Starvation
24
5. Mutual exclusion ensures that:
A) All processes execute simultaneously
B) Only one process enters the critical section at a time
C) Every process waits forever
D) CPU utilization is maximized
6. Which requirement ensures that processes not in the critical section cannot
prevent others from entering it?
A) Progress
B) Mutual exclusion
C) Bounded waiting
D) Context switching
Answer: A) Progress
7. Which requirement guarantees that every waiting process will eventually enter
the critical section?
A) Deadlock
B) Starvation
C) Bounded waiting
D) Paging
Answer: B) Mutex
25
10. Which synchronization mechanism uses wait() and signal() operations?
A) Mutex
B) Semaphore
C) Cache
D) Scheduler
Answer: B) Semaphore
Answer: A) 0 and 1
13. Which synchronization tool is best suited for protecting a single shared
resource?
A) Counting semaphore
B) Mutex
C) Paging
D) Virtual memory
Answer: B) Mutex
26
C) Memory becomes full
D) CPU remains idle
Answer: B) Two or more processes wait indefinitely for resources held by each
other
17. Which of the following is NOT one of the necessary conditions for deadlock?
A) Mutual exclusion
B) Hold and wait
C) Paging
D) Circular wait
Answer: C) Paging
18. Which necessary condition states that resources cannot be forcibly taken from a
process?
A) Circular wait
B) Mutual exclusion
C) No preemption
D) Hold and wait
Answer: C) No preemption
19. Which necessary condition requires a process to hold one resource while waiting
for another?
A) Circular wait
B) Hold and wait
C) Mutual exclusion
D) Progress
27
C) CPU scheduling follows FCFS
D) Memory is allocated circularly
Answer: B) Processes form a circular chain waiting for each other's resources
Answer: B) Avoidance
28
Answer: B) There exists a safe sequence of process execution
Answer: C) Detection
27. Which graph is commonly used to detect deadlocks in systems with single
instances of resources?
A) Activity Graph
B) Resource Allocation Graph
C) Flow Graph
D) Tree Graph
28. A cycle in a Resource Allocation Graph with a single instance of each resource
indicates:
A) Safe state
B) Deadlock
C) Paging
D) Starvation
Answer: B) Deadlock
30. Which recovery method involves taking resources away from selected processes?
A) Preemption
B) Prevention
C) Scheduling
D) Synchronization
Answer: A) Preemption
29
1. Define process synchronization. [CO4,LOT,K1]
2. What is concurrency? [CO4,LOT,K1]
3. Define the critical section. [CO4,LOT,K1]
4. What is the Critical Section Problem? [CO4,LOT,K1]
5. List the three requirements of a correct solution to the Critical [CO4,LOT,K1]
Section Problem.
6. Define mutual exclusion. [CO4,LOT,K1]
7. What is a race condition? [CO4,LOT,K1]
8. Define synchronization tools. [CO4,LOT,K1]
9. What is a mutex? [CO4,LOT,K1]
10. Define semaphore. [CO4,LOT,K1]
11. Differentiate between binary semaphore and counting semaphore. [CO4,LOT,K2]
12. What is busy waiting? [CO4,LOT,K1]
13. Define deadlock. [CO4,LOT,K1]
14. List the four necessary conditions for deadlock. [CO4,LOT,K1]
15. What is a safe state? [CO4,LOT,K1]
16. Explain the producer-consumer problem and the need for [CO4,LOT,K2]
synchronization.
17. Explain the role of the Resource Allocation Graph in deadlock [CO4,LOT,K2]
analysis.
18. Explain the difference between livelock and deadlock. [CO4,LOT,K2]
19. What is starvation? [CO4,LOT,K1]
20. Define Banker's Algorithm. [CO4,LOT,K1]
PART – B
30
3. Explain the Producer–Consumer problem and Readers–Writers [CO4,HOT,K2]
problem. Discuss how semaphores are used to solve these
synchronization problems.
4. Explain the concept of deadlock. Describe the four necessary [CO4,HOT,K2]
conditions for deadlock with suitable examples.
5. Explain the techniques used for deadlock handling, namely [CO4,HOT,K2]
prevention, avoidance, detection, and recovery, highlighting their
advantages and disadvantages.
6. Apply the Banker's Algorithm to determine whether the given [CO4,HOT,K3]
system is in a safe state. If safe, determine the safe sequence. A
system has 5 processes and 3 resource types (A, B, C).
Process Allocation Maximum Available
P0 0 1 0 7 5 3 3 3 2
P1 2 0 0 3 2 2
P2 3 0 2 9 0 2
P3 2 1 1 2 2 2
P4 0 0 2 4 3 3
7. Analyze the effectiveness of deadlock prevention, avoidance, [CO4,HOT,K4]
detection, and recovery techniques for different computing
environments.
8. Analyze the impact of deadlocks on operating system performance. [CO4,HOT,K4]
Compare various deadlock handling techniques and recommend
the most suitable approach for a multi-user operating system.
31
Memory Management
PART – A
32
6. In paging, physical memory is divided into:
A) Segments
B) Frames
C) Blocks
D) Partitions
Answer: B) Frames
33
12. Which memory management scheme supports the user's logical view of
memory?
A) Paging
B) Segmentation
C) Swapping
D) Partitioning
Answer: B) Segmentation
16. Which event occurs when a required page is not present in main memory?
A) Context switch
B) Page fault
C) Segmentation fault
D) Interrupt
Answer: B) Page fault
18. Which page replacement algorithm removes the page that entered memory first?
34
A) LRU
B) FIFO
C) Optimal
D) LFU
Answer: B) FIFO
20. Which page replacement algorithm replaces the page that has not been used for
the longest time?
A) FIFO
B) Optimal
C) LRU
D) Random
Answer: C) LRU
22. Which page replacement algorithm provides the minimum possible page faults?
A) FIFO
B) LRU
C) Optimal
D) Clock
Answer: C) Optimal
35
A) FIFO
B) Optimal
C) LRU
D) Random
Answer: B) Optimal
25. Which page replacement algorithm may suffer from Belady's anomaly?
A) FIFO
B) LRU
C) Optimal
D) LFU
Answer: A) FIFO
27. Which page replacement algorithm does NOT suffer from Belady's anomaly?
A) FIFO
B) LRU
C) Random
D) FCFS
Answer: B) LRU
36
C) Optimal
D) Round Robin
Answer: D) Round Robin
38
iii. Determine the page hit ratio.
39
File Systems and I/O Management
File System Concepts – Directory and File Access Control - I/O Management - Disk
Scheduling Buffering, Caching - Case study.
PART – A
2. A file is a:
A) Collection of related data stored on secondary storage
B) Collection of CPU instructions
C) Collection of memory addresses
D) Collection of registers
Answer: A) Collection of related data stored on secondary storage
40
A) Schedule CPU processes
B) Organize files and folders
C) Manage memory
D) Allocate registers
Answer: B) Organize files and folders
7. Which directory structure has only one directory for all users?
A) Tree-structured
B) Single-level directory
C) Two-level directory
D) Acyclic graph directory
Answer: B) Single-level directory
41
C) Indexed Access
D) Direct Mapping
Answer: B) Sequential Access
13. Which access method allows data to be accessed directly without reading
previous records?
A) Sequential Access
B) Random (Direct) Access
C) Indexed Sequential
D) Stack Access
Answer: B) Random (Direct) Access
15. Which component acts as an interface between hardware devices and the
operating system?
A) Device Driver
B) Compiler
C) Linker
D) Loader
Answer: A) Device Driver
42
C) Increasing disk fragmentation
D) Reducing RAM
Answer: B) Storing frequently accessed data in faster memory
20. Which disk scheduling algorithm serves requests in the order they arrive?
A) SSTF
B) SCAN
C) FCFS
D) C-SCAN
Answer: C) FCFS
22. Which disk scheduling algorithm selects the request closest to the current head
position?
A) FCFS
B) SSTF
C) SCAN
D) LOOK
Answer: B) SSTF
24. Which disk scheduling algorithm is also known as the Elevator Algorithm?
A) FCFS
B) SCAN
43
C) FIFO
D) LRU
Answer: B) SCAN
26. Which disk scheduling algorithm moves in one direction only and then jumps
back to the beginning?
A) SCAN
B) LOOK
C) C-SCAN
D) SSTF
Answer: C) C-SCAN
27. Which disk scheduling algorithm avoids unnecessary movement to the end of the
disk?
A) LOOK
B) FCFS
C) FIFO
D) Round Robin
Answer: A) LOOK
28. Which Linux file system feature supports file permissions for users, groups, and
others?
A) NTFS
B) ext4
C) FAT32
D) exFAT
Answer: B) ext4
29. Which file system is commonly used in modern Linux operating systems?
A) FAT16
B) NTFS
C) ext4
D) ISO9660
Answer: C) ext4
44
A) SCAN
B) SSTF
C) LRU
D) C-SCAN
Answer: C) LRU
45
PART – B
46
file organization, directory structure, access control, I/O
management, and disk scheduling. Propose an appropriate solution
to ensure security, performance, and efficient resource utilization.
47