Operating system Quiz all chapter practice set

Que: (1). Which of the following best defines an Operating System?

B.
C.
A.
D.
E.
Open question page

Que: (2). Which of the following is NOT a primary function of an Operating System?

B.
A.
C.
D.
E.
Open question page

Que: (3). Which type of Operating System allows multiple users to access a computer system and share its resources concurrently?

A.
C.
B.
D.
E.
Open question page

Que: (4). Which statement about system calls is correct?

C.
B.
A.
D.
E.
Open question page

Que: (5). Which component of an Operating System executes in privileged mode and manages core system resources?

B.
C.
A.
D.
E.
Open question page

Que: (6). What is the primary purpose of the booting process in a computer system?

C.
B.
A.
D.
E.
Open question page

Que: (7). Which of the following best describes a process in an Operating System?

A.
B.
C.
D.
E.
Open question page

Que: (8). Which of the following information is typically stored in a Process Control Block (PCB)?

B.
A.
C.
D.
E.
Open question page

Que: (9). A process waiting for an I/O operation to complete is generally in which state?

A.
B.
C.
D.
E.
Open question page

Que: (10). What is context switching in an Operating System?

C.
A.
B.
D.
E.
Open question page

Que: (11). 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?

A.
B.
C.
D.
E.
Open question page

Que: (12). 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?

A.
B.
C.
D.
E.
Open question page

Que: (13). Which statement correctly distinguishes a thread from a process?

A.
C.
B.
D.
E.
Open question page

Que: (14). Which CPU scheduling algorithm executes processes in the order of their arrival without preempting a running process?

C.
A.
B.
D.
E.
Open question page

Que: (15). 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?

C.
B.
A.
D.
E.
Open question page

Que: (16). Which statement correctly describes Shortest Remaining Time First (SRTF) scheduling?

B.
C.
A.
D.
E.
Open question page

Que: (17). 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?

A.
C.
B.
D.
E.
Open question page

Que: (18). In Round Robin scheduling, what happens when a running process does not finish its CPU burst before its time quantum expires?

A.
C.
B.
D.
E.
Open question page

Que: (19). 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?

B.
A.
C.
D.
E.
Open question page

Que: (20). A process arrives at time 4 ms and starts its first CPU execution at time 7 ms. What is its response time?

B.
C.
A.
D.
E.
Open question page

Que: (21). What is the primary purpose of the critical-section problem in process synchronization?

C.
A.
B.
D.
E.
Open question page

Que: (22). 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?

A.
B.
C.
D.
E.
Open question page

Que: (23). Which statement correctly distinguishes a mutex from a counting semaphore?

B.
C.
A.
D.
E.
Open question page

Que: (24). Which synchronization construct encapsulates shared data and operations and generally allows only one process or thread at a time to execute within its procedures?

C.
B.
A.
D.
E.
Open question page

Que: (25). What is a race condition in an Operating System?

A.
B.
C.
D.
E.
Open question page

Que: (26). 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?

A.
C.
B.
D.
E.
Open question page

Que: (27). Which of the following is NOT a necessary condition for deadlock to occur?

B.
C.
A.
D.
E.
Open question page

Que: (28). In a Resource Allocation Graph (RAG), what does an edge from a process to a resource represent?

A.
B.
C.
D.
E.
Open question page

Que: (29). Which technique prevents deadlock by ensuring that at least one of the four necessary deadlock conditions can never hold?

A.
B.
C.
D.
E.
Open question page

Que: (30). 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?

A.
C.
B.
D.
E.
Open question page

Que: (31). 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?

B.
A.
C.
D.
E.
Open question page

Que: (32). Which of the following is a possible method of recovering from a deadlock?

A.
B.
C.
D.
E.
Open question page

Que: (33). Which statement correctly distinguishes a logical address from a physical address?

C.
B.
A.
D.
E.
Open question page

Que: (34). Which memory allocation technique requires a process to occupy a single continuous block of physical memory?

A.
B.
C.
D.
E.
Open question page

Que: (35). 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?

A.
C.
B.
D.
E.
Open question page

Que: (36). 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?

B.
C.
A.
D.
E.
Open question page

Que: (37). 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?

C.
B.
A.
D.
E.
Open question page

Que: (38). Which statement correctly describes segmentation in memory management?

A.
B.
C.
D.
E.
Open question page

Que: (39). Which memory allocation algorithm allocates a process to the first available memory block that is large enough to satisfy its requirement?

C.
B.
A.
D.
E.
Open question page

Que: (40). 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?

A.
C.
B.
D.
E.
Open question page

Que: (41). Which memory allocation algorithm allocates a process to the largest available memory block?

B.
C.
A.
D.
E.
Open question page

Que: (42). 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?

C.
B.
A.
D.
E.
Open question page

Que: (43). Which statement correctly describes the Next Fit memory allocation algorithm?

B.
C.
A.
D.
E.
Open question page

Que: (44). What is demand paging in virtual memory?

C.
B.
A.
D.
E.
Open question page

Que: (45). A process references a page that is not currently present in physical memory. What event occurs?

C.
B.
A.
D.
E.
Open question page

