COMP 3500 Module 1 Quiz Review
True or False? Assuming a modern OS implementation without bugs, a user program cannot run in kernel mode on a computer system that uses a CPU with dual mode. True False
True
Select the best answer. Timesharing requires ____________ scheduling. multitasking memory CPU I/O None of these answers
CPU
True or False? For efficiency reasons, the operating system (OS) is kept on the disk to run. Running the OS from the disk frees the main memory for the user programs. True False
False
True or False? On modern general purpose computer systems, software may directly trigger an interrupt onto the CPU. True False
False
Select all that apply. The operating system is needed because __________________ I/O operations are frequent and slow DMA is not efficient for I/O- Memory data transfers users and/or applications must share the computer hardware resources CPU is more efficient for I/O-Memory transfers None of these answers
I/O operations are frequent and slow, users and/or applications must share the computer hardware resources
Select the best answer. Memory-I/O data transfers are efficiently performed by the ______________. DMA None of these answers CPU data bus address bus
DMA
Select the best answer. The bootstrap program is precisely _______________. None of these answers a piece of firmware the kernel a piece of software an app
a piece of firmware
Select all that apply. The operating system is __________________ None of these answers a resource allocator a control program a hardware device a piece of software
a resource allocator, a control program, a piece of software
Select the best answer from each dropdown menu. The operating system is a _________________ that makes the use of a computer system __________________ , ___________________ , and _________________
a software program, convenient, efficient, secure
Select the best answer. A system call is made by ____________ . a user program a kernel (system) program a timer None of these answers an interrupt
a user program
Select the best answer from each dropdown menu. On a computer system, ____________ is/are an intermediary component serving directly ____________ while receiving service directly from__________
applications, users, operating system
Select all that apply. These algorithms will exhibit a good spatial locality. displaying sequentially items in a large array None of these answers binary search in an array matrices multiplication matrices addition displaying randomly items in a large array
displaying sequentially items in a large array, matrices addition
Check all that apply. From the user view, these features of an operating system are paramount. CPU utilization ease of use None of these answers resource utilization elegance of the code
ease of use
Select all that apply. Memory management aims to: maximize CPU utilization minimize CPU utilization minimize response time maximize response time
maximize CPU utilization, minimize response time
Fill in the blank. The operating system is in charge of: 1) Process Management 2) I/O subsystem 3) Protection and security 4) __________ Management 5) Storage Management
memory
Select the best answer from each dropdown menu. Caching consists of copying information into a _____________ storage system; a __________ can be viewed as a cache for the network clouds.
more expensive, hard drive
Fill in the blank. "Another form of multiprogramming that improve interactivity is ____________.
timesharing
Matching. We want to sort the different memory levels from the lowest to the highest access time. The level with the smallest access time is assigned the number 1. Registers Cache Main memory Hard drive Network storage
1 2 3 4 5
Matching. We want to sort the different memory levels from the smallest to the largest storage capacity. The level with the smallest storage capacity is assigned the number 1. Registers Cache Main memory Hard drive Network storage
1 2 3 4 5
Select the best answer. _______________ is an intruder as a component of a computer system. computer hardware None of these answers applications Users Apple Inc
Apple Inc
Select all that apply. For filesystem management, the OS activities are: Back up files on non volatile storage creating, opening, or deleting files or directories None of these answers Back up files in the main memory disk scheduling
Back up files on non volatile storage, creating, opening, or deleting files or directories
Select all that apply. The operating system is needed because ______________________. CPU cannot be kept busy all time by ANY application I/O operations are frequent and slow I/O operations are so rare. None of these answers the OS can efficiently perform the I/O-memory transfers using the CPU.
CPU cannot be kept busy all time by ANY application, I/O operations are frequent and slow
Match each computer system component to the most relevant role/definition. Computer Hardware Applications operating system Users
CPU, Memory, I/O solve users computational problems optimizes the use of a computer system people or machines using a computer
Check all that apply. These components of the computer hardware actively and concurrently access the shared memory through a shared bus. Central Processing Unit Disk Controller Graphics Adapter USB Controller Direct Memory Access Device None of these answers
Central Processing Unit, Direct Memory Access Service
Select all that apply. Check all statements that apply to the DMA. DMA and CPU can access simultaneously their shared memory None of these answers DMA is a hardware device DMA stands for Direct Memory Authority DMA is faster than the CPU to perform data transfers
DMA is a hardware device, DMA is faster than the CPU to perform data transfers
Select all that apply. For mass storage management, the OS activities are: Backup files onto stable (non-volatile) storage media Free-space management Disk scheduling None of these answers Storage allocation
Free-space management, disk scheduling, storage allocation
Check all that apply. These components of the computer hardware actively and simultaneously access the shared memory through a shared bus. Graphics Adapter Central Processing Unit None of these answers USB Controller Disk Controller Direct Memory Access Device
None of these answers
Select all that apply. Process management include: Process Synchronization None of these answers Process Abstraction Deadlock Handling Process Communication Process Hiding
Process Synchronization, Deadlock Handling, Process Communication
Fill in the blank. The program that loads the operating system kernel and starts execution is the ___________________ program.
bootstrap
Select the best answer from each dropdown menu. The ___________ is small and loaded at start up or reboot. It is NOT initially stored in the ___________.
bootstrap program, RAM
Select the best answer from each dropdown menu. - Use the best combination to build a true statement out of this one: After not finding a datum in the ___________, the ______________ will try to load it from ___________.
cache, hardware, main memory
Select all that apply. The operating system manages the sharing of these resources. central processing unit (CPU) DMA I/O system bus system memory system
central processing unit (CPU), I/O system, memory system
Select all that apply. Data transfers between registers and cache are managed by the ___________. operating system compiler user hardware programmer
compiler, programmer
Select the best answer. This is an intruder among the components or sub-components of a computer system. *An intruder is an element that does not belong to a group (made by the other options). computer hardware None of these answers applications operating system BIOS
computer hardware (BIOS, applications, and operating system are software programs)
Select the best answer from each dropdown menu. DMA is a mechanism provided by the __________ to help __________ carry its mission efficiently.
computer hardware, operating system
Select the best answer from each dropdown menu. Interrupts are a mechanism provided by the computer hardware to help operating system carry its mission efficiently.
computer hardware, operating system
Select the best answer. On a computer hardware with multiple CPUs and a shared memory and bus system, I/O devices and the CPUs execute ______________. simultaneously alternatively exclusively concurrently None of these answers
concurrently
Select all that apply. The memory system is organized in an hierarchy because of: theoretical storage limits cost per byte stored volatility technological storage limits access time
cost per byte stored, volatility, access time
Select the best answer. _______________ is an intruder as a component of hardware. *An intruder is an element that does not belong to a group (made by the other options). Devices drivers None of these answers Central Processing Unit (CPU) Input/Output (I/O) devices Memory
devices drivers
True or False? Using any CPU, the operating system can be designed to maintain full control of the computer system, i.e., to be the boss in charge. True False
false
Select the best answer from each dropdown menu. Caching consists of copying information into a __________ storage system; ____________ can be viewed as a cache for the hard drive.
faster, main memory
Select the best answer. When a CPU attempts to fetch an instruction or a data operand, the memory system will look first in the ___________ level. largest non volatile None of these answers least expensive fastest
fastest
Select all that apply. Variables referenced in the body of theses constructs will surely exhibit high temporal locality if-then-else for loops nested loops sequential code with no loops None of these answers while loops
for loops, nested loops, while loops
Select all that apply. Data transfers between main memory and cache are managed by programmer hardware user operating system compiler
hardware
Select the best answer from each dropdown menu. _______ may trigger an interrupt at any time by sending a signal to the _________
hardware, CPU
Fill in the blank. On modern computer systems, the memory system is organized as an ____________, rather than a flat system.
hierarchy
Select the best answer. The CPU ______________ the data transfers from/to main memory to/from local buffers. performs initiates blocks None of these answers completes
initiates
Fill in the blank. "The one program running at all times on the computer" is the ____________.
kernel
Fill in the blank. A more common definition, and the one that [the textbook author] usually follows, is that the operating system is the one program running at all times on the computer—usually called the ____________.
kernel
Select the best answer from each dropdown menu. - A CPU with dual mode will run the OS under the __________ mode while a user program will run under the ________ mode.
kernel, user
Select the best answer. After not finding a datum in the cache, the system will look next into the _____________. cache registers main memory hard drive None of these answers
main memory
Select all that apply. Timesharing is needed because _______________________. most users require interactivity one process can keep CPU and I/O devices busy all times. response time is desired by the users interactivity requires switching the CPU between users frequently. your average user can keep CPU and I/O devices busy all times.
most users require interactivity, response time is desired by the users,interactivity requires switching the CPU between users frequently
Select all that apply. Variables referenced in the body of theses constructs will surely exhibit high spatial locality. while loops nested loops for loops sequential code with no loops if-then-else None of these answers
none of these answers
Select the best answer. For a computer system, _______________ is an *intruder. *An intruder is an element that does not belong to a group (made by the other choices). operating system applications Users None of these answers computer hardware
none of these answers
Select the best answer. ______________ is not a responsibility or a duty of an operating system. Process Management None of these answers Memory Management Protection and Security I/O management
none of these answers
Select all that apply. Multiprogramming is needed because _____________________. one process alone cannot keep CPU and I/O devices busy all times. it improves CPU utilization this increases the likelihood that some process is ready to use the CPU it improves interactivity for the user time-sharing is not as efficient
one process alone cannot keep CPU and I/O devices busy all times, it improves CPU utilization, this increases the likelihood that some process is ready to use the CPU
Select the best answer. The kernel is a subset of the ___________________. DMA bootstrap program None of these answers every user program operating system
operating system
On a computer system, the __________ is/are an intermediary component serving directly the ___________ while receiving service directly from the __________
operating system, applications, computer hardware
Select all that apply. Data transfers between main memory and hard drive are managed by operating system programmer user hardware compiler
operating system, user
Select the best answer. Temporal locality refers to this property exhibited by most algorithms. recently referenced variables will never be referenced again recently referenced variables will be referenced again soon recently referenced variables will not be referenced soon recently referenced variables were referenced in temporary storage (e.g., cache) None of these answers
recently referenced variables will be referenced again soon
Fill in the blank. The operating system could be seen as a _______________ allocator.
resource
Software may trigger an interrupt by executing a special operation called a _______________.
system call
Select the best answer. For storage management of a modern computer system, the logical unit is ________. the file a sector on a hard drive None of these answers the track on a hard drive a data block
the file
Fill in the blank. On modern computer systems, the CPU must have at least ____________ such the CPU can run with different sets of privileges or capabilities. This will allow the CPU to run the operating system with the highest set of privileges or capabilities.
two modes
Select the best answer. Spatial locality refers to this property exhibited by most algorithms. None of these answers local variables are preferable to global variables. variables close (in the memory) to recently referenced variables will not be referenced soon. variables close (in the memory) to recently referenced variables will be referenced soon. variables far (in the memory) from recently referenced variables will be referenced soon.
variables close (in the memory) to recently referenced variables will be referenced soon.