0% found this document useful (0 votes)
213 views30 pages

OS MCQ Combine

Uploaded by

SRC Exam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
213 views30 pages

OS MCQ Combine

Uploaded by

SRC Exam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 30

Operating System MCQ Set I

1. Which of the following is not an operating system?


a) Linux
b) Microsoft Word
c) macOS
d) Windows

Answer: b) Microsoft Word

2. What is the primary function of an operating system?


a) Managing hardware resources
b) Writing code
c) Creating documents
d) Playing games

Answer: a) Managing hardware resources

3. Which of the following is a multitasking operating system?


a) MS-DOS
b) Windows 3.1
c) Windows 10
d) Windows 95

Answer: c) Windows 10

4. What does GUI stand for?


a) Graphical User Interface
b) General Utility Interface
c) Graphics Universal Interface
d) Global User Interaction

Answer: a) Graphical User Interface

5. Which scheduling algorithm gives priority to processes with higher priority levels?
a) Round Robin
b) First-Come, First-Served (FCFS)
c) Priority Scheduling
d) Shortest Job Next (SJN)

Answer: c) Priority Scheduling

6. What is the purpose of virtual memory?


a) To allow programs to use more memory than is physically available
b) To decrease the speed of the computer
c) To limit the number of processes running simultaneously
d) To improve the security of the operating system

Answer: a) To allow programs to use more memory than is physically available

7. Which of the following is not a type of operating system?


a) Real-time OS
b) Network OS
c) Distributed OS
d) Hardware OS

Answer: d) Hardware OS

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


a) It is the user interface
b) It is the central part that manages the system's resources
c) It manages the software applications
d) It provides security features

Answer: b) It is the central part that manages the system's resources

9. Which of the following is a function of an operating system's file management system?


a) Formatting disks
b) Allocating system resources
c) Printing documents
d) Creating spreadsheets

Answer: a) Formatting disks

10. Which file system is used by macOS?


a) NTFS
b) FAT32
c) HFS+
d) Ext4

Answer: c) HFS+

11. What is the primary function of a device driver?


a) To control hardware devices
b) To manage file systems
c) To execute application programs
d) To provide security features

Answer: a) To control hardware devices

12. Which of the following is not a category of operating system errors?


a) Fatal Errors
b) System Errors
c) Hardware Errors
d) User Errors

Answer: d) User Errors

13. What is the purpose of an interrupt handler?


a) To manage system resources
b) To handle errors in the operating system
c) To respond to hardware events
d) To schedule processes

Answer: c) To respond to hardware events

14. What is the function of a command interpreter?


a) To translate high-level languages into machine code
b) To manage files and directories
c) To execute commands entered by the user
d) To provide an interface between hardware and software

Answer: c) To execute commands entered by the user

15. Which of the following is a characteristic of a real-time operating system?


a) It is primarily used for general-purpose computing tasks
b) It guarantees that processes will always complete within a certain timeframe
c) It is not suitable for time-critical applications
d) It does not support multitasking

Answer: b) It guarantees that processes will always complete within a certain timeframe

16. Which of the following is not a memory management technique used by operating systems?
a) Paging
b) Segmentation
c) Thrashing
d) Fragmentation

Answer: c) Thrashing

17. What is the purpose of the booting process in an operating system?


a) To shut down the computer
b) To start the computer and load the operating system into memory
c) To install new software
d) To perform hardware diagnostics

Answer: b) To start the computer and load the operating system into memory

18. Which of the following is an example of a distributed operating system?


a) Windows 10
b) Linux
c) Android
d) Google Chrome OS

Answer: c) Android

19. What is a deadlock in operating system terminology?


a) A situation where two processes are waiting indefinitely for each other to release resources
b) A situation where a process terminates unexpectedly
c) A situation where the operating system crashes
d) A situation where a device driver fails to load

Answer: a) A situation where two processes are waiting indefinitely for each other to release resources

20. Which of the following is not a function of an operating system's security features?
a) User authentication
b) File compression
c) Encryption
d) Access control

Answer: b) File compression

21. What is the purpose of system calls in an operating system?


a) To execute user programs
b) To provide an interface between application programs and the operating system
c) To manage system resources
d) To handle hardware interrupts

Answer: b) To provide an interface between application programs and the operating system

22. Which of the following is a characteristic of a monolithic kernel?


a) It is modular and allows for easy addition or removal of components
b) It is small and lightweight
c) It runs entirely in user space
d) It contains all operating system functions in a single executable image

Answer: d) It contains all operating system functions in a single executable image

23. What is the role of the shell in an operating system?


a) To provide a graphical user interface
b) To manage system resources
c) To interpret and execute commands entered by the user
d) To control hardware devices

Answer: c) To interpret and execute commands entered by the user

24. Which of the following is an example of a preemptive scheduling algorithm?


a) Shortest Job Next (SJN)
b) First-Come, First-Served (FCFS)
c) Round Robin
d) Priority Scheduling

Answer: c) Round Robin

25. Which of the following is an example of a non-preemptive scheduling algorithm?


a) Shortest Remaining Time First (SRTF)
b) Round Robin
c) Priority Scheduling
d) First-Come, First-Served (FCFS)

Answer: d) First-Come, First-Served (FCFS)

26. What is the purpose of a page table in virtual memory management?


a) To store the contents of memory pages
b) To map virtual addresses to physical addresses
c) To allocate memory to processes
d) To manage disk space
Answer: b) To map virtual addresses to physical addresses

27. Which of the following is an example of a time-sharing operating system?


a) MS-DOS
b) Linux
c) Windows 3.1
d) Windows 95

Answer: b) Linux

28. What is the role of the FAT file system in Windows operating systems?
a) It is used for managing memory
b) It is used for managing user accounts
c) It is used for managing files and directories
d) It is used for managing network connections

Answer: c) It is used for managing files and directories

29. What is the purpose of the Process Control Block (PCB) in an operating system?
a) To manage system processes
b) To control input/output operations
c) To manage system resources
d) To provide an interface between the kernel and device drivers

Answer: a) To manage system processes

30. Which of the following is a characteristic of a distributed operating system?


a) It runs on a single computer
b) It allows processes to communicate and share resources across a network
c) It does not support multitasking
d) It is not suitable for large-scale applications

Answer: b) It allows processes to communicate and share resources across a network

31. What is the purpose of the init process in Unix-like operating systems?
a) To initialize hardware devices
b) To load the kernel into memory
c) To start and manage system processes
d) To execute user commands

