Operating System
1.
A counting semaphore was initialized to 7. Then 20 P (wait) operations and x V (signal) operations were completed on this semaphore. If the final value of semaphore is 5, then the value x will be
BPSC TRE 4 operating system practice set 1
2.
Two atomic operations permissible on Semaphores are
BPSC TRE 4 operating system practice set 1
3.
A disk head is initially at cylinder 50. The FCFS request sequence is 60, 90, 30, 20. What is the total head movement?
BPSC TRE 4 operating system practice set 1
4.
A disk head is initially at cylinder 100. The FCFS request sequence is 55, 20, 80. What is the total head movement?
BPSC TRE 4 operating system practice set 1
5.
What does the control unit generate to control other units?
BPSC TRE 4 operating system practice set 3
6.
In various devices, _____ are used to overcome the difference in data transfer speed.
BPSC TRE 4 operating system practice set 3
7.
In memory mapped I/O
BPSC TRE 4 operating system practice set 3
8.
The method of accessing the I/O devices by repeatedly checking the status flags is
BPSC TRE 4 operating system practice set 3
9.
What does the control unit generate to control other units?
BPSC TRE 4 operating system practice set 3
10.
Which of the following is NOT a memory management technique used by operating systems?
BPSC TRE 4 operating system practice set 1
11.
Which of the following is a technique that marks the beginning of computer communications?
BPSC TRE 4 operating system practice set 3
12.
Which of the following is a file system commonly used in operating systems?
BPSC TRE 4 operating system practice set 1
13.
Which of the following is NOT a type of interrupt?
BPSC TRE 4 operating system practice set 1
14.
What is a page in paging?
BPSC TRE 4 operating system practice set 1
15.
In a system with a page size of 4 KB and a physical address space of 64 GB, what is the number of bits required for the page offset?
BPSC TRE 4 operating system practice set 1
16.
What is a segment base in segmentation?
BPSC TRE 4 operating system practice set 1
17.
What causes thrashing to occur?
BPSC TRE 4 operating system practice set 1
18.
Consider a system with a total physical memory of 8 GB and total virtual memory of 16 GB. If the system is using 6 GB of physical memory and 10 GB of virtual memory, how much memory is being swapped out?
BPSC TRE 4 operating system practice set 1
19.
How is the TLB typically organized?
BPSC TRE 4 operating system practice set 1
20.
Which of the following is a common file operation?
BPSC TRE 4 operating system practice set 1
21.
Which of the following best defines an Operating System?
Operating system Quiz all chapter practice set
22.
Consider a disk queue with requests for I/O to blocks on cylinders 98, 183, 37, 122, 14, 124, 65, 67. Considering FCFS (First Come First Served) scheduling, the total number of head movements is, if the disk head is initially at 53?
BPSC TRE 4 operating system practice set 1
23.
Thread shares with other threads belonging to the same process its
BPSC TRE 4 operating system practice set 1
24.
Which type of operating system is designed to respond to events within a specified time limit?
BPSC TRE 4 operating system practice set 1
25.
Which technique is used to shift processes so they become contiguous and all free memory is combined into one block?
BPSC TRE 4 operating system practice set 3
26.
Secondary memory is the long-term store for programs and data, while main memory holds programs and data currently in use. What kind of organization is this?
BPSC TRE 4 operating system practice set 3
27.
Which of the following statements correctly distinguishes main memory from secondary memory?
BPSC TRE 4 operating system practice set 3
28.
Which sequence correctly represents the basic instruction cycle of a CPU?
BPSC TRE 4 operating system practice set 3
29.
What is the primary purpose of buffering in computer systems?
BPSC TRE 4 operating system practice set 3
30.
Which statement correctly describes isolated I/O (port-mapped I/O)?
BPSC TRE 4 operating system practice set 3
31.
Which technique allows the CPU to check an I/O device status repeatedly until it is ready?
BPSC TRE 4 operating system practice set 3
32.
Which unit of the CPU directs and coordinates the execution of instructions?
BPSC TRE 4 operating system practice set 3
33.
In paging, a process is divided into fixed-size units called:
BPSC TRE 4 operating system practice set 1
34.
What is a batch processing system?
BPSC TRE 4 operating system practice set 3
35.
Which file system is commonly associated with modern Microsoft Windows systems?
BPSC TRE 4 operating system practice set 1
36.
Which type of interrupt is generated by an external hardware device?
BPSC TRE 4 operating system practice set 1
37.
What is a frame in a paging system?
BPSC TRE 4 operating system practice set 1
38.
If the page size is 8 KB, how many bits are required for the page offset?
BPSC TRE 4 operating system practice set 1
39.
What does the segment limit specify in a segmentation system?
BPSC TRE 4 operating system practice set 1
40.
Which of the following is a major cause of thrashing?
BPSC TRE 4 operating system practice set 1
41.
A computer has 12 GB of physical memory and 18 GB of virtual memory in use. If 10 GB of physical memory is currently occupied, how much virtual memory is outside physical memory under the simplified model?
BPSC TRE 4 operating system practice set 1
42.
What is the primary purpose of a Translation Lookaside Buffer (TLB)?
BPSC TRE 4 operating system practice set 1
43.
Which operation is used to open an existing file for access?
BPSC TRE 4 operating system practice set 1
44.
Which of the following is NOT a primary function of an Operating System?
Operating system Quiz all chapter practice set
45.
Consider the disk request queue 82, 170, 43, 140, 24, 16, 190 with the initial head position at 50. What is the total head movement using FCFS scheduling?
BPSC TRE 4 operating system practice set 1
46.
Which of the following is private to each thread in a process?
BPSC TRE 4 operating system practice set 1
47.
Which operating system is specifically designed to control and manage a dedicated device?
BPSC TRE 4 operating system practice set 1
48.
Which type of fragmentation occurs when sufficient total free memory is available, but it is divided into small non-contiguous blocks?
BPSC TRE 4 operating system practice set 3
49.
Which of the following represents the correct order of memory types from fastest to slowest in a typical computer system?
BPSC TRE 4 operating system practice set 3
50.
Which statement correctly describes a hardwired control unit?
BPSC TRE 4 operating system practice set 3
51.
Which statement correctly distinguishes a buffer from a cache?
BPSC TRE 4 operating system practice set 3
52.
In a processor that supports memory-mapped I/O, which instruction type can be used to access an I/O device register?
BPSC TRE 4 operating system practice set 3
53.
Which I/O technique allows a device to notify the CPU when it requires attention?
BPSC TRE 4 operating system practice set 3
54.
Which CPU component performs arithmetic and logical operations?
BPSC TRE 4 operating system practice set 3
55.
In paging, physical memory is divided into fixed-size units called:
BPSC TRE 4 operating system practice set 1
56.
Which operating system technique allows multiple users to interact with a computer system seemingly at the same time?
BPSC TRE 4 operating system practice set 3
57.
Which file system is commonly used by Linux distributions?
BPSC TRE 4 operating system practice set 1
58.
Which type of interrupt is generated by the execution of a special instruction or software condition?
BPSC TRE 4 operating system practice set 1
59.
What is the primary purpose of a page table?
BPSC TRE 4 operating system practice set 1
60.
If a paging system uses a page size of 1 KB, how many bits are required for the page offset?
BPSC TRE 4 operating system practice set 1
61.
Which two values are primarily stored in each segment-table entry?
BPSC TRE 4 operating system practice set 1
62.
Which of the following is a characteristic symptom of thrashing?
BPSC TRE 4 operating system practice set 1
63.
A system has 16 GB of physical memory and 24 GB of virtual memory in use. If 14 GB of physical memory is currently occupied, how much virtual memory is outside physical memory under the simplified model?
BPSC TRE 4 operating system practice set 1
64.
What information is primarily stored in a TLB entry?
BPSC TRE 4 operating system practice set 1
65.
Which operation is used to retrieve data from an existing file?
BPSC TRE 4 operating system practice set 1
66.
Which type of Operating System allows multiple users to access a computer system and share its resources concurrently?
Operating system Quiz all chapter practice set
67.
In FCFS disk scheduling, how are disk I/O requests serviced?
BPSC TRE 4 operating system practice set 1
68.
Which of the following is generally shared by threads belonging to the same process?
BPSC TRE 4 operating system practice set 1
69.
Which type of operating system allows multiple users to access computer resources simultaneously?
BPSC TRE 4 operating system practice set 1
70.
A process requires 18 KB of memory but is allocated a fixed partition of 24 KB. How much memory is wasted inside the allocated partition?
BPSC TRE 4 operating system practice set 3
71.
A CPU frequently accesses the same instructions and nearby memory locations. Which principle explains why cache memory can improve performance?
BPSC TRE 4 operating system practice set 3
72.
In a microprogrammed control unit, control signals are generated primarily by interpreting:
BPSC TRE 4 operating system practice set 3
73.
In double buffering, while one buffer is being processed, what can happen to the other buffer?
BPSC TRE 4 operating system practice set 3
74.
A processor has a 16-bit address bus and uses the entire address space for memory-mapped addressing. How many distinct byte addresses can it generate?
BPSC TRE 4 operating system practice set 3
75.
Which I/O technique transfers a block of data directly between an I/O device and main memory with minimal CPU intervention?
BPSC TRE 4 operating system practice set 3
76.
Which register generally holds the instruction currently being decoded or executed?
BPSC TRE 4 operating system practice set 3
77.
Which memory management technique divides a program into variable-sized logical units such as code, data and stack?
BPSC TRE 4 operating system practice set 1
78.
What is the main purpose of a time-sharing operating system?
BPSC TRE 4 operating system practice set 3
79.
Which file system was developed by Apple for use with older versions of Mac OS and macOS?
BPSC TRE 4 operating system practice set 1
80.
What is the name of the routine executed by the CPU to handle an interrupt?
BPSC TRE 4 operating system practice set 1
81.
Which of the following is true about the size of a page and a frame in paging?
BPSC TRE 4 operating system practice set 1
82.
A paging system has a page size of 16 KB. What is the number of bits in the page offset?
BPSC TRE 4 operating system practice set 1
83.
How is the physical address obtained in basic segmentation when the offset is valid?
BPSC TRE 4 operating system practice set 1
84.
What happens to CPU utilization during severe thrashing?
BPSC TRE 4 operating system practice set 1
85.
A system uses 20 GB of virtual memory and 12 GB of physical memory. If 9 GB of physical memory is currently in use, how much virtual memory is outside physical memory under the simplified model?
BPSC TRE 4 operating system practice set 1
86.
What happens when a required page-number translation is found in the TLB?
BPSC TRE 4 operating system practice set 1
87.
Which operation is used to store data into a file?
BPSC TRE 4 operating system practice set 1
88.
Which statement about system calls is correct?
Operating system Quiz all chapter practice set
89.
A disk head is initially at cylinder 40. The FCFS request sequence is 10, 50, 20. What is the total head movement?
BPSC TRE 4 operating system practice set 1
90.
Which of the following is normally private to an individual thread?
BPSC TRE 4 operating system practice set 1
91.
Which operating system is mainly designed to execute jobs in groups without requiring direct user interaction during execution?
BPSC TRE 4 operating system practice set 1
92.
Which statement about paging and external fragmentation is correct?
BPSC TRE 4 operating system practice set 3
93.
Which statement about SRAM and DRAM is correct?
BPSC TRE 4 operating system practice set 3
94.
What is the primary purpose of timing signals in a CPU control unit?
BPSC TRE 4 operating system practice set 3
95.
Which technique allows an I/O device to transfer a block of data directly to or from main memory with limited continuous CPU involvement?
BPSC TRE 4 operating system practice set 3
96.
Which is an important advantage of memory-mapped I/O?
BPSC TRE 4 operating system practice set 3
97.
What is the main disadvantage of program-controlled I/O using polling?
BPSC TRE 4 operating system practice set 3
98.
Which sequence best represents the basic instruction cycle?
BPSC TRE 4 operating system practice set 3
99.
Which type of fragmentation is commonly associated with paging?
BPSC TRE 4 operating system practice set 1
100.
Which scheduling concept is commonly associated with time-sharing systems?
BPSC TRE 4 operating system practice set 3
101.
Which of the following file systems supports journaling?
BPSC TRE 4 operating system practice set 1
102.
Which type of interrupt can normally be disabled or ignored temporarily by the CPU?
BPSC TRE 4 operating system practice set 1
103.
What is a page fault?
BPSC TRE 4 operating system practice set 1
104.
A system has a physical address space of 32 GB and a page size of 4 KB. How many bits are required for a physical address?
BPSC TRE 4 operating system practice set 1
105.
A segment has a base address of 5000 and an offset of 300. What physical address is generated, assuming the offset is within the segment limit?
BPSC TRE 4 operating system practice set 1
106.
Which technique can help reduce thrashing by ensuring that processes receive enough frames for their active pages?
BPSC TRE 4 operating system practice set 1
107.
What is the main purpose of swap space in a virtual memory system?
BPSC TRE 4 operating system practice set 1
108.
What happens when a required page-number translation is not found in the TLB?
BPSC TRE 4 operating system practice set 1
109.
Which operation removes a file from the file system?
BPSC TRE 4 operating system practice set 1
110.
Which component of an Operating System executes in privileged mode and manages core system resources?
Operating system Quiz all chapter practice set
111.
Which disk scheduling algorithm selects the pending request with the shortest seek distance from the current head position?
BPSC TRE 4 operating system practice set 1
112.
Which memory area is commonly shared among threads of the same process?
BPSC TRE 4 operating system practice set 1
113.
Which type of operating system provides users with the ability to interact with the system while programs are executing and shares CPU time among users or processes?
BPSC TRE 4 operating system practice set 1
114.
A system uses 1 KB pages and byte-addressable memory. What are the page number and offset for logical address 2500, assuming zero-based addressing?
BPSC TRE 4 operating system practice set 3
115.
A computer runs a program whose total virtual address space exceeds the available physical RAM. Which mechanism can allow the program to run by keeping only parts of it in RAM?
BPSC TRE 4 operating system practice set 3
116.
During a memory write operation, which control signal indicates that data should be written to the selected memory location?
BPSC TRE 4 operating system practice set 3
117.
Which data transfer method uses request and acknowledgement signals rather than relying exclusively on a shared clock?
BPSC TRE 4 operating system practice set 3
118.
A system uses memory-mapped I/O. An address generated by the CPU falls within the address range assigned to a device register. What should the address-decoding hardware do?
BPSC TRE 4 operating system practice set 3
119.
In programmed I/O, who typically controls each data transfer between the CPU and the I/O device?
BPSC TRE 4 operating system practice set 3
120.
Which type of signal indicates the direction of data transfer between the CPU and memory?
BPSC TRE 4 operating system practice set 3
121.
Which type of fragmentation is primarily associated with variable-sized memory allocation and segmentation?
BPSC TRE 4 operating system practice set 1
122.
Which environment requires the most direct interaction between the user and the computer during task execution?
BPSC TRE 4 operating system practice set 3
123.
Which file system is known for having a maximum individual file size of approximately 4 GB?
BPSC TRE 4 operating system practice set 1
124.
Which interrupt is designed for conditions that require immediate attention and normally cannot be disabled by the usual interrupt mask?
BPSC TRE 4 operating system practice set 1
125.
Which hardware component is commonly used to speed up virtual-to-physical address translation?
BPSC TRE 4 operating system practice set 1
126.
A system has a physical memory size of 16 GB and a page size of 4 KB. How many physical memory frames are available?
BPSC TRE 4 operating system practice set 1
127.
A segment has a base address of 8000 and a limit of 1000. Which offset is valid for accessing the segment?
BPSC TRE 4 operating system practice set 1
128.
Which action can help control thrashing when the degree of multiprogramming is too high?
BPSC TRE 4 operating system practice set 1
129.
When physical memory becomes insufficient for the current memory demand, which operation may occur?
BPSC TRE 4 operating system practice set 1
130.
Which component normally contains the page table in a virtual memory system?
BPSC TRE 4 operating system practice set 1
131.
Which operation changes the name of an existing file without being a read or write operation?
BPSC TRE 4 operating system practice set 1
132.
What is the primary purpose of the booting process in a computer system?
Operating system Quiz all chapter practice set
133.
Which of the following is NOT normally shared among threads of the same process?
BPSC TRE 4 operating system practice set 1
134.
Which type of operating system is designed to manage resources across multiple interconnected computers and make them work together?
BPSC TRE 4 operating system practice set 1
135.
A system has four free memory holes of 10 KB, 15 KB, 20 KB and 25 KB. A process requires 60 KB of contiguous memory. Assuming no other constraints, what is the minimum total free memory that must be available before compaction can satisfy the request?
BPSC TRE 4 operating system practice set 3
136.
A system has a cache hit ratio of 90%. Cache access time is 5 ns and the additional time required to access main memory after a cache miss is 80 ns. Assuming the miss penalty is additional to cache access time, what is the average memory access time?
BPSC TRE 4 operating system practice set 3
137.
A CPU decodes an ADD instruction. Which combination of control actions is most appropriate for a register-to-register addition?
BPSC TRE 4 operating system practice set 3
138.
A device produces data at 20 MB/s, while a receiver consumes data at 12 MB/s. If production continues at these constant rates for 5 seconds without the receiver catching up, how much buffer capacity is required to accommodate the accumulated data?
BPSC TRE 4 operating system practice set 3
139.
A system designer wants to reserve the full range of addresses for memory and access peripheral devices through a separate port address space. Which I/O organization best meets this requirement?
BPSC TRE 4 operating system practice set 3
140.
Which condition is commonly checked during polling before transferring data from an input device?
BPSC TRE 4 operating system practice set 3
141.
In a hardwired control unit, control signals are generated mainly by which mechanism?
BPSC TRE 4 operating system practice set 3
142.
Which technique allows a program to execute even when the entire program cannot fit into physical main memory at once?
BPSC TRE 4 operating system practice set 1
143.
Which system is most suitable for processing a large number of routine transactions without immediate user interaction?
BPSC TRE 4 operating system practice set 3
144.
Which of the following is the modern default file system introduced by Apple for macOS, iOS and related platforms?
BPSC TRE 4 operating system practice set 1
145.
Which hardware component commonly generates periodic interrupts used by an operating system for timekeeping and scheduling?
BPSC TRE 4 operating system practice set 1
146.
Which technique loads a page into physical memory only when the page is actually needed?
BPSC TRE 4 operating system practice set 1
147.
A logical address is 32 bits long and the page size is 4 KB. How many bits are used for the page number?
BPSC TRE 4 operating system practice set 1
148.
Which register points to the location of the segment table in memory?
BPSC TRE 4 operating system practice set 1
149.
Which of the following is most directly associated with thrashing?
BPSC TRE 4 operating system practice set 1
150.
If a system has 8 GB of physical memory and 12 GB of virtual memory in use, with 8 GB of physical memory occupied, how much virtual memory is outside physical memory under the simplified model?
BPSC TRE 4 operating system practice set 1
151.
If a system has a TLB hit ratio of 80%, what percentage of address translations result in a TLB miss?
BPSC TRE 4 operating system practice set 1
152.
Which of the following are standard file-system operations?
BPSC TRE 4 operating system practice set 1
153.
Which of the following best describes a process in an Operating System?
Operating system Quiz all chapter practice set
154.
Which disk scheduling algorithm moves the disk head toward one end while servicing requests in that direction and then reverses direction?
BPSC TRE 4 operating system practice set 1
155.
Which of the following is a characteristic of threads belonging to the same process?
BPSC TRE 4 operating system practice set 1
156.
Which type of operating system is commonly used to manage computers connected to a network and provide services such as file and printer sharing?
BPSC TRE 4 operating system practice set 1
157.
Why may a memory management system need relocation support when performing compaction?
BPSC TRE 4 operating system practice set 3
158.
A hard disk rotates at 7200 revolutions per minute. Assuming a uniformly distributed rotational position, what is the average rotational latency?
BPSC TRE 4 operating system practice set 3
159.
A conditional branch instruction executes only when the zero flag is set. Which information must the control unit use to determine whether to take the branch?
BPSC TRE 4 operating system practice set 3
160.
A producer generates data faster than a consumer can process it. The buffer has a fixed capacity and eventually becomes full. What is the most appropriate general conclusion?
BPSC TRE 4 operating system practice set 3
161.
Why are memory-mapped I/O registers commonly marked as uncacheable or given special memory attributes?
BPSC TRE 4 operating system practice set 3
162.
A CPU checks an I/O status register continuously until a device becomes ready. Which problem does this illustrate?
BPSC TRE 4 operating system practice set 3
163.
In a microprogrammed control unit, control signals are determined by instructions stored in which location?
BPSC TRE 4 operating system practice set 3
164.
Which of the following is a page replacement algorithm used in virtual memory systems?
BPSC TRE 4 operating system practice set 1
165.
What is a major advantage of time-sharing systems over traditional batch systems?
BPSC TRE 4 operating system practice set 3
166.
Which component of a file system keeps information about files and their locations on storage?
BPSC TRE 4 operating system practice set 1
167.
What generally happens when the CPU accepts an interrupt?
BPSC TRE 4 operating system practice set 1
168.
Which of the following is a common page replacement algorithm?
BPSC TRE 4 operating system practice set 1
169.
A system has a 36-bit physical address and a page size of 4 KB. How many bits are required for the physical frame number?
BPSC TRE 4 operating system practice set 1
170.
What happens if the offset in a logical address is greater than or equal to the permitted segment limit?
BPSC TRE 4 operating system practice set 1
171.
What is the primary effect of thrashing on system performance?
BPSC TRE 4 operating system practice set 1
172.
Which statement best describes the relationship between physical and virtual memory in a system using paging?
BPSC TRE 4 operating system practice set 1
173.
Which statement about a TLB is correct?
BPSC TRE 4 operating system practice set 1
174.
Which operation releases an open file so that the process no longer has it open?
BPSC TRE 4 operating system practice set 1
175.
Which of the following information is typically stored in a Process Control Block (PCB)?
Operating system Quiz all chapter practice set
176.
Which of the following is an advantage of multithreading within a process?
BPSC TRE 4 operating system practice set 1
177.
Which of the following is an example of an operating system used in mobile devices?
BPSC TRE 4 operating system practice set 1
178.
Which statement best distinguishes segmentation from paging?
BPSC TRE 4 operating system practice set 3
179.
A file system allocates storage in blocks of 4 KB. A file contains 10000 bytes and requires an integer number of blocks. Assuming 1 KB = 1024 bytes and no compression, how many bytes are allocated, and how much space is unused in the final block?
BPSC TRE 4 operating system practice set 3
180.
In a pipelined processor, an instruction needs a result that has not yet been produced by an earlier instruction. If forwarding cannot resolve the dependency, what should the control unit typically do?
BPSC TRE 4 operating system practice set 3
181.
A 32-bit bus transfers one data word per clock cycle at a clock frequency of 100 MHz. Assuming one transfer per cycle and ignoring overhead, what is its theoretical data transfer rate?
BPSC TRE 4 operating system practice set 3
182.
A byte-addressable processor has a 20-bit address space. If 16 KiB of that address space is reserved for memory-mapped I/O registers, how much address space remains for other uses?
BPSC TRE 4 operating system practice set 3
183.
A device becomes ready only after a long delay. Which method can generally avoid continuous CPU status checking while waiting?
BPSC TRE 4 operating system practice set 3
184.
Which control signal is commonly used to indicate that an I/O device requires CPU attention?
BPSC TRE 4 operating system practice set 3
185.
In a time-sharing system, what can happen if the time quantum is too large?
BPSC TRE 4 operating system practice set 3
186.
A process waiting for an I/O operation to complete is generally in which state?
Operating system Quiz all chapter practice set
187.
Which operating system characteristic allows several programs to be kept in memory and executed by the CPU concurrently?
BPSC TRE 4 operating system practice set 1
188.
Free memory blocks are 100 KB, 500 KB, 200 KB, 300 KB and 600 KB, in that order. Using first-fit allocation, which block is allocated to a process requesting 212 KB?
BPSC TRE 4 operating system practice set 3
189.
A server stores critical data on two disks and maintains identical copies of the data on both disks. If either disk fails, the other can continue providing the stored data. Which RAID level describes this arrangement?
BPSC TRE 4 operating system practice set 3
190.
A simple processor uses a four-stage instruction cycle. Each stage requires one clock cycle, and there are no stalls or overlapping operations. How many clock cycles are required to complete 25 instructions?
BPSC TRE 4 operating system practice set 3
191.
A system transfers data in blocks of 8 KB. Each block takes 2 ms to transfer and 3 ms to process. Assuming transfer and processing use separate resources, double buffering is used, and startup and shutdown overhead are ignored, what is the approximate steady-state throughput?
BPSC TRE 4 operating system practice set 3
192.
A program reads a device status register using an ordinary load instruction, but the register is accessed through a special I/O instruction on the processor. Which is the most likely explanation?
BPSC TRE 4 operating system practice set 3
193.
A system uses polling to check whether an output device can accept another character. Which status condition should the CPU typically wait for?
BPSC TRE 4 operating system practice set 3
194.
A control unit must coordinate register loading, ALU operation, and memory access during an instruction. What determines when these micro-operations occur?
BPSC TRE 4 operating system practice set 3
195.
Which operating system feature allows a process to be interrupted and the CPU switched to another process?
BPSC TRE 4 operating system practice set 3
196.
What is context switching in an Operating System?
Operating system Quiz all chapter practice set
197.
Which of the following is NOT an operating system?
BPSC TRE 4 operating system practice set 1
198.
A system has 100 KB of total free memory distributed among several holes. A process requests 80 KB of contiguous memory, but the largest free hole is only 60 KB. Which conclusion is correct?
BPSC TRE 4 operating system practice set 3
199.
Which CPU scheduling algorithm selects the ready process with the smallest next CPU burst and, in its non-preemptive form, runs it until completion or blocking?
Operating system Quiz all chapter practice set
200.
A Round Robin CPU scheduler uses a time quantum of 4 ms. Three processes P1, P2 and P3 arrive at time 0 with CPU burst times of 5 ms, 3 ms and 1 ms, respectively. If the initial ready queue is P1, P2, P3, what is the completion time of P1?
Operating system Quiz all chapter practice set
201.
Which statement correctly distinguishes a thread from a process?
Operating system Quiz all chapter practice set
202.
Which CPU scheduling algorithm executes processes in the order of their arrival without preempting a running process?
Operating system Quiz all chapter practice set
203.
Three processes P1, P2 and P3 arrive at time 0 with CPU burst times of 6 ms, 2 ms and 4 ms, respectively. Under non-preemptive SJF scheduling, what is the average waiting time?
Operating system Quiz all chapter practice set
204.
Which statement correctly describes Shortest Remaining Time First (SRTF) scheduling?
Operating system Quiz all chapter practice set
205.
Consider three processes P1, P2 and P3, all arriving at time 0, with burst times of 5 ms, 3 ms and 1 ms, respectively. Under non-preemptive priority scheduling, the priorities are P1 = 2, P2 = 1 and P3 = 3, where a smaller number indicates a higher priority. What is the execution order?
Operating system Quiz all chapter practice set
206.
In Round Robin scheduling, what happens when a running process does not finish its CPU burst before its time quantum expires?
Operating system Quiz all chapter practice set
207.
A process arrives at time 3 ms and completes at time 12 ms. If its CPU burst time is 5 ms, what are its turnaround time and total waiting time, respectively?
Operating system Quiz all chapter practice set
208.
A process arrives at time 4 ms and starts its first CPU execution at time 7 ms. What is its response time?
Operating system Quiz all chapter practice set
209.
What is the primary purpose of the critical-section problem in process synchronization?
Operating system Quiz all chapter practice set
210.
A binary semaphore is initialized to 1. A process successfully executes wait() and enters its critical section. What is the semaphore value immediately after the wait() operation?
Operating system Quiz all chapter practice set
211.
Which statement correctly distinguishes a mutex from a counting semaphore?
Operating system Quiz all chapter practice set
212.
Which synchronization construct encapsulates shared data and operations and generally allows only one process or thread at a time to execute within its procedures?
Operating system Quiz all chapter practice set
213.
What is a race condition in an Operating System?
Operating system Quiz all chapter practice set
214.
In the bounded-buffer producer-consumer problem, a buffer has N slots. Which initial semaphore values are conventionally used for empty slots, full slots and mutual exclusion, respectively?
Operating system Quiz all chapter practice set
215.
Which of the following is NOT a necessary condition for deadlock to occur?
Operating system Quiz all chapter practice set
216.
In a Resource Allocation Graph (RAG), what does an edge from a process to a resource represent?
Operating system Quiz all chapter practice set
217.
Which technique prevents deadlock by ensuring that at least one of the four necessary deadlock conditions can never hold?
Operating system Quiz all chapter practice set
218.
A system has three resource types. Before granting a resource request, the operating system checks whether the resulting state remains safe. Which deadlock-handling technique is being used?
Operating system Quiz all chapter practice set
219.
A system has 10 instances of a resource. The current allocation is P1 = 2, P2 = 2 and P3 = 1. Their maximum demands are P1 = 5, P2 = 4 and P3 = 3. What is the current Available amount of the resource?
Operating system Quiz all chapter practice set
220.
Which of the following is a possible method of recovering from a deadlock?
Operating system Quiz all chapter practice set
221.
Which statement correctly distinguishes a logical address from a physical address?
Operating system Quiz all chapter practice set
222.
Which memory allocation technique requires a process to occupy a single continuous block of physical memory?
Operating system Quiz all chapter practice set
223.
A memory system has 1000 KB of free memory divided into partitions of 200 KB, 300 KB and 500 KB. Which type of partitioning uses fixed-size partitions determined before process allocation?
Operating system Quiz all chapter practice set
224.
A process is allocated a 100 KB memory partition but requires only 70 KB. What type of fragmentation is primarily caused by the unused 30 KB inside the allocated partition?
Operating system Quiz all chapter practice set
225.
A system uses a page size of 4 KB and a logical address space of 32 bits. How many bits are required for the page number?
Operating system Quiz all chapter practice set
226.
Which statement correctly describes segmentation in memory management?
Operating system Quiz all chapter practice set
227.
Which memory allocation algorithm allocates a process to the first available memory block that is large enough to satisfy its requirement?
Operating system Quiz all chapter practice set
228.
Free memory blocks are 100 KB, 500 KB, 200 KB, 300 KB and 600 KB. A process requires 212 KB. Which block will Best Fit allocate to the process?
Operating system Quiz all chapter practice set
229.
Which memory allocation algorithm allocates a process to the largest available memory block?
Operating system Quiz all chapter practice set
230.
Free memory blocks are 100 KB, 500 KB, 200 KB, 300 KB and 600 KB. A process requires 212 KB. Which block will Worst Fit allocate to the process?
Operating system Quiz all chapter practice set
231.
Which statement correctly describes the Next Fit memory allocation algorithm?
Operating system Quiz all chapter practice set
232.
What is demand paging in virtual memory?
Operating system Quiz all chapter practice set
233.
A process references a page that is not currently present in physical memory. What event occurs?
Operating system Quiz all chapter practice set
234.
A system has three page frames and uses FIFO page replacement. For the reference string 1, 2, 3, 1, 4, how many page faults occur?
Operating system Quiz all chapter practice set
235.
Which of the following is a common page replacement algorithm used to decide which page should be removed from physical memory?
Operating system Quiz all chapter practice set
236.
What is thrashing in a virtual memory system?
Operating system Quiz all chapter practice set
237.
Which concept represents the set of pages that a process is actively using during a particular period of execution?
Operating system Quiz all chapter practice set
238.
A system has three page frames and uses FIFO page replacement. For the reference string 1, 2, 3, 1, 4, 2, 5, how many page faults will occur?
Operating system Quiz all chapter practice set
239.
Which page replacement algorithm replaces the page that will not be used for the longest period of time in the future?
Operating system Quiz all chapter practice set
240.
A system has three page frames and uses the Optimal page replacement algorithm. For the reference string 1, 2, 3, 4, 1, 2, 5, how many page faults occur?
Operating system Quiz all chapter practice set
241.
Which page replacement algorithm replaces the page that has not been used for the longest period of time?
Operating system Quiz all chapter practice set
242.
A system has three page frames and uses LRU page replacement. For the reference string 1, 2, 3, 1, 4, 2, how many page faults occur?
Operating system Quiz all chapter practice set
243.
What is the main purpose of the Second Chance page replacement algorithm?
Operating system Quiz all chapter practice set
244.
Which data structure is commonly associated with the implementation of the Clock page replacement algorithm?
Operating system Quiz all chapter practice set
245.
Which of the following best defines a file in an operating system?
Operating system Quiz all chapter practice set
246.
Which type of directory structure allows a directory to contain files as well as other directories?
Operating system Quiz all chapter practice set
247.
Which of the following is NOT normally considered a file attribute maintained by an operating system?
Operating system Quiz all chapter practice set
248.
Which file access method allows records or blocks to be accessed in any order using their relative location?
Operating system Quiz all chapter practice set
249.
Which file allocation method stores a file in a set of contiguous disk blocks?
Operating system Quiz all chapter practice set
250.
A file requires 5 disk blocks. Under contiguous allocation, the first block is 100 and the file occupies consecutive blocks. What will be the block numbers allocated to the file?
Operating system Quiz all chapter practice set
251.
Which statement correctly describes the structure of a magnetic disk?
Operating system Quiz all chapter practice set
252.
Which disk scheduling algorithm selects the disk request that is closest to the current position of the disk head?
Operating system Quiz all chapter practice set
253.
A disk head is initially at cylinder 50. The request queue is 82, 170, 43, 140, 24 and 16. Using FCFS disk scheduling, what is the total head movement?
Operating system Quiz all chapter practice set
254.
A disk head is at cylinder 50 and the pending requests are 82, 170, 43, 140, 24 and 16. Using SSTF, which request will be serviced first?
Operating system Quiz all chapter practice set
255.
Which disk scheduling algorithm moves the disk head in one direction servicing requests and, after reaching the end, reverses direction?
Operating system Quiz all chapter practice set
256.
A disk has cylinders 0 to 199. The head is at 50 and is moving toward higher cylinders. The pending requests are 82, 140, 20 and 10. Under SCAN, which request will be serviced first?
Operating system Quiz all chapter practice set
257.
Which statement correctly describes the C-SCAN disk scheduling algorithm?
Operating system Quiz all chapter practice set
258.
A disk has cylinders numbered 0 to 199. If the C-SCAN head is moving toward higher cylinders and reaches cylinder 199, where does it move next for continuing the circular scan?
Operating system Quiz all chapter practice set
259.
What is the main difference between LOOK and SCAN disk scheduling?
Operating system Quiz all chapter practice set
260.
In C-LOOK disk scheduling, after servicing the last request in one direction, where does the disk head move?
Operating system Quiz all chapter practice set
261.
Which of the following is an example of an I/O device?
Operating system Quiz all chapter practice set
262.
What is the primary function of a device controller in an operating system?
Operating system Quiz all chapter practice set
263.
Which I/O technique temporarily stores data while it is being transferred between devices operating at different speeds?
Operating system Quiz all chapter practice set
264.
What is the main purpose of caching in I/O management?
Operating system Quiz all chapter practice set
265.
Which I/O technique is commonly used to manage jobs sent to a device such as a printer by placing them in a queue on secondary storage?
Operating system Quiz all chapter practice set
266.
Which I/O technique allows a device controller to transfer a block of data directly between an I/O device and main memory without continuous CPU intervention?
Operating system Quiz all chapter practice set
267.
What is the primary purpose of protection in an operating system?
Operating system Quiz all chapter practice set
268.
Which mechanism is primarily used to verify the identity of a user before granting access to a system?
Operating system Quiz all chapter practice set
269.
Which of the following best describes access control in an operating system?
Operating system Quiz all chapter practice set
270.
Which of the following is a security threat in which an attacker attempts to obtain confidential information by pretending to be a trusted entity?
Operating system Quiz all chapter practice set
271.
Which type of operating system collects jobs and executes them without requiring direct interaction from the user during execution?
Operating system Quiz all chapter practice set
272.
Which operating system concept allows multiple programs to reside in main memory at the same time so that the CPU can switch to another program when one is waiting for I/O?
Operating system Quiz all chapter practice set
273.
Which operating system capability allows a user to run multiple tasks apparently at the same time by rapidly switching the CPU among them?
Operating system Quiz all chapter practice set
274.
A computer system has two or more CPUs that can execute processes simultaneously. Which operating system concept is associated with this system?
Operating system Quiz all chapter practice set
275.
Which type of operating system manages a group of networked computers and makes their resources appear to users as part of a coordinated system?
Operating system Quiz all chapter practice set
276.
Which type of operating system is designed to provide a response within a specified time constraint for critical tasks?
Operating system Quiz all chapter practice set