2025 question paper

Operating System

28 questions

  1. Q1a. Which type of Operating System allows multiple users to access the system simultaneously? (i) Single-user OS (ii) Batch OS (iii) Multi-user OS (iv) Embedded OS20252m

    Module 1: Introduction to Operating Systems

    Which type of Operating System allows multiple users to access the system simultaneously?

    (i) Single-user OS
    (ii) Batch OS
    (iii) Multi-user OS
    (iv) Embedded OS

    View this question on its own page →
  2. Q1b. Which scheduler selects processes from the ready queue and allocates the CPU? (i) Long-term scheduler (ii) Medium-term scheduler (iii) Short-term scheduler (iv) Batch scheduler20252m

    Module 2: Processes & Scheduling

    Which scheduler selects processes from the ready queue and allocates the CPU?

    (i) Long-term scheduler
    (ii) Medium-term scheduler
    (iii) Short-term scheduler
    (iv) Batch scheduler

    View this question on its own page →
  3. Q1c. What is the motive of using a Virtual Machine for an operating system? (i) Increase CPU throughput (ii) Run multiple operating systems on the same hardware (iii) Create databases (iv) Allow multiple threads to execute concurrently within a process20252m

    Module 1: Introduction to Operating Systems

    What is the motive of using a Virtual Machine for an operating system?

    (i) Increase CPU throughput
    (ii) Run multiple operating systems on the same hardware
    (iii) Create databases
    (iv) Allow multiple threads to execute concurrently within a process

    View this question on its own page →
  4. Q1d. Which type of thread is managed directly by the operating system kernel? (i) User-level thread (ii) Kernel-level thread (iii) Single thread (iv) Background thread20252m

    Module 2: Processes & Scheduling

    Which type of thread is managed directly by the operating system kernel?

    (i) User-level thread
    (ii) Kernel-level thread
    (iii) Single thread
    (iv) Background thread

    View this question on its own page →
  5. Q1e. The Dining Philosopher Algorithm is a classic example of which problem? (i) CPU scheduling (ii) Memory fragmentation (iii) Process synchronization and deadlock (iv) File allocation20252m

    Module 3: Inter-process Communication

    The Dining Philosopher Algorithm is a classic example of which problem?

    (i) CPU scheduling
    (ii) Memory fragmentation
    (iii) Process synchronization and deadlock
    (iv) File allocation

    View this question on its own page →
  6. Q1f. Which technique allows the operating system to examine the resource allocation state dynamically to ensure no deadlock occurs? (i) Deadlock detection (ii) Deadlock recovery (iii) Deadlock avoidance (iv) Deadlock ignoring20252m

    Module 4: Deadlocks

    Which technique allows the operating system to examine the resource allocation state dynamically to ensure no deadlock occurs?

    (i) Deadlock detection
    (ii) Deadlock recovery
    (iii) Deadlock avoidance
    (iv) Deadlock ignoring

    View this question on its own page →
  7. Q1g. Which free-space management technique uses a bitmap to indicate free and occupied blocks? (i) Bit Vector (ii) Indexing (iii) Grouping (iv) Linked List20252m

    Module 6: I/O & File Management

    Which free-space management technique uses a bitmap to indicate free and occupied blocks?

    (i) Bit Vector
    (ii) Indexing
    (iii) Grouping
    (iv) Linked List

    View this question on its own page →
  8. Q1h. Internal fragmentation occurs when (i) Processes are swapped out (ii) Pages are missing (iii) Memory is completely utilized (iv) Unused space exists within an allocated memory partition20252m

    Module 5: Memory Management

    Internal fragmentation occurs when

    (i) Processes are swapped out
    (ii) Pages are missing
    (iii) Memory is completely utilized
    (iv) Unused space exists within an allocated memory partition

    View this question on its own page →
  9. Q1i. Which page replacement algorithm replaces the page that will not be used for the longest period in the future? (i) Optimal (ii) Second Chance (iii) FIFO (iv) NRU20252m

    Module 5: Memory Management

    Which page replacement algorithm replaces the page that will not be used for the longest period in the future?

    (i) Optimal
    (ii) Second Chance
    (iii) FIFO
    (iv) NRU

    View this question on its own page →
  10. Q1j. Which disk scheduling algorithm services requests in the order they arrive? (i) SCAN (ii) SSTF (iii) FCFS (iv) C-SCAN20252m

    Module 6: I/O & File Management

    Which disk scheduling algorithm services requests in the order they arrive?

    (i) SCAN
    (ii) SSTF
    (iii) FCFS
    (iv) C-SCAN

    View this question on its own page →
  11. Q2a. Explain system calls and their importance in Operating Systems. Discuss various categories of system calls.20257m

    Module 1: Introduction to Operating Systems

    Explain system calls and their importance in Operating Systems. Discuss various categories of system calls.

    View this question on its own page →
  12. Q2b. Illustrate the concept of Virtual Machines.20257m

    Module 1: Introduction to Operating Systems

    Illustrate the concept of Virtual Machines.

    View this question on its own page →
  13. Q3a. What is a Process Control Block? Explain its structure and significance in process management.20257m

    Module 2: Processes & Scheduling

    What is a Process Control Block? Explain its structure and significance in process management.

    View this question on its own page →
  14. Q3b. Define threads and explain their various states. Compare user-level threads with kernel-level threads.20257m

    Module 2: Processes & Scheduling

    Define threads and explain their various states. Compare user-level threads with kernel-level threads.

    View this question on its own page →
  15. Q4a. Discuss multiprocessor scheduling and real-time scheduling techniques.20257m

    Module 2: Processes & Scheduling

    Discuss multiprocessor scheduling and real-time scheduling techniques.

    View this question on its own page →
  16. Q4b. Consider a system with five processes P0 through P4 and four resources type A, B, C and D. Using the Banker's algorithm answer that the system is in a safe state? | Process | Allocation (A B C D) | Max (A B C D) | Available (A B C D) | | :--- | :---: | :---: | :---: | | P0 | 0 0 1 2 | 0 0 1 2 | 1 5 2 0 | | P1 | 1 0 0 0 | 1 7 5 0 | | | P2 | 1 3 5 4 | 2 3 5 6 | | | P3 | 0 6 3 2 | 0 6 5 2 | | | P4 | 0 0 1 4 | 0 6 5 6 | |20257m

    Module 4: Deadlocks

    Consider a system with five processes P0 through P4 and four resources type A, B, C and D. Using the Banker's algorithm answer that the system is in a safe state?

    Process Allocation (A B C D) Max (A B C D) Available (A B C D)
    P0 0 0 1 2 0 0 1 2 1 5 2 0
    P1 1 0 0 0 1 7 5 0
    P2 1 3 5 4 2 3 5 6
    P3 0 6 3 2 0 6 5 2
    P4 0 0 1 4 0 6 5 6
    View this question on its own page →
  17. Q5a. Explain the structure of a file system. Discuss the role of directories, metadata, and file control blocks in file management.20257m

    Module 6: I/O & File Management

    Explain the structure of a file system. Discuss the role of directories, metadata, and file control blocks in file management.

    View this question on its own page →
  18. Q5b. Suppose that a disk drive has 5000 cylinders, numbered 0 to 4999. The drive is currently serving a request at cylinder 143, and the previous request was at cylinder 125. The queue of pending request, in FIFO order is: 86, 1470, 913, 1774, 948, 1509, 1022, 1750, 130 Starting from the current head position, applying Shortest-seek-time-first (SSTF) algorithm find what is the total distance (in cylinders) that the disk arm moves to satisfy all the pending requests.20257m

    Module 6: I/O & File Management

    Suppose that a disk drive has 5000 cylinders, numbered 0 to 4999. The drive is currently serving a request at cylinder 143, and the previous request was at cylinder 125. The queue of pending request, in FIFO order is:
    86, 1470, 913, 1774, 948, 1509, 1022, 1750, 130

    Starting from the current head position, applying Shortest-seek-time-first (SSTF) algorithm find what is the total distance (in cylinders) that the disk arm moves to satisfy all the pending requests.

    View this question on its own page →
  19. Q6a. Describe the objectives of process scheduling. Explain the roles of long-term, medium-term, and short-term schedulers.20257m

    Module 2: Processes & Scheduling

    Describe the objectives of process scheduling. Explain the roles of long-term, medium-term, and short-term schedulers.

    View this question on its own page →
  20. Q6b. Consider the main memory with the capacity of 4 page frames. Assume that the pages of a process are referenced in the order as given below: 1, 3, 4, 4, 3, 2, 1, 7, 5, 6, 4, 2, 1, 2 Which of FIFO or LRU would be better in this case as a page replacement policy? Why?20257m

    Module 5: Memory Management

    Consider the main memory with the capacity of 4 page frames. Assume that the pages of a process are referenced in the order as given below:
    1, 3, 4, 4, 3, 2, 1, 7, 5, 6, 4, 2, 1, 2

    Which of FIFO or LRU would be better in this case as a page replacement policy? Why?

    View this question on its own page →
  21. Q7a. Explain the Producer-Consumer problem and discuss how semaphores can be used to solve it.20257m

    Module 3: Inter-process Communication

    Explain the Producer-Consumer problem and discuss how semaphores can be used to solve it.

    View this question on its own page →
  22. Q7b. Consider the following set of processes with the length of the CPU burst given in milliseconds: | Process | Burst Time | Priority | | :---: | :---: | :---: | | A | 10 | 3 | | B | 1 | 1 | | C | 2 | 3 | | D | 1 | 4 | | E | 5 | 2 | The processes are assumed to have arrived in order A, B, C, D, E all at time 0. Draw the Gantt charts that illustrate the execution of SJF scheduling algorithm. Show which algorithm results in the minimum average waiting time.20257m

    Module 2: Processes & Scheduling

    Consider the following set of processes with the length of the CPU burst given in milliseconds:

    Process Burst Time Priority
    A 10 3
    B 1 1
    C 2 3
    D 1 4
    E 5 2

    The processes are assumed to have arrived in order A, B, C, D, E all at time 0. Draw the Gantt charts that illustrate the execution of SJF scheduling algorithm. Show which algorithm results in the minimum average waiting time.

    View this question on its own page →
  23. Q8a. Discuss deadlock recovery techniques. Explain process termination and resource preemption methods used for recovery from deadlock.20257m

    Module 4: Deadlocks

    Discuss deadlock recovery techniques. Explain process termination and resource preemption methods used for recovery from deadlock.

    View this question on its own page →
  24. Q8b. Write an algorithm for Readers-Writers Problem solution using Semaphores.20257m

    Module 3: Inter-process Communication

    Write an algorithm for Readers-Writers Problem solution using Semaphores.

    View this question on its own page →
  25. Q9a. Write a short note on: Process State transitions20257m

    Module 2: Processes & Scheduling

    Write a short note on:

    Process State transitions

    View this question on its own page →
  26. Q9b. Write a short note on: Paging and segmentation20257m

    Module 5: Memory Management

    Write a short note on:

    Paging and segmentation

    View this question on its own page →
  27. Q9c. Write a short note on: Contiguous Memory allocation20257m

    Module 5: Memory Management

    Write a short note on:

    Contiguous Memory allocation

    View this question on its own page →
  28. Q9d. Write a short note on: Boot-block and Bad blocks20257m

    Module 6: I/O & File Management

    Write a short note on:

    Boot-block and Bad blocks

    View this question on its own page →