Computer Science An Overview 12th Edition Brookshear Test Bank 1
Computer Science An Overview 12th Edition Brookshear Test Bank 1
ANSWER: B
2. Which of the following components of an operating system handles the details associated with particular
peripheral equipment?
ANSWER: A
3. Which of the following components of an operating system is not part of the kernel?
ANSWER: A
ANSWER: C
ANSWER: A
7. A section of a program that should be executed by at most one process at a time is called a
ANSWER: B
ANSWER: C
9. Which of the following items of information would not be contained in an operating system’s process
table?
ANSWER: D
ANSWER: A
11. Which of the following is a technique for controlling access to a critical region?
ANSWER: C
ANSWER: D
13. Which of the following concepts is not associated with critical regions?
ANSWER: C
ANSWER: D
15. Which of the following is a task that is not performed by the kernel of an operating system?
ANSWER: A
16. Which of the following is not a means of performing multiple activities at the same time?
17. Which of the following components of an operating system is executed as the result of an interrupt
signal?
ANSWER: A
18. Which of the following would be a concern of the file manager in a multi-user computer system that
would not be a concern in a single-user system?
ANSWER: B
ANSWER: C
A. Allowing several processes to share time in a multiprogramming system is less efficient than
executing each of them to completion one after the other.
B. The use of passwords provides an impenetrable safeguard.
C. Both A and B
D. Neither A not B
ANSWER: D
Fill-in-the-blank/Short-answer Questions
1. Suppose an operating system allocates time slices in 10 millisecond units and the time required for a
context switch is negligible.
____________
B. How many processes can obtain a time slice in one second if half of them use only half of their
slice?
____________
2. If it takes one microsecond to perform a context switch and processes use only half of their allotted 10
millisecond time slices, what percent of a CPUs time is spent performing context switches rather than
executing processes?
____________
4. Fill in the blanks below with the part on the operating system (file manager, memory manager, device
drivers, window manager, scheduler, dispatcher) that performs the activity described.
5. Fill in the blanks below with the part on the operating system (file manager, memory manager, device
drivers, window manager, scheduler, dispatcher) that performs the activity described.
6. Fill in the blanks below with the part on the operating system (file manager, memory manager, device
drivers, window manager, scheduler, dispatcher) that performs the activity described.
7. In each blank below write a term that might be considered the opposite of the term next to the blank.
8. What action is performed as a result of executing each of the following types of instructions?
A. Test-and-set ______________________________________________________
ANSWER: A. Checks to see if the contents of a memory cell is 0 or 1 and sets the value to a 1.
B. Causes the CPU to not recognize incoming interrupts.
C. Causes the CPU to begin recognizing incoming interrupts.
________________________________________________________________
________________________________________________________________
C. Take all resources from processes when deadlock occurs and restart the processes.
________________________________________________________________
A. ___________________________ B. _____________________________
C. ___________________________ D. _____________________________
ANSWER: Possible answers include: Memory space, mass storage space, printers, space in process table,
CPU time, and many more
11. What problem could occur if, to allow more processes to share time in a multiprogramming
environment, an operating system is designed to use very short time slices?
________________________________________________________________________
ANSWER: The time spent switching between processes could become significant when compared to the
time spent actually executing processes.
12. What is meant by the term load balancing in the context of multiprocessor computers?
________________________________________________________________________
ANSWER: Load balancing refers to the task of assigning tasks to the processors in a way that leads to
efficient use of all processors.
14. List three features provided by modern CPUs that are used by operating systems to implement
multitasking environments.
A. ___________________
B. ___________________
C. ___________________
ANSWER: Possible answers include: privilege levels, privileged instructions, test-and-set instructions,
memory limit registers, and others.
A. ___________________
B. ___________________
C. ___________________
ANSWER: Possible answers include: UNIX, Linux, Microsoft’s Windows series and Mac-OS
A. ___________________
B. ___________________
C. ___________________
ANSWER: Competitors in the smartphone operating system arena include Apple’s iPhone OS, Research In
Motion’s BlackBerry OS, Microsoft’s Windows Phone, Nokia’s Symbian OS, and Google’s Android.
ANSWER: System software provides the infrastructure required by the application software. It includes the
operating system and utilities. Application software provides the unique functionality required to perform
the particular tasks for with the computer is used. Examples include word processors, spreadsheet systems,
database systems, and image processing systems.
ANSWER: There must be competition for nonshareable resources, resources must be requested on a
piecemeal basis, and resources, once allocated, cannot be forcibly retrieved.
ANSWER: Privileged instructions are machine language instructions that request activities that general
application programs should not be allowed to perform. These instructions can only be executed when the
CPU is operating in “privileged mode.” Examples of privileged instructions include requests to change the
CPU’s current privilege level and requests to alter registers that control memory access limits.
5. What is the difference between a process that is waiting as opposed to a process that is ready?
ANSWER: A process that is waiting would not be able to advance if given a time slice (perhaps because it
is waiting for a peripheral device to complete a task) whereas a process that is ready would be able to
continue execution if given a time slice.
ANSWER: When the computer is first turned on, the boot loader program stored in ROM is executed. This
program directs the computer to load the operating system into main memory from mass storage. The boot
loader then executes a jump to the operating system, the operating system takes over.
7. Why is a “test-and-set” instruction included in most machine languages for CPUs designed for
multitasking environments?
ANSWER: The “test-and-set” instruction are useful when bits in main memory are used to record whether
various nonshareable resources have been allocated because they allow memory cells to be read and altered
without fear of interruption.
8. Explain why the average length of a time slice would be reduced if the processes in an operating
system’s process table perform lots of I/O operations.
ANSWER: Once a process requests an I/O operation, its time slice will be terminated, it will be labeled as a
waiting process, and another process will be allowed to start another time slice. Thus, the first process’s
effective time slice would be reduced.
9. In the sense of the term virtual memory, give an argument that multiprogramming creates virtual CPUs.
ANSWER: The term virtual memory refers to the illusion of a memory space that is larger than that
actually present. This illusion is created by the operating system. Multiprogramming is a technique used by
operating systems to create the illusion of more CPUs than are actually present.
10. Describe concerns that occur when designing a time-sharing/multitasking operating system that do not
occur in the case of a single tasking system.
ANSWER: Possible answers include: The implementation of multiprogramming, the need to protect each
process from malicious behavior of other processes, and the need to deal with the possibility of deadlock.
11. Describe how the widespread availability of multi-core processors effects operating systems.
ANSWER: Multi-core machines can actually execute multiple processes simultaneously, rather than
merely multiprocessing to give the illusion of multiple CPUs. Multi-core operating systems must schedule
and dispatch processes on such machines, and coordinating access to shared resources becomes a more
challenging problem for these systems.