操作系统习题(英⽂版)
Chapter 1 – Computer Systems Overview
True / Fal Questions:
1. T / F – The operating system acts as an interface between the computer hardware and the human ur.
2. T / F –One of the processor’s main functions is to exchange data with memory.
3. T / F – Ur-visible registers are typically accessible to system programs but are not typically available to application programs.
4. T / F – Data registers are general purpo in nature, but may be restricted to specific tasks such as performing floating-point operations.
5. T / F – The Program Status Word contains status information in the form of condition codes, which are bits typically t by the programmer as a result of program operation.
6. T / F – The processing required for a single instruction on a typical computer system is called the Execute Cycle.
7. T / F – A fetched instruction is normally loaded into the Instruction Register (IR).
8. T / F – An interrupt is a mechanism ud by system modules to signal the processor that normal processing should be temporarily suspended.
9. T / F – To accommodate interrupts, an extra fetch cycle is added to the instruction cycle.
10. T / F – The minimum information that must be saved before the processor transfers control to the interrupt handler routine is the program status word (PSW) and the location of the current instruction. 11. T / F – One approach to dealing with multiple interrupts is to disable all interrupts while an interrupt is being procesd.
12. T / F – Multiprogramming allows the processor to make u of idle time caud by long-wait interrupt handling.
13. T / F – In a two-level memory hierarchy, the Hit Ratio is defined as the fraction of all memory access found in the slower memory.
14. T / F – Cache memory exploits the principle of locality by providing a small, fast memory between the processor and main memory.
15. T / F – In cache memory design, block size refers to the unit of data exchanged between cache and main memory
16. T / F – The primary problem with programmed I/O is that the processor must wait for the I/O module to become ready and must repeatedly interrogate the status of the I/O module while waiting.
Multiple Choice Questions:
1. The general role of an operating system is to:
a. Act as an interface between various computers
b. Provide a t of rvices to system urs
c. Manage files for application programs
d. None of the above
2. The four main structural elements of a computer system are:
a. Processor, Registers, I/O Modules & Main Memory
b. Processor, Registers, Main Memory & System Bus
c. Processor, Main Memory, I/O Modules & System Bus
d. None of the above
3. The two basic types of processor registers are:
a. Ur-visible and Control/Status registers
b. Control and Status registers
c. Ur-visible and ur-invisible registers
d. None of the above
4. Address registers may contain:
a. Memory address of data
b. Memory address of instructions
c. Partial memory address
d. All of the above
5. A Control/Status register that contains the address of the next instruction to be fetched is called the:
a. Instruction Register (IR)
b. Program Counter (PC)
c. Program Status Word (PSW)
d. All of the above
6. The two basic steps ud by the processor in instruction processing are:
a. Fetch and Instruction cycles
b. Instruction and Execute cycles
c. Fetch and Execute cycles
d. None of the above
7. A fetched instruction is normally loaded into the:
a. Instruction Register (IR)
b. Program Counter (PC)
c. Accumulator (AC)
d. None of the above
8. A common class of interrupts is:
a. Program
b. Timer
c. I/O
d. All of the above
9. When an external device becomes ready to be rviced by the processor, the device nds this type of signal to the processor:
a. Interrupt signal
b. Halt signal
c. Handler signal
d. None of the above
10. Information that must be saved prior to the processor transferring control to the interrupt handler routine includes:
a. Processor Status Word (PSW)
b. Processor Status Word (PSW) & Location of next instruction
c. Processor Status Word (PSW) & Contents of processor registers
d. None of the above
11. One accepted method of dealing with multiple interrupts is to:
a. Define priorities for the interrupts
b. Disable all interrupts except tho of highest priority
c. Service them in round-robin fashion
d. None of the above
12. In a uniprocessor system, multiprogramming increas processor efficiency by:
a. Increasing processor speed
b. Taking advantage of time wasted by long wait interrupt handling
c. Eliminating all idle processor cycles
d. All of the above
13. As one proceeds down the memory hierarchy (i.e., from inboard
memory to offline storage), the following condition(s) apply:
a. Increasing cost per bit
b. Decreasing capacity
c. Increasing access time
d. All of the above
14. Small, fast memory located between the processor and main memory is called:
a. WORM memory
b. Cache memory
c. CD-RW memory
d. None of the above
15. When a new block of data is written into cache memory, the following determines which cache location the block will occupy:
a. Block size
b. Cache size
c. Write policy
d. None of the above
16. Direct Memory Access (DMA) operations require the following information from the processor:
a. Address of I/O device
b. Starting memory location to read from or write to
c. Number of words to be read or written
d. All of the above
Questions
1.1,1.4,1.7,1.8
Problems
1.1,1.3,1.4,1.5,1.7
Chapter 2 – Operating System Overview
True / Fal Questions:
1. T / F – An operating system controls the execution of applications and acts as an interface between applications and the computer hardware.
2. T / F – The operating system maintains information that can be ud for billing purpos on multi-ur systems.
3. T / F – The operating system typically runs in parallel with application pro grams, on it’s own special O/S processor.
4. T / F – One of the driving forces in operating system evolution is advancement in the underlying hardware technology.
5. T / F – In the first computers, urs interacted directly with the hardware and operating systems did not exist.
6. T / F – In a batch-processing system, the phra “control is pasd to a job” means that the processor is now fetching and executing instructions in a ur program.
7. T / F – Uniprogramming typically provides better utilization of system resources than multiprogramming.
8. T / F –In a time sharing system, a ur’s program is preempted at regular intervals, but due to relatively slow human reaction time this occurrence is usually transparent to the ur.
9. T / F – A process can be defined as a unit of activity characterized by a single quential thread of execution, a current state, and an associated t of system resources.
10. T / F – A virtual memory address typically consists of a page number and an offt within the page.
11. T / F – Implementing priority levels is a common strategy for
short-term scheduling, which involves assigning each process in the queue to the processor according to its level of importance.
12. T / F – Complex operating systems today typically consist of a few thousand lines of instructions.
13. T / F – A monolithic kernel architecture assigns only a few esntial functions to the kernel, including address spaces, interprocess communication and basic scheduling.
14. T / F – The hardware abstraction layer (HAL) maps between generic hardware commands/respons and tho unique to a specific platform.
Multiple Choice Questions:
17. A primary objective of an operating system is:
a. Convenience
b. Efficiency
c. Ability to evolve
d. All of the above
18. The operating system provides many types of rvices to end-urs,