Que: (46). 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?

B.
C.
A.
D.
E.
Open question page

Que: (47). Which of the following is a common page replacement algorithm used to decide which page should be removed from physical memory?

B.
C.
A.
D.
E.
Open question page

Que: (48). What is thrashing in a virtual memory system?

A.
C.
B.
D.
E.
Open question page

Que: (49). Which concept represents the set of pages that a process is actively using during a particular period of execution?

B.
A.
C.
D.
E.
Open question page

Que: (50). 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?

C.
B.
A.
D.
E.
Open question page

Que: (51). Which page replacement algorithm replaces the page that will not be used for the longest period of time in the future?

A.
C.
B.
D.
E.
Open question page

Que: (52). 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?

B.
C.
A.
D.
E.
Open question page

Que: (53). Which page replacement algorithm replaces the page that has not been used for the longest period of time?

C.
B.
A.
D.
E.
Open question page

Que: (54). 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?

A.
C.
B.
D.
E.
Open question page

Que: (55). What is the main purpose of the Second Chance page replacement algorithm?

B.
A.
C.
D.
E.
Open question page

Que: (56). Which data structure is commonly associated with the implementation of the Clock page replacement algorithm?

B.
C.
A.
D.
E.
Open question page

Que: (57). Which of the following best defines a file in an operating system?

B.
A.
C.
D.
E.
Open question page

Que: (58). Which type of directory structure allows a directory to contain files as well as other directories?

B.
C.
A.
D.
E.
Open question page

Que: (59). Which of the following is NOT normally considered a file attribute maintained by an operating system?

C.
B.
A.
D.
E.
Open question page

Que: (60). Which file access method allows records or blocks to be accessed in any order using their relative location?

A.
C.
B.
D.
E.
Open question page

Que: (61). Which file allocation method stores a file in a set of contiguous disk blocks?

C.
A.
B.
D.
E.
Open question page

Que: (62). 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?

C.
B.
A.
D.
E.
Open question page

Que: (63). Which statement correctly describes the structure of a magnetic disk?

B.
A.
C.
D.
E.
Open question page

Que: (64). Which disk scheduling algorithm selects the disk request that is closest to the current position of the disk head?

B.
A.
C.
D.
E.
Open question page

Que: (65). 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?

C.
B.
A.
D.
E.
Open question page

Que: (66). 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?

A.
C.
B.
D.
E.
Open question page

Que: (67). Which disk scheduling algorithm moves the disk head in one direction servicing requests and, after reaching the end, reverses direction?

C.
B.
A.
D.
E.
Open question page

Que: (68). 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?

B.
C.
A.
D.
E.
Open question page

Que: (69). Which statement correctly describes the C-SCAN disk scheduling algorithm?

A.
B.
C.
D.
E.
Open question page

Que: (70). 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?

A.
B.
C.
D.
E.
Open question page

Que: (71). What is the main difference between LOOK and SCAN disk scheduling?

A.
B.
C.
D.
E.
Open question page

Que: (72). In C-LOOK disk scheduling, after servicing the last request in one direction, where does the disk head move?

C.
B.
A.
D.
E.
Open question page

Que: (73). Which of the following is an example of an I/O device?

B.
C.
A.
D.
E.
Open question page

Que: (74). What is the primary function of a device controller in an operating system?

A.
C.
B.
D.
E.
Open question page

Que: (75). Which I/O technique temporarily stores data while it is being transferred between devices operating at different speeds?

B.
C.
A.
D.
E.
Open question page

Que: (76). What is the main purpose of caching in I/O management?

B.
C.
A.
D.
E.
Open question page

Que: (77). 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?

C.
B.
A.
D.
E.
Open question page

Que: (78). 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?

B.
C.
A.
D.
E.
Open question page

Que: (79). What is the primary purpose of protection in an operating system?

A.
C.
B.
D.
E.
Open question page

Que: (80). Which mechanism is primarily used to verify the identity of a user before granting access to a system?

A.
B.
C.
D.
E.
Open question page

Que: (81). Which of the following best describes access control in an operating system?

B.
A.
C.
D.
E.
Open question page

Que: (82). Which of the following is a security threat in which an attacker attempts to obtain confidential information by pretending to be a trusted entity?

C.
B.
A.
D.
E.
Open question page

Que: (83). Which type of operating system collects jobs and executes them without requiring direct interaction from the user during execution?

B.
C.
A.
D.
E.
Open question page

Que: (84). 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?

A.
C.
B.
D.
E.
Open question page

Que: (85). Which operating system capability allows a user to run multiple tasks apparently at the same time by rapidly switching the CPU among them?

B.
A.
C.
D.
E.
Open question page

Que: (86). A computer system has two or more CPUs that can execute processes simultaneously. Which operating system concept is associated with this system?

B.
A.
C.
D.
E.
Open question page

Que: (87). Which type of operating system manages a group of networked computers and makes their resources appear to users as part of a coordinated system?

A.
B.
C.
D.
E.
Open question page

Que: (88). Which type of operating system is designed to provide a response within a specified time constraint for critical tasks?

A.
C.
B.
D.
E.
Open question page