Answer: c) To start and manage system processes

32. Which of the following is not a function of an operating system's memory manager?
a) Allocating memory to processes
b) Freeing memory when it is no longer needed
c) Executing application programs
d) Managing virtual memory

Answer: c) Executing application programs

33. What is a process in the context of an operating system?


a) A program in execution
b) A type of device driver
c) A type of file system
d) A system call

Answer: a) A program in execution

34. Which of the following is a characteristic of a multi-user operating system?


a) It can only run one process at a time
b) It allows multiple users to access the system simultaneously
c) It cannot run on networked computers
d) It does not support virtual memory

Answer: b) It allows multiple users to access the system simultaneously

35. Which of the following is an example of a non-volatile memory device?


a) RAM
b) ROM
c) Cache memory
d) Virtual memory

Answer: b) ROM

36. What is the purpose of a context switch in multitasking operating systems?


a) To switch between user and kernel mode
b) To switch between processes
c) To switch between memory pages
d) To switch between network connections

Answer: b) To switch between processes

37. Which of the following is not an example of an operating system kernel?


a) Monolithic kernel
b) Microkernel
c) Hybrid kernel
d) Application kernel

Answer: d) Application kernel

38. What is the purpose of the BIOS in a computer system?


a) To manage user accounts
b) To load the operating system into memory during the boot process
c) To manage virtual memory
d) To execute application programs

Answer: b) To load the operating system into memory during the boot process

39. What is the role of the swap space in virtual memory management?
a) To store temporary files
b) To store copies of frequently accessed files
c) To provide additional memory when physical memory is full
d) To manage network connections

Answer: c) To provide additional memory when physical memory is full

40. Which of the following is not a function of an operating system's input/output manager?
a) Managing device drivers
b) Controlling input/output operations
c) Managing system processes
d) Buffering data transfers

Answer: c) Managing system processes

41. What is the purpose of the file allocation table (FAT) in the FAT file system?
a) To store file metadata
b) To map file names to disk addresses
c) To manage file permissions
d) To manage file compression

Answer: b) To map file names to disk addresses

42. Which of the following is not a type of system call?


a) Process control
b) File management
c) Network management
d) Memory management

Answer: c) Network management

43. Which of the following is a characteristic of a symmetric multiprocessing (SMP) system?


a) It is suitable for single-user systems
b) It allows multiple processors to share a common memory
c) It does not support multitasking
d) It is not scalable

Answer: b) It allows multiple processors to share a common memory


44. What is the purpose of the system clock in an operating system?
a) To manage network connections
b) To synchronize processes
c) To control input/output operations
d) To manage virtual memory

Answer: b) To synchronize processes

45. Which of the following is an example of a distributed file system?


a) NTFS
b) FAT32
c) NFS
d) HFS+

Answer: c) NFS

46. What is the primary function of the Memory Management Unit (MMU) in a computer system?
a) To manage file systems
b) To control input/output operations
c) To translate virtual addresses to physical addresses
d) To manage user accounts

Answer: c) To translate virtual addresses to physical addresses

47. Which of the following is an example of a non-preemptive scheduling algorithm?


a) Shortest Remaining Time First (SRTF)
b) Round Robin
c) Priority Scheduling
d) First-Come, First-Served (FCFS)

Answer: d) First-Come, First-Served (FCFS)

48. What is the purpose of the shell in Unix-like operating systems?


a) To manage system processes
b) To interpret and execute commands entered by the user
c) To control input/output operations
d) To manage network connections

Answer: b) To interpret and execute commands entered by the user

49. Which of the following is not a characteristic of a real-time operating system?


a) It guarantees that processes will always complete within a certain timeframe
b) It is primarily used for general-purpose computing tasks
c) It is suitable for time-critical applications
d) It supports multitasking

Answer: b) It is primarily used for general-purpose computing tasks

50. What is the purpose of the page replacement algorithm in virtual memory management?
a) To allocate memory to processes
b) To manage disk space
c) To decide which memory pages to swap out to disk when physical memory is full
d) To manage file systems

Answer: c) To decide which memory pages to swap out to disk when physical memory is full

51. Which of the following is an example of a distributed operating system?


a) Windows 10
b) Linux
c) Android
d) Google Chrome OS

Answer: c) Android

52. What is the purpose of a system call in an operating system?


a) To manage hardware resources
b) To provide an interface between application programs and the operating system
c) To execute user commands
d) To handle errors in the operating system
Answer: b) To provide an interface between application programs and the operating system

53. What is the purpose of a deadlock detection algorithm in operating systems?


a) To prevent deadlocks from occurring
b) To recover from deadlocks after they occur
c) To terminate processes that are deadlocked
d) To prioritize processes to avoid deadlocks

Answer: b) To recover from deadlocks after they occur

54. Which of the following is not a function of an operating system's file management system?
a) Formatting disks
b) Allocating system resources
c) Printing documents
d) Creating spreadsheets

Answer: c) Printing documents

55. Which of the following is an example of a preemptive scheduling algorithm?


a) Shortest Job Next (SJN)
b) First-Come, First-Served (FCFS)
c) Round Robin
d) Priority Scheduling

Answer: c) Round Robin

56. What is the primary function of an operating system?


a) Managing hardware resources
b) Writing code
c) Creating documents
d) Playing games

Answer: a) Managing hardware resources

57. Which of the following is not an operating system?


a) Linux
b) Microsoft Word
c) macOS
d) Windows

Answer: b) Microsoft Word

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


a) It is the user interface
b) It is the central part that manages the system's resources
c) It manages the software applications
d) It provides security features

Answer: b) It is the central part that manages the system's resources

59. What is the purpose of virtual memory?


a) To allow programs to use more memory than is physically available
b) To decrease the speed of the computer
c) To limit the number of processes running simultaneously
d) To improve the security of the operating system

Answer: a) To allow programs to use more memory than is physically available

60. Which scheduling algorithm gives priority to processes with higher priority levels?
a) Round Robin
b) First-Come, First-Served (FCFS)
c) Priority Scheduling
d) Shortest Job Next (SJN)

Answer: c) Priority Scheduling

61. What does GUI stand for?


a) Graphical User Interface
b) General Utility Interface
c) Graphics Universal Interface
d) Global User Interaction

Answer: a) Graphical User Interface

62. Which of the following is a multitasking operating system?


a) MS-DOS
b) Windows 3.1
c) Windows 10
d) Windows 95

Answer: c) Windows 10

63. What is the purpose of an interrupt handler?


