1.
The operating system normally views
any storage device as a(n) ____, thus ignoring the device's physical
storage organization.
Correct Answer
C. Linear address space
Explanation
The operating system normally views any storage device as a linear address space. This means that the operating system treats the storage device as a continuous sequence of memory addresses, disregarding the physical organization of the device's storage. This allows the operating system to access and manage the storage device in a uniform and efficient manner, regardless of the underlying physical structure of the device.
2.
Where does the translation from logical access to physical accesses normally take place?
Correct Answer
A. Device controller
Explanation
The translation from logical access to physical accesses normally takes place in the device controller. The device controller is responsible for managing the communication between the computer system and the I/O or storage devices. It translates the logical access requests made by the computer system into physical accesses that the devices can understand and execute. This allows for efficient and effective data transfer between the computer system and the devices.
3.
Which bus carries interrupts, read
commands, status codes, and acknowledgements?
Correct Answer
B. Control bus
Explanation
The control bus carries interrupts, read commands, status codes, and acknowledgements. This bus is responsible for controlling the flow of information and coordinating the operations of different components within a computer system. It allows the CPU to communicate with other devices and peripherals by sending control signals and commands. The control bus plays a crucial role in managing the overall operation and synchronization of the system.
4.
Which of the following devices does the CPU treat as a linear address
space?
Correct Answer
D. All of the above
Explanation
The CPU treats all of the mentioned devices (tape drive, disk drive, and video display) as a linear address space. This means that the CPU views the memory addresses of these devices as a continuous sequence of locations, allowing it to access data and instructions stored in these devices using the same addressing scheme as it does for main memory. This allows for efficient and consistent communication between the CPU and these devices.
5.
Which of the
following statements about caches is not correct?
Correct Answer
A. During a read operation, a cache acts as a buffer.
Explanation
During a read operation, a cache does not act as a buffer. The purpose of a cache is to store frequently accessed data and provide faster access to it. In a read operation, the cache is checked first to see if the requested data is already stored. If it is, the data is retrieved from the cache and there is no need for buffering. If the data is not in the cache, it is retrieved from the storage device and then stored in the cache for future access. Therefore, the statement that a cache acts as a buffer during a read operation is incorrect.
6.
Which of the
following is a potential source of an interrupt?
Correct Answer
A. Opening a non-existent file
Explanation
When a program attempts to open a non-existent file, it can trigger an interrupt. This interrupt occurs because the operating system needs to handle the error and notify the program that the file does not exist. The interrupt allows the operating system to take control and perform necessary actions, such as displaying an error message or terminating the program gracefully. In contrast, opening a file that exists does not typically result in an interrupt since it is a normal operation that the operating system can handle without any issues.
7.
A cache controller is a hardware device that initiates a cache swap when
it detects a(n) ____.
Correct Answer
A. Cache miss
Explanation
A cache controller is responsible for managing data in a cache memory. When it detects a cache miss, it means that the requested data is not present in the cache memory. In this case, the cache controller initiates a cache swap, which involves fetching the required data from the main memory and storing it in the cache for faster access in the future.
8.
The CPU is
always capable of being a(n) ____, thus controlling access to the bus by all
other devices in the computer system.
Correct Answer
C. Bus master
Explanation
The CPU is always capable of being a bus master, thus controlling access to the bus by all other devices in the computer system. As a bus master, the CPU has the authority to initiate and manage data transfers between different devices connected to the bus. It can request data from or send data to other devices, ensuring efficient communication and coordination within the computer system.
9.
SCSI is a proprietary standard and manufacturers
of SCSI devices must pay a license fee.
Correct Answer
B. False
Explanation
SCSI is not a proprietary standard, but rather an industry standard that is not owned by any specific company. Manufacturers of SCSI devices do not have to pay a license fee to use the SCSI standard. Therefore, the statement is false.
10.
During interrupt processing,
register values of a suspended process are stored ____.
Correct Answer
A. On the stack
Explanation
During interrupt processing, the register values of a suspended process are stored on the stack. The stack is a data structure that allows for efficient last-in, first-out (LIFO) operations. When an interrupt occurs, the processor saves the current state of the process by pushing the register values onto the stack. This allows the processor to resume execution of the interrupted process later on by popping the saved register values from the stack and restoring them back into the appropriate registers. Storing the register values on the stack ensures that they are easily accessible and can be efficiently restored when needed.
11.
How
many memory cache levels are employed by the Intel Itanium2 processor?
Correct Answer
D. 3
Explanation
The Intel Itanium2 processor employs three memory cache levels. This means that it has three levels of cache memory, each with different sizes and speeds. These cache levels are used to store frequently accessed data and instructions, allowing for faster processing and reducing the need to access data from the main memory. Having multiple cache levels helps to improve the overall performance and efficiency of the processor.
12.
____ enable the CPU and bus to
interact with a keyboard in exactly the same way they interact with a disk
drive or video display.
Correct Answer
B. I/O ports
Explanation
I/O ports enable the CPU and bus to interact with a keyboard in exactly the same way they interact with a disk drive or video display. I/O ports are hardware components that provide a means for the CPU to communicate with external devices, such as keyboards, by sending and receiving data. They allow the CPU to send commands and receive input from the keyboard, just as it would with other devices like a disk drive or video display.
13.
An interrupt
handler is called by the supervisor after it looks up the interrupt code in the
interrupt table.
Correct Answer
A. True
Explanation
An interrupt handler is a routine that is called by the supervisor when an interrupt occurs. The interrupt code is looked up in the interrupt table to determine which handler should be called. Therefore, the statement "An interrupt handler is called by the supervisor after it looks up the interrupt code in the interrupt table" is true.
14.
Secondary
storage devices are not generally attached directly to the system bus. Instead,
they are attached to a(n) ____ which is, in turn, attached to the system bus.
Correct Answer
D. Device controller
Explanation
Secondary storage devices, such as hard drives or optical drives, are not directly connected to the system bus. Instead, they are connected to a device controller, which acts as an intermediary between the storage device and the system bus. The device controller manages the communication and data transfer between the storage device and the system bus, allowing the system to access and retrieve data from the secondary storage.
15.
The machine state is a register that
always contains a pointer to the top of the stack.
Correct Answer
B. False
Explanation
The machine state is not always a register that contains a pointer to the top of the stack. The machine state refers to the complete snapshot of the system at any given point in time, including the values of all registers, memory locations, and other relevant information. While a stack pointer register may be part of the machine state, it is not always the case. Therefore, the statement is false.
16.
____ enable the CPU and bus to
interact with a keyboard in exactly the same way they interact with a disk
drive or video display.
Correct Answer
B. I/O ports
Explanation
I/O ports enable the CPU and bus to interact with a keyboard in the same way they interact with a disk drive or video display. I/O ports are hardware components that provide a means for the CPU to send and receive data to and from external devices. They allow the CPU to communicate with peripherals, such as keyboards, by providing specific addresses and protocols for data transfer. This allows the CPU and bus to treat the keyboard as a standard input/output device, just like a disk drive or video display.
17.
If two
peripheral devices attempt to send a message at the same time, the messages
collide and produce electrical
noise.
Correct Answer
A. True
Explanation
When two peripheral devices attempt to send a message at the same time, there is a possibility of their messages colliding. This collision results in electrical noise, which can disrupt the communication between the devices. Therefore, the statement "If two peripheral devices attempt to send a message at the same time, the messages collide and produce electrical noise" is true.
18.
To which bus(es) is a SCSI controller attached?
Correct Answer
C. Both a and b
Explanation
A SCSI controller can be attached to both the SCSI bus and the system bus. The SCSI bus is specifically designed for connecting SCSI devices, including SCSI controllers, while the system bus is the main communication pathway between the CPU and other components of the computer system. Therefore, a SCSI controller can be connected to both buses simultaneously, allowing for efficient data transfer and communication between the SCSI devices and the rest of the system.
19.
The ____ is a register that always contains the address of the topmost
stack element.
Correct Answer
B. Stack pointer
Explanation
The stack pointer is a register that always contains the address of the topmost stack element. It keeps track of the current position of the stack and is used to push and pop elements onto and from the stack. The stack pointer is crucial in managing the stack data structure and ensuring that elements are properly organized and accessible.
20.
During a push operation, one or more register values are copied to the
top of the stack.
Correct Answer
A. True
Explanation
During a push operation, register values are indeed copied to the top of the stack. This is a common operation in computer programming, where values stored in registers need to be temporarily saved onto the stack for later use. The push operation involves decrementing the stack pointer and then copying the register values onto the stack at the new top position. This allows the program to free up the registers for other operations while still retaining the values for future use.
21.
Using ____
alters the balance of processor resources and communication or storage
resources in a computer system.
Correct Answer
B. Data compression
Explanation
Data compression is the process of reducing the size of data files, which in turn affects the balance of processor resources and communication or storage resources in a computer system. By compressing data, the overall amount of data that needs to be processed or stored is reduced, allowing for more efficient use of resources. This can be particularly beneficial in situations where there are limitations on processing power or storage capacity, as data compression helps optimize the utilization of these resources.
22.
During a(n)
____ operation, one or more register values are copied to the top of the stack.
Correct Answer
B. Push
Explanation
During a push operation, one or more register values are copied to the top of the stack. This means that the register values are pushed onto the stack, effectively adding them to the top of the stack. This is a common operation in stack-based architectures, where values are stored and retrieved from the stack in a last-in, first-out (LIFO) manner. The push operation allows for efficient storage and retrieval of data in a stack structure.
23.
An interrupt
handler is called by the supervisor after it looks up the interrupt code in the
interrupt table.
Correct Answer
A. True
Explanation
An interrupt handler is a function that is called by the supervisor when an interrupt occurs. The interrupt code is used to identify the specific interrupt that occurred. The supervisor looks up the interrupt code in the interrupt table, which contains information about how to handle each interrupt. Once the interrupt code is found, the corresponding interrupt handler is called to handle the interrupt. Therefore, the statement "An interrupt handler is called by the supervisor after it looks up the interrupt code in the interrupt table" is true.
24.
In most
computers, a(n) I/O port is a memory address, or a set of
contiguous memory addresses, that can be read or written by the CPU and a
single peripheral device.
Correct Answer
A. True
Explanation
In most computers, an I/O port is a memory address or a set of contiguous memory addresses that can be accessed by both the CPU and a single peripheral device. This allows the CPU to read from or write to the peripheral device using these memory addresses. Therefore, the statement "True" is the correct answer as it accurately describes the relationship between the CPU, I/O ports, and peripheral devices in most computers.
25.
The Intel Itanium2 processor has
separate L1 caches for data and instructions.
Correct Answer
A. True
Explanation
The Intel Itanium2 processor indeed has separate L1 caches for data and instructions. This design allows for faster and more efficient processing by enabling simultaneous access to both data and instructions. By separating the caches, the processor can fetch and store data and instructions independently, reducing the chances of cache conflicts and improving overall performance.
26.
The ____ is a register that always contains the address of the topmost
stack element.
Correct Answer
B. Stack pointer
Explanation
The stack pointer is a register that always contains the address of the topmost stack element. It is used to keep track of the current position in the stack, allowing for efficient push and pop operations. By storing the address of the topmost element, the stack pointer enables easy access to the most recently added data on the stack.
27.
Storage and
I/O devices are normally connected to the system bus through a(n) channel.
Correct Answer
B. False
Explanation
Storage and I/O devices are not normally connected to the system bus through a channel. Instead, they are typically connected through a separate I/O bus or interface. The system bus is primarily responsible for connecting the CPU and main memory, while the I/O bus handles communication between the CPU and peripheral devices. Therefore, the statement "Storage and I/O devices are normally connected to the system bus through a channel" is false.