6 - Operating Systems
6 - Operating Systems
6 - Operating Systems
- C) Both A and B
- A) User interface
- B) Memory management
- C) File management
- D) Application execution
- D) Priority Scheduling
- D) A scheduling algorithm
Answer: B) A state where two or more processes are unable to proceed
- B) To allow multitasking
- A) NTFS
- B) FAT32
- C) Ext4
- D) HFS+
Answer: C) Ext4
- C) Allocate memory
- D) Schedule processes
- C) A hardware interrupt
9. What is the purpose of the FAT (File Allocation Table) in file systems?
- A) Manage permissions
a. By operating system
b. By compiler
c. By interpreter
d. By application software
Answer: a) By operating system
a. Restarting computer
c. To scan
d. To turn off
a. To prevent deadlock
b. To deadlock recovery
d. None of these
Answer: a) To prevent deadlock
a. Cold boot
d. Hot boot
a. Mutual exclusion
c. Circular wait
d. No preemption
e. All of these
17. Who provides the interface to access the services of the operating system?
a. API
b. System call
c. Library
d. Assembly instruction
Answer: b) System call
18. Where are placed the list of processes that are prepared to be executed and waiting?
a. Job queue
b. Ready queue
c. Execution queue
d. Process queue
a. Bounded Waiting
b. Progress
c. Mutual Exclusion
d. All of these.
20. Which of the following "semaphore" can take the non-negative integer values?
a. Binary Semaphore
b. Counting Semaphore
c. Real Semaphore
Answer: System calls provide a way for user-level processes to request services from the
operating system kernel.
23.What are the different process states in an operating system, and explain each state
briefly?
Answer: Process states include new, ready, running, waiting, and terminated. Each state
represents a different stage of the process lifecycle.
24. Compare and contrast the scheduling algorithms: First Come First Served (FCFS) and
Round Robin (RR).
Answer: FCFS schedules processes based on their arrival time, while RR allocates a fixed
time slice to each process in a circular manner.
25.What is the critical section problem in process synchronization, and how can it be
solved using Mutex Locks?
Answer: The critical section problem involves ensuring that only one process executes a
critical section at a time. Mutex locks provide mutual exclusion to ensure only one process
accesses the critical section at a time.
26. Discuss the necessary conditions for deadlock occurrence in an operating system.
Answer:Deadlock occurs when four necessary conditions are met: mutual exclusion, hold
and wait, no preemption, and circular wait.
Answer: Demand paging is a technique where pages are loaded into memory only when
they are demanded by the executing process, reducing unnecessary page swaps.
28. Describe the difference between contiguous memory allocation and paging in memory
management.
29.What are the primary operations performed on files in a file system, and how do they
differ from each other?
Answer: File operations include creation, deletion, reading, writing, and updating. Each
operation manipulates the content and metadata of files in the file system.
30. Discuss the concept of disk scheduling in storage management and its significance.
Answer: Disk scheduling involves determining the order in which disk I/O requests are
serviced. It's essential for optimizing disk performance by minimizing seek time and
maximizing throughput.
c) Priority Scheduling
a) User interface
b) Hardware management
c) Memory allocation
segments?
a) Paging
b) Swapping
c) Segmentation
d) Fragmentation
Answer: c) Segmentation
a) Process ID
b) Program Counter
c) CPU Registers
38.In virtual memory management, what is the term used for the portion of a process
b) Segment
c) Frame
d) Offset
Answer: c) Frame
blocks?
A) Paging
b) Swapping
c) Segmentation
d) Fragmentation
Answer: a) Paging
40.Which of the following is not a valid process state in process management?
a) Waiting
b) Running
c) Terminated
d) Suspended
Answer: d) Suspended
41.Which of the following scheduling algorithms may result in starvation of low priority
processes?
c) Priority Scheduling