a) To manage system resources
b) To handle errors in the operating system
c) To respond to hardware events
d) To schedule processes

Answer: c) To respond to hardware events

64. What is the function of a command interpreter?


a) To translate high-level languages into machine code
b) To manage files and directories
c) To execute commands entered by the user
d) To provide an interface between hardware and software

Answer: c) To execute commands entered by the user

65. Which of the following is a characteristic of a real-time operating system?


a) It is primarily used for general-purpose computing tasks
b) It guarantees that processes will always complete within a certain timeframe
c) It is not suitable for time-critical applications
d) It does not support multitasking

Answer: b) It guarantees that processes will always complete within a certain timeframe

66. Which of the following is not a type of operating system?


a) Real-time OS
b) Network OS
c) Distributed OS
d) Hardware OS

Answer: d) Hardware OS

67. Which file system is used by macOS?


a) NTFS
b) FAT32
c) HFS+
d) Ext4

Answer: c) HFS+

68. What is the role of a device driver in an operating system?


a) To manage hardware devices
b) To interpret and execute commands entered by the user
c) To provide an interface between application programs and the operating system
d) To allocate memory to processes

Answer: a) To manage hardware devices

69. What is the primary function of an operating system's file management system?
a) Formatting disks
b) Allocating system resources
c) Printing documents
d) Creating spreadsheets

Answer: a) Formatting disks


70. Which of the following is an example of a distributed operating system?
a) Windows 10
b) Linux
c) Android
d) Google Chrome OS

Answer: c) Android

71. What is a deadlock in operating system terminology?


a) A situation where two processes are waiting indefinitely for each other to release resources
b) A situation where a process terminates unexpectedly
c) A situation where the operating system crashes
d) A situation where a device driver fails to load

Answer: a) A situation where two processes are waiting indefinitely for each other to release resources

72. What is the purpose of a system call in an operating system?


a) To manage hardware resources
b) To provide an interface between application programs and the operating system
c) To execute user commands
d) To handle errors in the operating system

Answer: b) To provide an interface between application programs and the operating system

73. What is the purpose of the Memory Management Unit (MMU) in a computer system?
a) To manage file systems
b) To control input/output operations
c) To translate virtual addresses to physical addresses
d) To manage user accounts

Answer: c) To translate virtual addresses to physical addresses

74. Which of the following is not a characteristic of a real-time operating system?


a) It is primarily used for general-purpose computing tasks
b) It guarantees that processes will always complete within a certain timeframe
c) It is not suitable for time-critical applications
d

) It does not support multitasking

Answer: a) It is primarily used for general-purpose computing tasks

75. What is the purpose of the shell in Unix-like operating systems?


a) To manage system processes
b) To interpret and execute commands entered by the user
c) To control input/output operations
d) To manage network connections

Answer: b) To interpret and execute commands entered by the user

76. Which of the following is a characteristic of a multi-user operating system?


a) It can only run one process at a time
b) It allows multiple users to access the system simultaneously
c) It cannot run on networked computers
d) It does not support virtual memory

Answer: b) It allows multiple users to access the system simultaneously

77. What is the purpose of the swap space in virtual memory management?
a) To store temporary files
b) To store copies of frequently accessed files
c) To provide additional memory when physical memory is full
d) To manage network connections

Answer: c) To provide additional memory when physical memory is full

78. Which of the following is an example of a distributed file system?


a) NTFS
b) FAT32
c) NFS
d) HFS+

Answer: c) NFS

79. What is the purpose of a context switch in multitasking operating systems?


a) To switch between user and kernel mode
b) To switch between processes
c) To switch between memory pages
d) To switch between network connections

Answer: b) To switch between processes

80. What is the purpose of the file allocation table (FAT) in the FAT file system?
a) To store file metadata
b) To map file names to disk addresses
c) To manage file permissions
d) To manage file compression

Answer: b) To map file names to disk addresses

81. Which of the following is not a characteristic of a distributed operating system?


a) It runs on a single computer
b) It allows processes to communicate and share resources across a network
c) It does not support multitasking
d) It is not suitable for large-scale applications

Answer: a) It runs on a single computer

82. What is the purpose of the BIOS in a computer system?


a) To manage user accounts
b) To load the operating system into memory during the boot process
c) To manage virtual memory
d) To execute application programs

Answer: b) To load the operating system into memory during the boot process

83. What is the purpose of a page table in virtual memory management?


a) To store the contents of memory pages
b) To map virtual addresses to physical addresses
c) To allocate memory to processes
d) To manage disk space

Answer: b) To map virtual addresses to physical addresses

84. Which of the following is not a type of system call?


a) Process control
b) File management
c) Network management
d) Memory management

Answer: c) Network management

85. What is the role of the swap space in virtual memory management?
a) To store temporary files
b) To store copies of frequently accessed files
c) To provide additional memory when physical memory is full
d) To manage network connections

Answer: c) To provide additional memory when physical memory is full

86. What is the purpose of a process control block (PCB) in operating systems?
a) To manage system processes
b) To control input/output operations
c) To manage system resources
d) To provide an interface between the kernel and device drivers

Answer: a) To manage system processes


87. Which of the following is an example of a distributed operating system?
a) Windows 10
b) Linux
c) Android
d) Google Chrome OS

Answer: c) Android

88. What is the purpose of an interrupt handler?


a) To manage system resources
b) To handle errors in the operating system
c) To respond to hardware events
d) To schedule processes

Answer: c) To respond to hardware events

89. What is the function of a command interpreter?


a) To translate high-level languages into machine code
b) To manage files and directories
c) To execute commands entered by the user
d) To provide an interface between hardware and software

Answer: c) To execute commands entered by the user

90. Which of the following is a characteristic of a real-time operating system?


a) It is primarily used for general-purpose computing tasks
b) It guarantees that processes will always complete within a certain timeframe
c) It is not suitable for time-critical applications
d) It does not support multitasking

Answer: b) It guarantees that processes will always complete within a certain timeframe

91. Which of the following is not a type of operating system?


a) Real-time OS
b) Network OS
c) Distributed OS
d) Hardware OS

Answer: d) Hardware OS

92. Which file system is used by macOS?


a) NTFS
b) FAT32
c) HFS+
d) Ext4

Answer: c) HFS+

93. What is the role of a device driver in an operating system?


a) To manage hardware devices
b) To interpret and execute commands entered by the user
c) To provide an interface between application programs and the operating system
d) To allocate memory to processes

