Logo/

Operating System Concepts

Log in

Made with ScholarlyMake flashcards like these from your own notes

Operating System Concepts

Questions and answers

282 cards
  1. Question:What is the purpose of mutual exclusion in operating systems?

    Answer:Mutual exclusion ensures that if one process is executing in its critical section, no other process is allowed to execute in its critical section, hence preventing race conditions.

  2. Question:Choose the correct option: In order to implement mutual exclusion on a critical resource for competing processes, only one program at a time should be allowed:

    Answer:A. In the critical region of the program.

  3. Question:What is the language of the CPU known as?

    Answer:A. Instruction set.

  4. Question:Which mutual exclusion condition does the Lock Variables Software proposal violate?

    Answer:A. No two processes simultaneously in critical region.

  5. Question:Which file structure is used for file system in Windows?

    Answer:D. Tree.

  6. Question:What is the technique that most virtual memory systems use?

    Answer:D. Paging.

  7. Question:Given a virtual address space of 2^24 words and a page size of 2^12 words, what is the page number for the virtual address 123456 in hexadecimal?

    Answer:A. 123.

  8. Question:What is the safe state in resource allocation?

    Answer:A state where all processes can obtain their required resources without entering a deadlock.

  9. Question:What condition causes processes to be terminated when there is a program bug?

    Answer:C. Fatal error involuntary.

  10. Question:What is the role of the file system in disk management?

    Answer:C. To organize and track files and data on the disk.

  11. Question:What are directories in the context of file systems?

    Answer:A. Special files with listings of filenames and their attributes.

  12. Question:Given five batch jobs A through E with estimated running times of 8, 6, 2, 10, and 4 minutes, what is the average turnaround time for FCFS scheduling?

    Answer:B. 18 minutes.

  13. Question:If there are 64 pages and the page size is 2048 words, what is the length of the logical address?

    Answer:C. 16 bits.

  14. Question:Which approaches to handle deadlocks do not typically include?

    Answer:C. Deterrence.

  15. Question:What are the typical conditions for deadlock?

    Answer:Mutual exclusion, hold and wait, no preemption, and circular wait.

  16. Question:What is the definition of a page fault in virtual memory systems?

    Answer:A page fault occurs when a program attempts to access a page that is not currently mapped to physical memory.

  17. Question:What are the possible results of a process when it is terminated?

    Answer:Normal exit (voluntary), error exit (voluntary), fatal error (involuntary), or being killed by another process (involuntary).

  18. Question:What is the difference between voluntary and involuntary process termination?

    Answer:Voluntary termination is when the process ends on its own accord while involuntary termination is enforced by the operating system due to an error or other issues.

  19. Question:What are the components of a directory in a file system?

    Answer:A directory contains filenames, metadata (such as file attributes), and pointers to the actual data locations on a disk.

  20. Question:Explain the concept of turnaround time in process scheduling.

    Answer:Turnaround time is the total time taken from submission of a process to its completion; it includes the waiting time and the actual execution time.

  21. Question:What is the term for the top of the file system tree?

    Answer:B. Root directory

  22. Question:In a swapping system with hole sizes of 10K, 4K, 20K, 15K, and 9K, which holes are used for successive segment requests of 8K, 12K, and 10K using the worst fit algorithm?

    Answer:A. 20K, 15K, 10K

  23. Question:Which RAID level uses strip-for-strip parity for error detection?

    Answer:C. 3 D. 4 and 5

  24. Question:Which operating systems are often used on supercomputers, mainframes, and servers?

    Answer:C. UNIX

  25. Question:Rearrange the layers in I/O software starting at the bottom: 1. User-level I/O software 2. Device drivers 3. Interrupt handlers 4. Hardware 5. Device-independent OS software

    Answer:C. 43251

  26. Question:Which operation is done by Device-independent OS software?

    Answer:A. Computing the track, sector, and head for a disk read

  27. Question:What methods are used to keep track of free blocks in disk space management?

    Answer:C. Both linked list method and bitmap method

  28. Question:When is internal fragmentation possible in paging?

    Answer:B. The last page of the job is less than the maximum page size

  29. Question:Which statement is not true about separating I/O and memory space?

    Answer:A. Device drivers must be written using assembly language

  30. Question:Which statement about CPU handling interrupts is incorrect?

    Answer:D. None of the other choices

  31. Question:What does a page fault mean?

    Answer:D. That was not in main memory

  32. Question:What is a table in main memory storing a linked list of allocation of disk blocks called?

    Answer:A. Disk allocation table B. Linked list table C. File list table D. File allocation table - The correct answer is D. File allocation table.

  33. Question:What is the special program that facilitates communication between a device and the operating system called?

    Answer:A. Device configurator B. Translator C. Device driver D. Communication utility - The correct answer is C. Device driver.

  34. Question:Which RAID level employs a Hamming code to correct single bit errors and detect double bit errors?

    Answer:A. 1 B. 2 C. 3 D. 4 E. 5 - The correct answer is B. 2.

  35. Question:What occurs when two processes do not release control of resources they are using?

    Answer:A. Mutual-exclusion condition B. Circular-wait condition C. Hold and wait condition D. No preemption condition - The correct answer is C. Hold and wait condition.

  36. Question:Which of the following synchronization mechanisms does not rely on busy-waiting?

    Answer:A. Lock variables B. Strict alternation C. Peterson's algorithm D. Semaphores - The correct answer is D. Semaphores.

  37. Question:What system call allows the system to announce that the file is coming and to set some of the attributes?

    Answer:A. OPEN B. CLOSE C. CREATE D. RENAME - The correct answer is C. CREATE.

  38. Question:What is the act of allowing only one process to have access to a dedicated resource called?

    Answer:A. Mutual-exclusion condition B. Circular-wait condition C. Hold and wait condition D. No preemption condition - The correct answer is A. Mutual-exclusion condition.

  39. Question:What does a disk sector consist of?

    Answer:A. Preamble, Data, and ECC B. Header, Data, and ECC C. Preamble, Data, and tail D. Header, Data, and CRC - The correct answer is B. Header, Data, and ECC.

  40. Question:Which is not true about the method of backing store 'Paging to a static swap area'?

    Answer:A. Requires a disk map in memory B. Calculating the address in swap C. Requires a disk map in memory area requires knowing only where the process' paging area begins D. A page that is in memory always has a shadow copy on disk - The correct answer is D. A page that is in memory always has a shadow copy on disk.

  41. Question:In Linux, what is the primary purpose of the '/etc' directory?

    Answer:A. To store temporary files B. To manage system boot files C. To house system configuration files and scripts D. To store user home directories - The correct answer is C. To house system configuration files and scripts.

  42. Question:What is the absolute pathname of a file in Linux relative to?

    Answer:A. Home directory B. Login directory C. Root directory on the system D. All of the other choices - The correct answer is C. Root directory on the system.

  43. Question:As one proceeds down the memory hierarchy from onboard memory to offline storage, what is true?

    Answer:A. Decreasing cost per bit B. Decreasing capacity C. Decreasing access time D. None of the other choices - The correct answer is A. Decreasing cost per bit.

  44. Question:What is an entry of the Process table called?

    Answer:A. Process management block B. Process control block C. Process check block D. All of the other choices - The correct answer is B. Process control block.

  45. Question:What gives users the appearance that their programs are being completely loaded in main memory during their entire processing time?

    Answer:A. Segmenting B. Virtual memory - The correct answer is B. Virtual memory.

  46. Question:What is virtual memory?

    Answer:Virtual memory is a memory management technique that creates an abstraction of the memory resources available to a process. It uses both hardware and software to allow a program to execute even when the physical memory is insufficient. It does this by using disk space (swap space) as an extension to the RAM.

  47. Question:What is shared memory in the context of operating systems?

    Answer:Shared memory is a memory management technique that allows multiple processes to access a common memory space simultaneously. This method enables processes to communicate and synchronize with each other efficiently. Shared memory segments can be created using system calls like shmget in UNIX.

  48. Question:What is multithreading?

    Answer:Multithreading is the ability of a CPU or a single core in a multicore processor to provide multiple threads of execution concurrently. It allows for parallel processing and can improve application performance, especially on tasks that can be performed simultaneously, such as web servers or applications performing I/O operations.

  49. Question:What type of file is used for structured data on mainframes in commercial processing, different from byte streams in UNIX and Windows?

    Answer:Record sequence files are used for structured data storage in mainframes, allowing data to be stored in a structured format as records rather than as unstructured byte streams.

  50. Question:Which resource is typically not time-multiplexed?

    Answer:The graphics accelerator is commonly not time-multiplexed, while resources such as CPU, network interfaces, and main memory are often time-multiplexed.

  51. Question:In a computer with 2GB RAM and 1GB occupied by the operating system, how much CPU time is wasted when processes are idle waiting for I/O 20% of the time?

    Answer:When processes are idle waiting for I/O 20% of the time, 4% of CPU time is wasted.

  52. Question:How does the method of "Backing up pages dynamically" compare to "Paging to a static swap area" in terms of disk storage efficiency?

    Answer:Backing up pages dynamically is generally considered better in terms of disk storage efficiency compared to paging to a static swap area.

  53. Question:What is referred to as each circle on a fixed magnetic disk?

    Answer:Each circle on a fixed magnetic disk is called a track.

  54. Question:In resource allocation states, which one is deemed unsafe?

    Answer:The unsafe state can vary based on the specific resource allocation graphs. In general, the state is considered unsafe if it can lead to deadlock or if resources cannot be allocated to meet demands.

  55. Question:Which of the following is not a special file?

    Answer:The stream special file is generally not considered a special file; the valid special files include character special files and block special files.

  56. Question:What is the turnaround time for job D using round-robin scheduling with a quantum of 4 cycles?

    Answer:The turnaround time for job D in this particular scheduling scenario can be calculated as 22 CPU cycles.

  57. Question:Which goal is not typically aligned with real-time scheduling algorithms?

    Answer:Fairness is typically not a goal of scheduling algorithms for real-time systems; the primary goals include meeting deadlines and predictability.

  58. Question:What percentage of CPU time is wasted when two programs are idle waiting for I/O 10% of the time?

    Answer:If the system has capacity for two programs and they are idle waiting for I/O 10% of the time, then CPU time wasted is 1%.

  59. Question:What causes processes to be created in an operating system?

    Answer:Processes can be created due to several events, including system initialization, execution of a process creation system call, user requests to create a new process, or the initiation of a batch job.

  60. Question:In thread synchronization, what call allows one thread to wait for another to exit?

    Answer:A thread can call thread_wait to block the execution until another specified thread has exited.

  61. Question:What is the maximum partition size with FAT type FAT-12 and a block size of 2 KB?

    Answer:The maximum partition size using FAT type FAT-12 with a block size of 2 KB is 8 MB.

  62. Question:What is the best fit algorithm in memory management?

    Answer:The best fit algorithm is a memory allocation technique that allocates the smallest available partition that is large enough to accommodate the requested process, minimizing wasted space.

  63. Question:Which holes are taken for successive C. 9K, 15K, 10K segment requests of 8K, 12K, 10K?

    Answer:A. 20K, 15K, 10K

  64. Question:If a virtual address space consists of 28 words and the page size is 212 words, what is the page number in Hexadecimal for a virtual address of 1234567?

    Answer:B. 123

  65. Question:What is the efficiency comparison of 'Backing up pages dynamically' versus 'Paging to a static swap area'?

    Answer:A. Better

  66. Question:What is incorrect about contiguous allocation of files?

    Answer:C. It does not cause disk fragmentation.

  67. Question:What term describes a group of related records containing information used by specific application programs?

    Answer:C. File

  68. Question:If the transport speed for a magnetic tape is 200 inches per second, and the density is 1600 bytes per inch, how many bytes can be transferred in one second?

    Answer:D. 3,200,000

  69. Question:What is the largest possible file that can be handled by an i-node with 10 direct addresses of 4 bytes each and a single indirect address, assuming disk blocks of 1 KB?

    Answer:C. 266 KB

  70. Question:In a directed graph used to model deadlock, what represents deadlock?

    Answer:C. Cycle

  71. Question:Which statement is NOT a task of file management in an OS?

    Answer:D. Allocate and deallocate memory.

  72. Question:What allocation method searches the entire list from beginning to end and takes the smallest hole that is adequate?

    Answer:A. Best fit.

  73. Question:What is the period between interruptions in the clock of the computer called?

    Answer:A. Clock ticks.

  74. Question:Which statement about the 'Next fit' algorithm is true?

    Answer:B. Memory Manager starts searching the list of segments from the point where it left off last time.

  75. Question:What does FIFO stand for in memory management?

    Answer:FIFO stands for 'First In, First Out'. It is a memory management policy where the oldest page in memory (the first one that was loaded) is the one removed first.

  76. Question:What is the theory behind the LRU page replacement algorithm?

    Answer:LRU stands for 'Least Recently Used'. The theory is that the page that has not been used for the longest period of time is the one removed from memory.

  77. Question:What is incorrect about user-level threads?

    Answer:A is incorrect: User-level threads are generally more efficient than kernel threads because they do not require kernel-level operations for thread management.

  78. Question:What happens when a user-level thread makes a blocking system call?

    Answer:When a user-level thread makes a blocking system call, the entire process that contains that user-level thread will be blocked.

  79. Question:What are the four main structural elements of a computer system?

    Answer:The four main structural elements are: A. Processor, Registers, Main Memory, and I/O Modules; B. Processor, Main Memory, I/O Modules and System Bus; C. Processor, Main Memory, I/O Modules and System Bus.

  80. Question:How does multiprogramming increase processor efficiency?

    Answer:Multiprogramming increases processor efficiency by taking advantage of time wasted during long wait IO handling.

  81. Question:Which instructions are allowed only in kernel mode?

    Answer:Instructions like 'Disable all interrupts' should only be allowed in kernel mode.

  82. Question:What is a hard real-time system?

    Answer:A hard real-time system is one that guarantees a certain action will occur by a specific time.

  83. Question:What condition of mutual exclusion is violated by the Strict Alternation Software proposal?

    Answer:It violates condition B: No assumptions made about speeds or number of CPUs. This means that even if one process is slower, it can delay the entire system's functionality.

  84. Question:What characterizes the fourth generation of operating systems?

    Answer:The fourth generation is characterized by personal computers, single user, and multitasking capabilities.

  85. Question:What is the average waiting time for five batch jobs (A, B, C, D, and E) with estimated times of 8, 6, 2, 10, and 4 minutes using FCFS scheduling?

    Answer:The average waiting time is 12.8 minutes. The waiting times for each job in FCFS are calculated and then averaged.

  86. Question:How is a two-level page table structured in a 32-bit address space?

    Answer:A two-level page table divides the virtual address space into smaller segments, using two levels of tables to map virtual addresses to physical addresses efficiently.

  87. Question:How is a 9-bit top-level page table, 11-bit second-level page table, and an offset used for a 4-KB page?

    Answer:A 4-KB page consists of 2^12 bytes. The arrangement of a 9-bit top-level page table field, an 11-bit second-level page table field, and an offset works as follows: The top-level page table can address 2^9 entries, and each entry can point to a second-level page table with 2^11 entries, which can address further pages. The offset takes the remaining 12 bits as it is a 4-KB page.

  88. Question:What is the time it takes to completely rewrite the screen of a 1000 x 600 pixel graphics at 24-bit color if it takes 10 nsec to copy a byte?

    Answer:To calculate this, first, find the total number of pixels: 1000 x 600 = 600,000 pixels. Then, calculate the total number of bytes of color information: 600,000 pixels * 3 bytes/pixel (24-bit color) = 1,800,000 bytes. If it takes 10 nsec to copy one byte, then the total time taken = 1,800,000 bytes * 10 nsec/byte = 18,000,000 nsec = 18 msec.

  89. Question:What solution is used to solve the 'missing block' problem for file system consistency?

    Answer:The correct solution is: B. The file system checker adds the missing blocks to the free list.

  90. Question:Which statement about disabling interrupts to resolve race conditions is wrong?

    Answer:The wrong statement is: D. User-mode programs are the best place to invoke disableinterrupt.

  91. Question:In modern printing systems, what is the name of the process where a disk accepts output from several users until the printer is ready?

    Answer:The process is called C. Spooling.

  92. Question:What type of Hypervisor is VMware Workstation?

    Answer:VMware Workstation is a B. Type 2 Hypervisor.

  93. Question:Which statement about device drivers is correct?

    Answer:The correct statement is: C. Device drivers layer lies right above the interrupt handlers layer and below the device-independent OS software layer.

  94. Question:An example of an I/O block device is?

    Answer:An example of an I/O block device is A. CD ROM.

  95. Question:Which of the following information bits in the entry of the page table is used to indicate a locked page?

    Answer:The correct answer is A. Present/absent bit.

  96. Question:Which statement about hard links is not correct?

    Answer:The incorrect statement is A. Hard links can point to files in the network.

  97. Question:What is the correct option about Shortest Job First scheduling algorithm?

    Answer:C. Avoid Starvation and Minimize average waiting time.

  98. Question:Which statement about interrupts and system calls is incorrect?

    Answer:A. System calls are caused by internal synchronous events.

  99. Question:What is true about main memory in the memory hierarchy?

    Answer:A. Small amount of fast expensive memory.

  100. Question:Which deadlock condition does "Take resources away" attack?

    Answer:C. No preemption.

  101. Question:What is not a main function of an operating system?

    Answer:D. Support virtual memory.

  102. Question:Which statements about the Inverted Page Table are true?

    Answer:A. An entry contains the pair process, virtual page mapped into the corresponding page frame.

  103. Question:What is the special program that facilitates communication between a device and the OS called?

    Answer:C. device driver.

  104. Question:What is the correct process state transition when the external event for which a process was waiting happens?

    Answer:C. Blocked waiting - ready.

  105. Question:All deadlocks involve conflicting needs for resources by how many processes?

    Answer:B. Two or more processes.

  106. Question:If a virtual address space of 2^32 words and the page size is 2^12 words, what would be the page number for the address 12345678 in hexadecimal?

    Answer:C. 12345.

  107. Question:In terms of disk storage efficiency, how does the method of "Backing up pages dynamically" compare to "Paging to a static swap area"?

    Answer:B. Worse.

  108. Question:What is true about Mutex?

    Answer:A. A simplified version of the semaphore.

  109. Question:What is the main purpose of a semaphore in operating systems?

    Answer:A semaphore is primarily used for managing mutual exclusion to shared resources, ensuring that only one process can access a critical section at a time.

  110. Question:What are the two states of a semaphore?

    Answer:A semaphore can be in one of two states: unlocked (available) or locked (not available).

  111. Question:Which condition causes processes to be terminated by the operating system?

    Answer:Processes can be terminated under several conditions including: A. Normal exit (voluntary), B. Error exit (voluntary), C. Fatal error (involuntary), D. Killed by another process (involuntary).

  112. Question:How can mutual exclusion be guaranteed in a single processor system?

    Answer:Mutual exclusion in a single processor system can be guaranteed by: A. Overlapping processes, B. Interleaving processes, C. Disabling interrupts, or D. All of the other choices.

  113. Question:What is the purpose of the thread_yield function?

    Answer:The thread_yield function allows a thread to give up its current time slice and yield control to another thread, allowing for improved concurrency.

  114. Question:What actions does the operating system take to execute a new process?

    Answer:To execute a new process, the operating system must: A. Provide immediate CPU for the process, B. Deliver necessary resources, C. Create the immediate Process Control Block (PCB) for the process, or D. Provide immediate registers for the process.

  115. Question:What allocation method is implemented by the MS-DOS operating system?

    Answer:MS-DOS typically uses contiguous allocation for managing files.

  116. Question:What methods are used to increase file system performance?

    Answer:File system performance can be improved by: A. Buffer cache, B. Block Read Ahead, C. Defragmenting disks, or D. All of the other choices.

  117. Question:How long does it take to completely rewrite a 1000 x 600 pixel screen with 24-bit color assuming it takes 10 seconds to copy a byte?

    Answer:It takes 18 milliseconds (msec) to completely rewrite the screen.

  118. Question:As you move down the memory hierarchy from onboard memory to offline storage, what happens to access time?

    Answer:Access time increases as one moves down the memory hierarchy.

  119. Question:What device is described as a small computer that fits in a shirt pocket and performs basic functions?

    Answer:This is commonly referred to as a Personal Digital Assistant (PDA).

  120. Question:What is the storage capacity of a single-sided, single-layer DVD?

    Answer:A single-sided, single-layer DVD can hold 4.7 GB of data.

  121. Question:What is the linking technique that allows a file to appear in more than one directory?

    Answer:The techniques allowing a file to appear in multiple directories include both hard links and symbolic links.

  122. Question:In the context of disk I/O, what is a disk queue?

    Answer:A disk queue is a structure that holds requests for input-output operations, particularly for accessing blocks on magnetic disks.

  123. Question:What are the typical characteristics of a Personal Computer (PC)?

    Answer:A Personal Computer is a versatile computer designed for individual use that can run various applications, store data, and connect to other devices.

  124. Question:What factors affect the performance of file systems?

    Answer:File system performance is influenced by factors such as disk access speeds, the method of file allocation, caching strategies, fragmentation levels, and the type of storage medium.

  125. Question:Define the term 'Process Control Block' (PCB).

    Answer:A Process Control Block is a data structure maintained by the operating system to store information about a process, including its state, program counter, CPU registers, memory management information, and process identifiers.

  126. Question:What is the total head movement of a disk head initially at cylinder 20 using the Elevator algorithm, considering the options: A. 146 B. 60 C. 58 D. None of the others?

    Answer:C. 58

  127. Question:Which of the following is NOT a goal of a scheduling algorithm for all systems? A. Response time B. Policy enforcement C. Balance D. Fairness

    Answer:B. Policy enforcement

  128. Question:What does the 'sequential processes' concept entail? Options: A. There are both many CPU and many PC B. All processes are executed in concurrency C. No concurrency inside a process, everything happens sequentially D. None of the other choices

    Answer:C. No concurrency inside a process, everything happens sequentially.

  129. Question:In a simple structuring model for a monolithic system, which of the following is included? A. A main program that invokes the requested service procedure B. A set of service procedures that carry out the system calls C. A set of utility procedures that help the service procedures D. All of the other choices

    Answer:D. All of the other choices.

  130. Question:Of the three components of access time in a disk, which is the longest? A. Seek time B. Search time C. Transfer time D. Delay time

    Answer:A. Seek time.

  131. Question:Which of the following is NOT a well-known technique for organizing the physical storage blocks for a file? A. Contiguous block allocation B. Linked list block allocation C. Sparse block allocation D. Indexed block allocation

    Answer:C. Sparse block allocation.

  132. Question:A CPU having multiple execution units that can carry out multiple instructions at the same time is called what? A. Pipeline B. Superscalar C. Multicore D. None of the other choices

    Answer:B. Superscalar.

  133. Question:To which class of I/O devices does a Clock belong? A. Stream devices B. Block devices C. Character devices D. None of the other choices

    Answer:C. Character devices.

  134. Question:Which concept describes disk sectors being numbered consecutively starting at 0, without regard to the disk geometry? A. Logical block addressing B. Physical block addressing C. Virtual block addressing D. None of the other choices

    Answer:A. Logical block addressing.

  135. Question:What is the maximum partition size if the FAT type is FAT-32 and the block size is 4 KB? A. 1 TB B. 128 MB C. 256 MB D. 512 MB

    Answer:A. 1 TB.

  136. Question:Which of the following is specified to indicate the directory where the file is located? A. Extension B. Path name C. Root directory D. Sub-directory

    Answer:B. Path name.

  137. Question:Who usually writes the Device Driver? A. Device's Manufacturer B. OS's Manufacturer C. Computer's Manufacturer D. All of the other choices

    Answer:A. Device's Manufacturer.

  138. Question:In a computer with a 32-bit address that uses a two-level page table, with virtual addresses split into a 10-bit top-level page table field, an 11-bit second-level page table field, and an offset, how large are the pages? A. 4-KB page B. 2-KB page C. 1-page D. 512B page

    Answer:A. 4-KB page.

  139. Question:The disk block in a partition that includes a magic number, the number of blocks in the file system, and other key administrative information is called what? A. Free block B. MBR C. Superblock D. None of the other choices

    Answer:C. Superblock.

  140. Question:What scheduling algorithm is used for jobs A-D in the READY queue and what is the time quantum?

    Answer:Round Robin scheduling with a time quantum of 4.

  141. Question:What is the average turnaround time for jobs A-D given their CPU cycles: A=8, B=4, C=9, D=5?

    Answer:The average turnaround time for the jobs is 27.

  142. Question:List the jobs and their corresponding arrival times and CPU cycles.

    Answer:Job A: Arrival Time 0, CPU Cycle 8; Job B: Arrival Time 1, CPU Cycle 4; Job C: Arrival Time 2, CPU Cycle 9; Job D: Arrival Time 3, CPU Cycle 5.

  143. Question:Which statement is NOT true about separating I/O and memory space?

    Answer:A. Device drivers must be written using assembly language.

  144. Question:What concurrency control mechanism removes the possibility of circular wait and guarantees the removal of deadlocks?

    Answer:A. Hierarchical ordering.

  145. Question:What are the tasks of the clock driver for the clock software in the computer?

    Answer:A. Maintaining the time of day; B. Accounting for CPU usage; C. Handling the alarm system call made by user processes; D. All of the other choices.

  146. Question:What is one way to recover from a deadlock?

    Answer:A. Preempt a resource; B. Rollback; C. Killing processes; D. All of the other choices.

  147. Question:What is NOT correct about system calls?

    Answer:C. In terms of performance, using system calls is better than using procedure calls.

  148. Question:What is true about preemptable resources?

    Answer:B. Can be taken away from a process with no ill effects.

  149. Question:Programmed I/O should be acceptable for which type of systems?

    Answer:C. Embedded systems.

  150. Question:Identify one improvement that DVDs have over CDs to increase capacity.

    Answer:A. Smaller pits.

  151. Question:What event can cause processes to be created when a running process creates one or more new processes?

    Answer:B. Execution of a process creation system call.

  152. Question:What is an interrupt vector?

    Answer:A. A signal an I/O device sends to the CPU.

  153. Question:What are the CPU cycles for jobs A, B, C, and D?

    Answer:A: 8, B: 4, C: 9, D: 5.

  154. Question:What ensures that user processes cannot perform I/O?

    Answer:C. There is a special protection mechanism.

  155. Question:What is the definition of caching in the context of a device control register?

    Answer:Caching a device control register means temporarily storing the status to avoid constant access, which could be disastrous if not handled correctly.

  156. Question:Which statement about preemptable resources is true?

    Answer:B. Can be taken away from a process with no ill effects.

  157. Question:What is the significance of having a tighter spiral in DVDs compared to CDs?

    Answer:A tighter spiral allows more data to be stored on the same surface area, increasing capacity.

  158. Question:What is the part of memory that contains the addresses of interrupt handlers?

    Answer:The part of memory that contains the addresses of interrupt handlers is known as the Interrupt Vector Table (IVT).

  159. Question:What is the purpose of the second-chance page-replacement algorithm?

    Answer:The second-chance page-replacement algorithm moves pages found at the head of a FIFO queue with the referenced bit turned on back to the tail of the queue to avoid replacing them. If a page has its referenced bit off, it is a candidate for replacement.

  160. Question:Which strategy is the simplest design for speeding up paging?

    Answer:The simplest design for speeding up paging is to load the page table into registers, allowing for faster access compared to storing it in main memory or disk.

  161. Question:What are the main buses used in IBM PC computers?

    Answer:The main buses used in IBM PC computers are the Industry Standard Architecture (ISA) and the Peripheral Component Interconnect (PCI).

  162. Question:How many letters do all current operating systems allow as legal file names?

    Answer:All current operating systems allow file names that range from one to eight letters.

  163. Question:What part of the boot process determines whether the peripheral devices are working properly?

    Answer:The Power-On Self Test (POST) is the part of the boot process that checks if the peripheral devices are functioning correctly.

  164. Question:What is software proposal in the solution of mutual exclusion with busy waiting?

    Answer:In the context of mutual exclusion with busy waiting, software proposals include techniques such as Message Passing, Monitors, and Peterson's Solution.

  165. Question:List the tasks of process management in an operating system.

    Answer:Tasks of process management in an OS include: process creation and deletion, process suspension and resumption, providing mechanisms for process synchronization, interprocess communication, and avoiding deadlock.

  166. Question:Which scheduling algorithms are considered preemptive?

    Answer:Preemptive scheduling algorithms include: Shortest Remaining Time Next (SRTN) and Round Robin. First-Come, First-Served (FCFS) is not a preemptive scheduling algorithm.

  167. Question:What is the meaning of space efficiency in the context of a file system with a 4KB file using an 8KB block?

    Answer:If a 4KB file is stored on a file system with 8KB blocks, the space efficiency can be determined by how much of the block is utilized. The efficiency would be 50% since 4KB out of the 8KB block is used.

  168. Question:What occurs during a page fault in memory paging?

    Answer:A page fault occurs during memory paging when an attempt is made to access data not currently present in main memory, causing an interrupt that requires the operating system to load the required page from secondary storage.

  169. Question:What is BIOS and its role in the boot process?

    Answer:The Basic Input/Output System (BIOS) is firmware that initializes and tests the hardware components during the boot process before handing control to the operating system.

  170. Question:What is a common method for interprocess communication?

    Answer:Common methods for interprocess communication include message passing, shared memory, sockets, and pipes.

  171. Question:What is the interrupted service routine (ISR)?

    Answer:The interrupt service routine (ISR) is a function executed in response to an interrupt signal, handling the event and managing the control flow accordingly.

  172. Question:What is a control register?

    Answer:A control register is a special type of register in a CPU used to control the operation of or communicate with other parts of the computer, particularly I/O devices.

  173. Question:What is the function of the TLB (Translation Lookaside Buffer)?

    Answer:The Translation Lookaside Buffer (TLB) is a memory cache that stores recent translations of virtual memory addresses to physical memory addresses, speeding up the process of memory access.

  174. Question:What does multitasking mean in the context of operating systems?

    Answer:Multitasking in operating systems refers to the ability to execute multiple processes simultaneously, allowing users to switch between them and utilize system resources more efficiently.

  175. Question:What is excessive fragmentation in operating systems?

    Answer:Excessive fragmentation refers to a situation where storage space is inefficiently utilized, leading to many small, unusable pieces of memory that cannot be allocated to new processes. This can occur in both physical and virtual memory contexts.

  176. Question:What is a page fault, and when does it occur?

    Answer:A page fault occurs when a program accesses a page that is not currently loaded in main memory. This interrupts the process and triggers the operating system to load the required page from secondary storage into RAM.

  177. Question:Which operating systems are well-known for handheld computers?

    Answer:A. TinyOS B. MS-DOS C. Symbian OS D. Palm OS E. e-Cos (Note: Both Symbian OS and Palm OS are often considered together for handheld devices.)

  178. Question:In the Mach model of page fault handling with an external pager, what components are involved?

    Answer:A. A low-level MMU (Memory Management Unit) handler B. A page fault handler that is part of the kernel C. An external pager running in user space D. All of the other choices. (Note: The correct answer includes all components mentioned.)

  179. Question:When process D experiences a page fault, which page is replaced under a local replacement policy?

    Answer:To determine the page replacement in local policy, typically the most recent or least recently used page is replaced. In this context, options may include D6, B3, A5, or others, and the strategy depends on the memory management algorithm in use.

  180. Question:What allocation methods do i-nodes use in file systems?

    Answer:A. Contiguous allocation B. Linked allocation C. Indexed allocation D. Linked allocation using FAT (File Allocation Table) (Note: Each of these methods describes a way files can be organized on disk.)

  181. Question:What information is contained in the entries of the partition tables?

    Answer:A. Starting and ending address of each partition B. Marking a partition as active C. Both starting and ending address of each partition and marking it as active D. None of the other choices (Note: The partition table may typically include starting and ending points and active status.)

  182. Question:Which statement about interrupts and trap instructions is incorrect?

    Answer:A. An interrupt is a hardware-generated change of control flow within the system. B. An interrupt handler deals with the cause of the interrupt. C. A trap instruction is a software-generated interrupt. D. None of the other choices. (Note: The task is to identify if an option contains misinformation.)

  183. Question:What system call allows the system to specify from where to take data in a file?

    Answer:A. OPEN B. SEEK C. CREATE D. LINK (Note: The SEEK system call is used to move the file pointer to a specified location within a file.)

  184. Question:What are symbolic links, and how do they work?

    Answer:A. Symbolic links occupy space to store the pathname. B. Symbolic links can only point to files. C. Symbolic links can point to files on the same machine's network. D. Symbolic links can point to files across the network. E. None of the other choices. (Note: Symbolic links can point to any pathname, including locations on different machines.)

  185. Question:Which class of I/O devices does a scanner belong to?

    Answer:A. Stream devices B. Block devices C. Character devices D. None of the other choices. (Note: A scanner is typically classified as a character device due to its nature of processing one character at a time.)

  186. Question:What algorithm is designed to detect starvation by tracking job waiting times?

    Answer:A. Deadlock detection B. Aging C. Preemption D. Round Robin (Note: Aging is an algorithm used to gradually increase the priority of waiting processes to prevent starvation.)

  187. Question:What is the definition of deadlock in operating systems?

    Answer:A set of processes is deadlocked if each process in the set is waiting for an event that only another process in the set can cause. An event may represent resources requested or conditions that must be met to proceed with execution.

  188. Question:What is a stream device example in I/O operations?

    Answer:A stream device is a type of input or output device that handles a continuous flow of data. Examples include audio streaming devices or video streaming setups.

  189. Question:What are the two main types of memory allocation strategies for processes?

    Answer:The two main types of memory allocation strategies are static allocation (where memory size is fixed) and dynamic allocation (which allows for memory size changes during execution). The dynamic strategy includes heap allocation and stack allocation.

  190. Question:What event is released when resource B is currently held?

    Answer:The event is the release of a currently held resource B.

  191. Question:What event corresponds to pressing some key on keyboard C?

    Answer:The event is pressing some key on keyboard C.

  192. Question:What event is indicated by a mouse click?

    Answer:The event is a mouse click.

  193. Question:Which special register in the CPU points to the top of the current stack in memory?

    Answer:The special register that points to the top of the current stack in memory is the Stack Pointer (SP).

  194. Question:Which of the following is not a type of file structure?

    Answer:C. Ring is not a type of file structure.

  195. Question:What is the deadlock condition that the strategy 'Spool everything' aims to attack?

    Answer:The deadlock condition targeted by 'Spool everything' is A. Mutual exclusion.

  196. Question:What specialized WRITE command allows for appending records or rewriting selected records in their original place?

    Answer:The specialized WRITE command is A. APPEND.

  197. Question:In a computer with a 32-bit address using a two-level page table, how are the pages sized given a 10-bit top-level and 12-bit second-level page table field?

    Answer:The pages are A. 4-KB page.

  198. Question:What is the correct process state transition when the OS discovers a process cannot continue due to insufficient resources?

    Answer:The correct transition is A. Running - Blocked waiting.

  199. Question:Which condition is not necessary for deadlock to exist?

    Answer:D. Preemption condition is not necessary for deadlock to exist.

  200. Question:What is the incorrect statement about Translation Lookaside Buffer (TLB)?

    Answer:C. The use of TLB eliminates the need for keeping a page table in memory is incorrect.

Showing the first 200 of 282 cards. Open All cards to see the rest.