Answer: a) To manage hardware devices

94. What is the primary function of an operating system's file management system?
a) Formatting disks
b) Allocating system resources
c) Printing documents
d) Creating spreadsheets

Answer: a) Formatting disks

95. Which of the following is an example of a distributed operating system?


a) Windows 10
b) Linux
c) Android
d) Google Chrome OS

Answer: c) Android

96. What is a deadlock in operating system terminology?


a) A situation where two processes are waiting indefinitely for each other to release resources
b) A situation where a process terminates unexpectedly
c) A situation where the operating system crashes
d) A situation where a device driver fails to load

Answer: a) A situation where two processes are waiting indefinitely for each other to release resources

97. What is the purpose of a system call in an operating system?


a) To manage hardware resources
b) To provide an interface between application programs and the operating system
c) To execute user commands
d) To handle errors in the operating system

Answer: b) To provide an interface between application programs and the operating system

98. What is the purpose of the Memory Management Unit (MMU) in a computer system?
a) To manage file systems
b) To control input/output operations
c) To translate virtual addresses to physical addresses
d) To manage user accounts
Answer: c) To translate virtual addresses to physical addresses

99. Which of the following is not a characteristic of a real-time operating system?


a) It is primarily used for general-purpose computing tasks
b) It guarantees that processes will always complete within a certain timeframe
c) It is not suitable for time-critical applications
d) It does not support multitasking

Answer: a) It is primarily used for general-purpose computing tasks

100. What is the purpose of the shell in Unix-like operating systems?


a) To manage system processes
b) To interpret and execute commands entered by the user
c) To control input/output operations
d) To manage network connections

Answer: b) To interpret and execute commands entered by the user


Operating System MCQ Set II
1) Which of the following is not an operating system?
a) Windows
b) Linux
c) Oracle
d) DOS

2) Which of the following is the core of an operating system?


a) Shell
b) Kernel
c) Command interpreter
d) System call

3) What is the main function of the command interpreter?


a) To provide the interface between the API and application program
b) To handle the files in the operating system
c) To get and execute the next user-specified command
d) To provide a way for the user to interact with the computer

4) Which of the following is not a type of operating system?


a) Real-time OS
b) Time-sharing OS
c) Distributed OS
d) Compositional OS

5) In which type of OS, the response time is very crucial?


a) Network OS
b) Real-time OS
c) Distributed OS
d) Multiprogramming OS

6) Which of the following is not a layer of the operating system architecture?


a) Kernel
b) Shell
c) Application programs
d) Compiler

7) Which of the following is used in an OS to separate mechanism from policy?


a) Virtual memory
b) Paging
c) Abstraction
d) Synchronization

8) What is the mean of the booting process?


a) Restarting computer
b) Installing a program
c) Scanning a program
d) Removing a program

9) Which of the following is not a characteristic of a real-time operating system?


a) Predictable response times
b) High throughput
c) Multitasking
d) Deterministic behavior

10) Which of the following operating systems do you choose to implement a client-server network?
a) MS DOS
b) Windows
c) Windows Server
d) UNIX

11) Which of the following is the default file extension created by Notepad?
a) .doc
b) .html
c) .txt
d) .xml

12) Which part of the operating system is responsible for managing the file system?
a) Kernel
b) File manager
c) I/O manager
d) Memory manager

13) Which command is used to display the contents of a file in UNIX?


a) copy
b) paste
c) cat
d) move

14) Which of the following is a type of memory that loses its contents when power is turned off?
a) ROM
b) RAM
c) Hard disk
d) Floppy disk

15) What is thrashing in the context of operating systems?


a) Swapping data to and from the hard disk
b) High paging activity
c) Frequent use of the page table
d) Low CPU utilization

16) Which scheduling algorithm allocates the CPU first to the process that requests the CPU first?
a) Shortest Job First
b) Round Robin
c) Priority
d) First-Come, First-Served

17) What is the concept of swapping related to?


a) Deleting a process
b) Bringing a process into memory
c) Moving processes in and out of the memory
d) Blocking a process

18) Which command is used to remove a directory in UNIX?


a) rmdir
b) del
c) erase
d) rd

19) Which of the following is not a component of the process control block (PCB)?
a) Process state
b) Process counter
c) Stack pointer
d) I/O status information

20) Which of the following is the most secure file system used in Windows?
a) FAT32
b) NTFS
c) exFAT
d) FAT16

21) Which operating system uses the concept of a Domain?


a) UNIX
b) Linux
c) Windows
d) MS DOS

22) What is the main advantage of multiprogramming?


a) Larger memory space
b) Shorter response time
c) Higher CPU utilization
d) Simplified programming

23) Which of the following is not an example of a real-time operating system?


a) VxWorks
b) Windows CE
c) RTLinux
d) Palm OS

24) Which of the following is not an attribute of a file?


a) Name
b) Size
c) Date of creation
d) Color

25) Which scheduling algorithm is guaranteed to provide the lowest average waiting time?
a) First-Come, First-Served
b) Shortest Job First
c) Priority Scheduling
d) Round Robin

26) What is the mechanism by which the operating system prevents a single process from monopolizing the CPU?
a) Swapping
b) Context switching
c) Time slicing
d) Interrupt handling

27) Which of the following is a non-preemptive scheduling algorithm?


a) Round Robin
b) First-Come, First-Served
c) Shortest Remaining Time
d) Priority

28) In UNIX, which command is used to list the contents of a directory?


a) list
b) ls
c) dir
d) show

29) Which of the following is a condition necessary for deadlock to occur?


a) Preemption
b) Circular wait
c) Symmetric multiprocessing
d) Spooling

30) What is the primary purpose of an operating system?


a) To make computers easier to use
b) To allow users to run applications
c) To manage hardware resources
d) All of the above

31) Which memory allocation scheme suffers from external fragmentation?


a) Paging
b) Segmentation
c) Virtual memory
d) Fixed partitioning

32) Which of the following is a method of handling deadlocks?


a) Mutual exclusion
b) Hold and wait
c) Circular wait
d) Resource allocation graph

33) Which command is used to display the directory structure in UNIX?


a) tree
b) dir
c) ls
d) find

34) Which of the following is a function of the I/O management module of an OS?
a) CPU scheduling
b) Memory management
c) Disk scheduling
d) File management

35) Which of the following is a disadvantage of a time-sharing system?


a) Increased security and data integrity
b) Higher system overhead
c) Better utilization of resources
d) Quick response to interactive user requests

36) Which of the following is a technique to avoid deadlock?


a) Semaphore
b) Monitor
c) Banker's algorithm
d) Paging

37) Which of the following is a component of process scheduling?


a) Short-term scheduler
b) Medium-term scheduler
c) Long-term scheduler
d) All of the above

38) In which state does the process reside after termination?


a) Ready
b) Waiting
c) Running
d) Zombie

39) Which of the following is used to perform tasks that are separated into non-overlapping intervals of time?
a) Multiprocessing
b) Multithreading
c) Time slicing
d) Context switching

40) Which of the following commands is used to change the ownership of a file in UNIX?
a) chown
b) chmod
c) chgrp
d) chattr

41) What is the primary goal of an operating system?


a) Convenience
b) Efficiency
c) Ability to evolve
d) All of the above

42) What is the term for the concept where a process runs on one CPU and its tasks run on other CPUs?
a) Symmetric multiprocessing
b) Asymmetric multiprocessing
c) Distributed processing
d) Parallel processing

43) What does FIFO stand for in the context of scheduling algorithms?
a) File In, File Out
b) First In, First Out
c) File Input, File Output
d) Fast Input, Fast Output

44) Which system call is used to create a new process in UNIX?


a) fork()
b) exec()
c) wait()
d) exit()

45) What is a shell in the context of an operating system?


a) Interface between the user and hardware
b) Interface between the kernel and hardware
c) Interface between the user and kernel
d) Interface between the application and hardware

46) What is virtual memory?


a) A type of memory used for high-speed I/O devices
b) An illusion of a large memory provided by the operating system
c) A method to store data on a secondary storage device
d) A memory management technique to keep track of multiple tasks

47) Which of the following is not a memory management scheme?


a) Paging
b) Segmentation
c) Swapping
d) Spooling

48) What does DMA stand for in the context of operating systems?
a) Direct Memory Access
b) Dynamic Memory Allocation
c) Dual Memory Access
d) Data Memory Allocation

49) Which of the following is a device that can perform input and output operations?
a) Monitor
b) Printer
c) Disk drive
d) Keyboard

50) Which of the following is not a deadlock avoidance algorithm?


a) Resource Allocation Graph
b) Banker's Algorithm
c) Round Robin Scheduling
d) Wait-for Graph

51) Which of the following is a non-volatile storage?


a) RAM
b) Cache memory
c) Hard disk
d) Register

52) What is the role of a page table in an operating system?


a) To translate logical addresses to physical addresses
b) To manage memory allocation
c) To store process control information
d) To handle I/O operations

53) Which of the following is a method to handle the critical section problem?
a) Semaphore
b) Paging
c) Segmentation
d) Multitasking

54) Which of the following commands is used to delete a file in UNIX?


a) rm
b) del
c) erase
d) remove

55) Which of the following is a benefit of using a multi-threaded process over a single-threaded process?
a) Improved performance
b) Simplified coding
c) Reduced resource consumption
d) All of the above

56) Which of the following is not a characteristic of a distributed operating system?


a) Resource sharing
b) Scalability
c) Transparency
d) Centralized control

57) Which of the following is a preemptive scheduling algorithm?


a) First-Come, First-Served
b) Shortest Job Next
c) Round Robin
d) Shortest Remaining Time First

58) What is the main purpose of the 'ps' command in UNIX?


a) To display file contents
b) To list all running processes
c) To change file permissions
d) To terminate a process

59) Which of the following best describes a system call?


a) A method to switch between tasks
b) A way for programs to request services from the OS
c) A type of hardware interrupt
d) A technique for memory management

60) What is a critical section?


a) A section of code that can be executed by multiple processes simultaneously
b) A section of code that can only be executed by one process at a time
c) A section of memory that is shared between processes
d) A technique for memory management

61) Which of the following is not a characteristic of a microkernel?


a) Smaller size
b) Easier to extend
c) More secure
d) High performance

62) What is the main advantage of dynamic linking over static linking?
a) Reduced execution time
b) Better modularity
c) Reduced memory footprint
d) Improved security

63) What does 'context switching' mean?


a) Saving the state of one process and loading the state of another
b) Switching between user mode and kernel mode
c) Changing from one programming language to another
d) Moving from one task to another

64) Which of the following is not a feature of UNIX?


a) Multitasking
b) Portability
c) Single-user capability
d) Multiuser capability

65) What is the main purpose of the 'kill' command in UNIX?


a) To terminate a process
b) To list all running processes
c) To create a new process
d) To change file permissions

66) Which of the following is not a typical function of an operating system?


a) Process management
b) Memory management
c) Compiling programs
d) File system management

67) Which of the following does not belong to process states?


a) New
b) Ready
c) Executing
d) Waiting

68) Which command is used to display the current directory in UNIX?


a) pwd
b) cd
c) dir
d) ls

69) What is the role of a dispatcher in an operating system?


a) To assign the CPU to a process
b) To manage memory allocation
c) To handle I/O operations
d) To create processes

70) Which of the following is not a function of the kernel?


a) Managing the file system
b) Controlling peripheral devices
c) Providing user interfaces
d) Managing system resources

71) Which of the following commands is used to create a new directory in UNIX?
a) md
b) mkdir
c) make
d) dir

72) What is the primary role of an operating system’s device driver?


a) To facilitate communication between the OS and hardware devices
b) To manage system memory
c) To schedule processes
d) To allocate resources to different users

73) What is a 'daemon' in the context of UNIX?


a) A background process
b) A user interface
c) A type of file system
d) A memory management technique

74) Which of the following is used to prevent race conditions?


a) Semaphore
b) Paging
c) Virtual memory
d) Fragmentation

75) What is the role of the 'init' process in UNIX?


a) It initializes the system
b) It starts other processes
c) It runs in the background
d) All of the above

76) Which of the following commands is used to rename a file in UNIX?


a) mv
b) rn
c) cp
d) name

77) What is the purpose of the 'chmod' command in UNIX?


a) To change file permissions
b) To change the owner of a file
c) To change the file's timestamp
d) To change the file's name

78) Which of the following is a method to handle multiple users in a time-sharing system?
a) Multitasking
b) Multiprocessing
c) Virtual memory
d) Time slicing

79) Which of the following is not an inter-process communication mechanism?


a) Semaphore
b) Shared memory
c) Message passing
d) Thread

80) Which of the following is a function of a shell?


a) Interpret user commands
b) Manage hardware resources
c) Provide a graphical user interface
d) Handle system calls

81) Which of the following is an example of a single-user operating system?


a) Windows
b) MS-DOS
c) UNIX
d) Linux

82) What does the 'df' command display in UNIX?


a) Disk space usage
b) File permissions
c) Directory structure
d) Current directory

83) What is the main purpose of a swap space in an operating system?


a) To store frequently used files
b) To extend the RAM
c) To manage memory overflow
d) To store temporary files

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


a) A process is a program in execution, while a thread is a unit of execution within a process
b) A thread can run multiple processes, while a process runs a single thread
c) A process is lighter than a thread
d) Threads are independent, while processes are dependent

85) Which of the following is not a type of system call in operating systems?
a) Process control
b) File management
c) Device management
d) User management

86) Which of the following is a method to recover from a deadlock?


a) Preempt resources
b) Rollback processes
c) Kill processes
d) All of the above

87) What is the purpose of the 'top' command in UNIX?


a) To display the top-level directory
b) To show the current user's processes
c) To display system statistics
d) To display active processes

88) Which of the following is not an example of a real-time operating system?


a) VxWorks
b) FreeRTOS
c) Windows 10
d) RTLinux

89) What is the purpose of a bootloader?


a) To load the operating system into memory
b) To manage system resources
c) To provide a user interface
d) To compile programs

90) Which of the following commands is used to view the contents of a file in UNIX?
a) cat
b) ls
c) mv
d) rm

91) Which of the following is a valid type of scheduling in operating systems?


a) Shortest Remaining Time First
b) Longest Job Next
c) Round Robin
d) All of the above

92) What is the main function of the 'ls' command in UNIX?


a) To list directory contents
b) To list file permissions
c) To list current processes
d) To list system calls

93) Which of the following is a disadvantage of a monolithic kernel?


a) High complexity
b) High performance
c) Better security
d) Easier debugging

94) What is the role of the file system in an operating system?


a) To manage files and directories
b) To manage memory allocation
c) To handle I/O operations
d) To schedule processes

95) Which of the following is a feature of a distributed operating system?


a) Resource sharing
b) Centralized control
c) Single-user capability
d) Non-scalability

96) What does the acronym 'SMP' stand for in operating systems?
a) Symmetric Multiprocessing
b) Synchronized Memory Processing
c) Single Memory Processing
d) Simplified Memory Protection

97) Which of the following is used to allocate unique resource sets to each process?
a) Mutex
b) Semaphore
c) Virtual memory
d) Resource allocation graph

98) What is the main advantage of using threads?


a) Reduced CPU usage
b) Simplified process management
c) Improved performance
d) Better security

99) Which of the following is a type of non-preemptive scheduling?


a) Shortest Job First
b) Round Robin
c) Priority Scheduling
d) First-Come, First-Served

100) What is the purpose of a system call? –


a) To request a service from the kernel
b) To switch between processes
c) To manage memory allocation
d) To handle I/O operations
Answer Table
Q. No. Answer Q. No. Answer Q. No. Answer Q. No. Answer
1 c 26 c 51 c 76 a
2 b 27 b 52 a 77 a
3 c 28 b 53 a 78 d
4 d 29 b 54 a 79 d
5 b 30 d 55 d 80 a
6 d 31 b 56 d 81 b
7 c 32 d 57 d 82 a
8 a 33 a 58 b 83 b
9 b 34 c 59 b 84 a
10 c 35 b 60 b 85 d
11 c 36 c 61 d 86 d
12 b 37 d 62 c 87 d
13 c 38 d 63 a 88 c
14 b 39 c 64 c 89 a
15 b 40 a 65 a 90 a
16 d 41 d 66 c 91 d
17 c 42 a 67 c 92 a
18 a 43 b 68 a 93 a
19 c 44 a 69 a 94 a
20 b 45 c 70 c 95 a
21 c 46 b 71 b 96 a
22 c 47 d 72 a 97 d
23 d 48 a 73 a 98 c
24 d 49 c 74 a 99 d
25 b 50 c 75 d 100 a
Numericals Based on Operating System
CPU Scheduling algorithm:
1. A process requires 10ms of CPU time and the time quantum is 2ms. How many time slices will the process
require?
a. 2
b. 5
c. 3
d. 4

Answer: B) 5

2. A CPU scheduling algorithm has a context switch time of 1ms. If a process requires 5ms of CPU time and the
algorithm switches context 3 times, what is the total time taken?
a. 7ms
b. 8ms
c. 9ms
d. 6ms

Answer: B) 8ms

3. In a Round Robin scheduling algorithm, if the time quantum is 4ms and a process requires 12ms of CPU time, how
many time slices will the process require?
A) 2
B) 3
C) 4
D) 6

Answer: B) 3

4. A process is allocated 10ms of CPU time using the First Come First Serve (FCFS) scheduling algorithm. If the
process arrives at time t=2ms, when will it complete?
a. t=12ms
b. t=10ms
c. t=8ms
d. t=6ms

Answer: A) t=12ms

5. In a Priority Scheduling algorithm, if a process has a priority of 5 and requires 8ms of CPU time, how many time
slices will it require if the time quantum is 2ms?
a. 2
b. 3
c. 4
d. 5

Answer: C) 4

FCFS CPU Scheduling algorithm:

6. Three processes P1, P2, and P3 arrive at time t=0, t=2, and t=4 respectively. Each process requires 6ms of CPU
time. What is the average turnaround time?
a. 8ms
b. 10ms
c. 12ms
d. 14ms

Answer: C) 12ms

7. A process requires 8ms of CPU time and arrives at time t=2. If the CPU is idle until the process arrives, what is the
completion time of the process?
a. t=10ms
b. t=12ms
c. t=8ms
d. t=6ms

Answer: A) t=10ms

8. Two processes P1 and P2 arrive at time t=0 and t=3 respectively. P1 requires 5ms and P2 requires 7ms of CPU
time. What is the average waiting time?
a. 2ms
b. 3ms
c. 4ms
d. 5ms

Answer: B) 3ms

9. A process requires 10ms of CPU time and arrives at time t=5. If the CPU is idle until the process arrives, what is
the turnaround time of the process?
a. 10ms
b. 15ms
c. 20ms
d. 5ms

Answer: B) 15ms

10. Three processes P1, P2, and P3 arrive at time t=0, t=2, and t=6 respectively. Each process requires 4ms of CPU
time. What is the total time required to complete all processes?
a. 12ms
b. 14ms
c. 16ms
d. 18ms

Answer: C) 16ms

Shortest Job First (SJF) CPU Scheduling algorithm:

11. Three processes P1, P2, and P3 arrive at time t=0 with burst times 3ms, 5ms, and 2ms respectively. What is the
average turnaround time?
a. 4ms
b. 5ms
c. 6ms
d. 7ms

Answer: B) 5ms

12. Two processes P1 and P2 arrive at time t=0 with burst times 4ms and 6ms respectively. If the context switching
time is 1ms, what is the total time required to complete both processes?
a. 10ms
b. 11ms
c. 12ms
d. 13ms

Answer: B) 11ms

13. A process requires 8ms of CPU time and arrives at time t=2. If the CPU is idle until the process arrives, what is the
completion time of the process using SJF scheduling?
a. t=10ms
b. t=12ms
c. t=14ms
d. t=16ms

Answer: A) t=10ms

14. Three processes P1, P2, and P3 arrive at time t=0 with burst times 6ms, 3ms, and 4ms respectively. What is the
average waiting time?
a. 2ms
b. 3ms
c. 4ms
d. 5ms

Answer: B) 3ms

15. Two processes P1 and P2 arrive at time t=0 with burst times 5ms and 3ms respectively. If the context switching
time is 2ms, what is the total time required to complete both processes using SJF scheduling?
a. 9ms
b. 10ms
c. 11ms
d. 12ms
Answer: C) 11ms

Priority CPU Scheduling algorithm:

16. Three processes P1, P2, and P3 have priorities 3, 5, and 2 respectively, and burst times 4ms, 6ms, and 3ms
respectively. What is the average turnaround time?
a. 5ms
b. 6ms
c. 7ms
d. 8ms

Answer: B) 6ms

17. A process with priority 4 and burst time 8ms arrives at time t=2. If the CPU is idle until the process arrives, what is
the completion time of the process?
a. t=10ms
b. t=12ms
c. t=14ms
d. t=16ms

Answer: A) t=10ms

18. Two processes P1 and P2 have priorities 2 and 3 respectively, and burst times 5ms and 7ms respectively. If the
context switching time is 1ms, what is the total time required to complete both processes?
a. 12ms
b. 13ms
c. 14ms
d. 15ms

Answer: B) 13ms

19. Three processes P1, P2, and P3 have priorities 1, 3, and 2 respectively, and burst times 3ms, 6ms, and 4ms
respectively. What is the average waiting time?
a. 2ms
b. 3ms
c. 4ms
d. 5ms

Answer: B) 3ms

20. Two processes P1 and P2 have priorities 5 and 2 respectively, and burst times 4ms and 6ms respectively. If the
context switching time is 2ms, what is the total time required to complete both processes?
a. 10ms
b. 11ms
c. 12ms
d. 14ms

Answer: C) 12ms

Round Robin CPU Scheduling algorithm:

21. A CPU uses a Round Robin scheduling algorithm with a time quantum of 2ms. If a process requires 8ms of CPU
time, how many time slices will it require?
a. 2
b. 3
c. 4
d. 5

Answer: C) 4

22. Three processes P1, P2, and P3 arrive at time t=0 with burst times 4ms, 6ms, and 2ms respectively. If the time
quantum is 2ms, what is the average turnaround time?
a. 6ms
b. 7ms
c. 8ms
d. 9ms

Answer: B) 7ms
23. A process requires 12ms of CPU time and arrives at time t=4. If the time quantum is 4ms, what is the completion
time of the process?
a. t=20ms
b. t=22ms
c. t=24ms
d. t=26ms

Answer: B) t=22ms

24. Two processes P1 and P2 arrive at time t=0 with burst times 8ms and 4ms respectively. If the time quantum is
2ms, what is the total time required to complete both processes?
a. 12ms
b. 14ms
c. 16ms
d. 18ms

Answer: B) 14ms

25. Three processes P1, P2, and P3 arrive at time t=0 with burst times 6ms, 4ms, and 8ms respectively. If the time
quantum is 3ms, what is the average waiting time?
a. 4ms
b. 5ms
c. 6ms
d. 7ms

Answer: B) 5ms

Banker's Algorithm:

26. A system has 3 processes P1, P2, and P3 with maximum resource requirements (10, 5, 3), (6, 4, 2), and (4, 3, 1)
respectively. If the available resources are (8, 4, 2), which process can be executed first?
a. P1
b. P2
c. P3
d. None

Answer: C) P3

27. A system has 2 processes P1 and P2 with resource requirements (4, 2) and (2, 1) respectively. If the available
resources are (3, 2), what is the minimum resource requirement that must be added to execute both processes?
a. (1, 0)
b. (1, 1)
c. (2, 0)
d. (2, 1)

Answer: B) (1, 1)

28. A system has 3 processes P1, P2, and P3 with resource requirements (8, 4), (4, 2), and (2, 1) respectively. If the
available resources are (10, 5), what is the maximum number of processes that can be executed?
a. 1
b. 2
c. 3
d. 0

Answer: B) 2

29. A system has 2 processes P1 and P2 with resource requirements (6, 3) and (4, 2) respectively. If the available
resources are (7, 4), what is the minimum resource requirement that must be added to execute both processes?
a. (1, 0)
b. (1, 1)
c. (2, 0)
d. (2, 1)

Answer: A) (1, 0)

30. A system has 3 processes P1, P2, and P3 with resource requirements (4, 2), (2, 1), and (1, 1) respectively. If the
available resources are (5, 3), what is the order of execution of processes using Banker's Algorithm?
a. P1, P2, P3
b. P1, P3, P2
c. P2, P1, P3
d. P3, P2, P1

Answer: B) P1, P3, P2

Memory Management in Operating Systems:

31. A system uses a paging mechanism with a page size of 4KB. If a process requires 20KB of memory, how many
pages will be allocated?
a. 4
b. 5
c. 6
d. 8

Answer: B) 5

32. A system uses a segmentation mechanism with three segments of sizes 4KB, 8KB, and 12KB respectively. If a
process requires 18KB of memory, which segments will be allocated?
a. 1st and 2nd segments
b. 2nd and 3rd segments
c. 1st and 3rd segments
d. All three segments

Answer: B) 2nd and 3rd segments

33. A system uses a memory allocation algorithm with a block size of 8KB. If a process requires 24KB of memory, how
many blocks will be allocated?
a. 2
b. 3
c. 4
d. 6

Answer: B) 3

34. A system uses a virtual memory mechanism with a page replacement algorithm. If the page fault rate is 30% and
the average memory access time is 20ns, what is the average page replacement time?
a. 6ns
b. 10ns
c. 15ns
d. 30ns

Answer: C) 15ns

35. A system uses a memory allocation algorithm with a first-fit strategy. If the available memory blocks are 4KB, 8KB,
12KB, and 16KB respectively, and a process requires 10KB of memory, which block will be allocated?
a. 1st block
b. 2nd block
c. 3rd block
d. 4th block

Answer: B) 2nd block

Paging:

36. A system uses a paging mechanism with a page size of 2KB. If a process requires 12KB of memory, how many
pages will be allocated?
a. 4
b. 5
c. 6
d. 8

Answer: C) 6

37. A system uses a paging mechanism with a page table having 4 entries. If each page entry requires 4 bytes, what is
the total size of the page table?
a. 8 bytes
b. 12 bytes
c. 16 bytes
d. 20 bytes

Answer: C) 16 bytes

38. A system uses a paging mechanism with a page size of 4KB and a frame size of 8KB. If a process requires 20KB of
memory, how many frames will be allocated?
a. 2
b. 3
c. 4
d. 5

Answer: C) 4

39. A system uses a paging mechanism with a page replacement algorithm. If the page fault rate is 25% and the
average memory access time is 15ns, what is the average page replacement time?
a. 3.75ns
b. 5ns
c. 7.5ns
d. 10ns

Answer: A) 3.75ns

40. A system uses a paging mechanism with a page size of 8KB. If a process requires 32KB of memory, what is the
number of pages required?
a. 2
b. 3
c. 4
d. 5

Answer: C) 4

FIFO (First-In-First-Out) disk scheduling algorithm:

41. A disk queue uses FIFO scheduling. If three processes P1, P2, and P3 arrive at time t=0, t=2, and t=4 respectively,
and their burst times are 6ms, 4ms, and 8ms respectively, what is the average turnaround time?
a. 8ms
b. 10ms
c. 12ms
d. 14ms

Answer: B) 10ms

42. A disk queue uses FIFO scheduling. If two processes P1 and P2 arrive at time t=0 and t=3 respectively, and their
burst times are 5ms and 7ms respectively, what is the total time required to complete both processes?
a. 12ms
b. 15ms
c. 17ms
d. 20ms

Answer: B) 15ms

43. A disk queue uses FIFO scheduling. If a process arrives at time t=0 with a burst time of 10ms, and another process
arrives at time t=5 with a burst time of 8ms, what is the average waiting time?
a. 2ms
b. 3ms
c. 4ms
d. 5ms

Answer: C) 4ms

44. A disk queue uses FIFO scheduling. If three processes P1, P2, and P3 arrive at time t=0, t=2, and t=6 respectively,
and their burst times are 4ms, 6ms, and 8ms respectively, what is the average turnaround time?
a. 9ms
b. 11ms
c. 13ms
d. 15ms

Answer: B) 11ms
45. A disk queue uses FIFO scheduling. If a process arrives at time t=0 with a burst time of 8ms, and another process
arrives at time t=4 with a burst time of 6ms, what is the total time required to complete both processes?
a. 14ms
b. 16ms
c. 18ms
d. 20ms

Answer: B) 16ms

OPT (Optimal) disk scheduling algorithm:

46. A disk queue uses OPT scheduling. If three processes P1, P2, and P3 arrive at cylinder numbers 5, 10, and 15
respectively, and their burst times are 4ms, 6ms, and 8ms respectively, what is the total time required to
complete all three processes?
a. 18ms
b. 20ms
c. 22ms
d. 24ms

Answer: B) 20ms

47. A disk queue uses OPT scheduling. If two processes P1 and P2 arrive at cylinder numbers 8 and 12 respectively,
and their burst times are 5ms and 7ms respectively, what is the average seek time?
a. 2ms
b. 3ms
c. 4ms
d. 5ms

Answer: B) 3ms

48. A disk queue uses OPT scheduling. If a process arrives at cylinder number 12 with a burst time of 9ms, and
another process arrives at cylinder number 6 with a burst time of 5ms, what is the total time required to
complete both processes?
a. 14ms
b. 16ms
c. 18ms
d. 20ms

Answer: B) 16ms

49. A disk queue uses OPT scheduling. If three processes P1, P2, and P3 arrive at cylinder numbers 3, 6, and 9
respectively, and their burst times are 4ms, 6ms, and 8ms respectively, what is the average turnaround time?
a. 8ms
b. 10ms
c. 12ms
d. 14ms

Answer: B) 10ms

50. A disk queue uses OPT scheduling. If a process arrives at cylinder number 9 with a burst time of 7ms, and another
process arrives at cylinder number 15 with a burst time of 9ms, what is the total time required to complete both
processes?
a. 16ms
b. 18ms
c. 20ms
d. 22ms

Answer: B) 18ms

LRU (Least Recently Used) disk scheduling algorithm:

51. A disk queue uses LRU scheduling. If three processes P1, P2, and P3 arrive at cylinder numbers 5, 10, and 15
respectively, and their burst times are 4ms, 6ms, and 8ms respectively, what is the total time required to
complete all three processes?
a. 20ms
b. 22ms
c. 24ms
d. 26ms
Answer: C) 24ms

52. A disk queue uses LRU scheduling. If two processes P1 and P2 arrive at cylinder numbers 8 and 12 respectively,
and their burst times are 5ms and 7ms respectively, what is the average seek time?
a. 3ms
b. 4ms
c. 5ms
d. 6ms

Answer: B) 4ms

53. A disk queue uses LRU scheduling. If a process arrives at cylinder number 12 with a burst time of 9ms, and
another process arrives at cylinder number 6 with a burst time of 5ms, what is the total time required to
complete both processes?
a. 16ms
b. 18ms
c. 20ms
d. 22ms

Answer: B) 18ms

54. A disk queue uses LRU scheduling. If three processes P1, P2, and P3 arrive at cylinder numbers 3, 6, and 9
respectively, and their burst times are 4ms, 6ms, and 8ms respectively, what is the average turnaround time?
a. 10ms
b. 12ms
c. 14ms
d. 16ms

Answer: B) 12ms

55. A disk queue uses LRU scheduling. If a process arrives at cylinder number 9 with a burst time of 7ms, and another
process arrives at cylinder number 15 with a burst time of 9ms, what is the total time required to complete both
processes?
a. 18ms
b. 20ms
c. 22ms
d. 24ms

Answer: C) 22ms

You might also like