CPU and Memory Basics
- 68Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the primary job of a CPU?
What is the primary job of a CPU?
68 questions
- 1
What is the primary job of a CPU?
- A
To permanently store every program and data file
- B
To provide electrical power to the computer system
- C
To convert all digital signals into analog signals
- D
To execute programs and machine-code instructions
Correct answer
DTo execute programs and machine-code instructions
Explanation
The CPU’s main job is to execute programs, or code, by consuming and processing instructions from memory.
- A
- 2
How does a CPU generally read a program from memory?
- A
It reads the entire program simultaneously
- B
It reads the program byte by byte in sequence
- C
It reads only the final instruction in the program
- D
It reads instructions randomly without using addresses
Correct answer
BIt reads the program byte by byte in sequence
Explanation
The CPU reads program data from external memory byte by byte, much like reading a book word by word.
- A
- 3
What happens to program execution while power remains applied to a CPU circuit?
- A
Execution continues unless an instruction or reset changes its operation
- B
Execution stops whenever the CPU reads a value from ROM
- C
Execution automatically stops after the program’s first pass
- D
Execution pauses permanently after all RAM has been accessed
Correct answer
AExecution continues unless an instruction or reset changes its operation
Explanation
The content states that as long as power is applied, the CPU cannot stop and program execution continues indefinitely.
- A
- 4
What values can a memory byte represent?
- A
Only binary values of 0 and 1
- B
Integer values from 0 through 255
- C
Integer values from 1 through 256
- D
Integer values from 0 through $ fing
Correct answer
BInteger values from 0 through 255
Explanation
A byte is an array element that can hold an integer value from 0 to 255.
- A
- 5
Why is the address of the 300th memory cell equal to 299?
- A
Memory addresses begin numbering at one but skip every tenth cell
- B
Each address represents two memory cells
- C
The CPU reserves address 300 for control signals
- D
Memory addresses begin numbering at zero
Correct answer
DMemory addresses begin numbering at zero
Explanation
Because memory cells are numbered starting at zero, the 300th cell has ordinal address 299.
- A
- 6
Which statement best describes ROM?
- A
ROM is generally used for temporary data and loses data without power
- B
ROM is generally used for pre-programmed code and retains data without power
- C
ROM can be freely read and written during normal operation
- D
ROM is used only to connect external input-output devices
Correct answer
BROM is generally used for pre-programmed code and retains data without power
Explanation
Read-only memory usually contains pre-programmed code and retains its contents when power is removed.
- A
- 7
Which statement best describes RAM?
- A
RAM stores permanent firmware and can only be read
- B
RAM contains only instructions that execute during boot
- C
RAM stores temporary data and can be both read and written
- D
RAM preserves all contents whenever the computer is turned off
Correct answer
CRAM stores temporary data and can be both read and written
Explanation
RAM generally contains temporary data generated or loaded during execution, and it supports both reading and writing.
- A
- 8
Which pairing is correct?
- A
Both a DIMM stick and a BIOS chip are types of ROM
- B
A DIMM stick is RAM, while a BIOS chip is ROM
- C
Both a DIMM stick and a BIOS chip are types of RAM
- D
A DIMM stick is ROM, while a BIOS chip is RAM
Correct answer
BA DIMM stick is RAM, while a BIOS chip is ROM
Explanation
DIMM modules installed in computers are RAM, whereas the BIOS chip is ROM containing boot firmware.
- A
- 9
What is BIOS primarily responsible for in the described system?
- A
Converting every memory address into hexadecimal notation
- B
Controlling only the brightness of the computer display
- C
Executing a small program each time the system boots
- D
Erasing RAM whenever a program finishes executing
Correct answer
CExecuting a small program each time the system boots
Explanation
BIOS is described as a small program stored in ROM that executes every time the system boots.
- A
- 10
What is firmware in the simplified computer model?
- A
A universal program that runs identically on every device
- B
Temporary data generated by the CPU and stored in RAM
- C
A physical wire that carries addresses from the CPU
- D
Device-specific software stored in ROM for that device to execute
Correct answer
DDevice-specific software stored in ROM for that device to execute
Explanation
Firmware is a program in ROM intended to run on a particular device; the term implies device-specific software.
- A
- 11
What is the address bus used for?
- A
Transferring the contents of a memory cell to the CPU
- B
Providing permanent storage for the CPU’s instructions
- C
Indicating whether a memory operation is a read or write
- D
Communicating the address of the memory cell the CPU wants to access
Correct answer
DCommunicating the address of the memory cell the CPU wants to access
Explanation
The address bus carries the binary address of the memory cell selected by the CPU.
- A
- 12
How is a memory address represented on an address bus?
- A
As a pattern of ones and zeros on electrical wires
- B
As a sequence of decimal digits printed on the memory chip
- C
As a text label stored inside the requested memory cell
- D
As a changing analog voltage with no binary interpretation
Correct answer
AAs a pattern of ones and zeros on electrical wires
Explanation
The address bus uses electrical wires carrying binary signals to encode memory addresses.
- A
- 13
For a 16-bit address bus, which line carries the least significant bit of an address?
- A
Line A1
- B
Line A14
- C
Line A0
- D
Line A15
Correct answer
CLine A0
Explanation
Address numbering begins at zero, so the least significant bit is carried on address line A0.
- A
- 14
For a 16-bit address bus, which line carries the most significant bit of an address?
- A
Line A0
- B
Line A15
- C
Line A7
- D
Line A8
Correct answer
BLine A15
Explanation
A 16-bit address uses lines A0 through A15, with A15 carrying the most significant bit.
- A
- 15
Why is the address bus described as unidirectional?
- A
Addresses travel only between RAM and ROM without involving the CPU
- B
Addresses travel in both directions but only during write operations
- C
Addresses travel from the CPU to external devices, not back to the CPU
- D
Addresses travel from memory devices to the CPU, not in the opposite direction
Correct answer
CAddresses travel from the CPU to external devices, not back to the CPU
Explanation
The CPU outputs addresses to memory and other devices, while the devices receive those addresses through input pins.
- A
- 16
What is the main purpose of the control bus?
- A
To signal which type of operation the CPU wants to perform
- B
To expand the number of address lines available to the CPU
- C
To store the binary contents of every memory cell
- D
To convert machine instructions into hexadecimal notation
Correct answer
ATo signal which type of operation the CPU wants to perform
Explanation
The control bus carries signals that coordinate operations such as reading and writing.
- A
- 17
What do the RD and WR control signals indicate?
- A
Whether the CPU is using ROM or RAM exclusively
- B
Whether the address is represented in binary or hexadecimal
- C
Whether a device is connected through ISA or PCI-Express
- D
Whether the CPU is requesting a read or a write operation
Correct answer
DWhether the CPU is requesting a read or a write operation
Explanation
RD designates the read signal and WR designates the write signal.
- A
- 18
What does it mean that RD and WR are active low?
- A
The signal changes meaning depending on whether ROM or RAM is used
- B
The CPU activates the desired signal by raising it to logic one
- C
The CPU activates the desired signal by pulling it to logic zero
- D
The signal is active only when both lines are simultaneously high
Correct answer
CThe CPU activates the desired signal by pulling it to logic zero
Explanation
An active-low signal is asserted at logic zero; the CPU pulls RD or WR low to activate it.
- A
- 19
Why are the READ and WRITE signals mutually exclusive?
- A
Only ROM can respond to READ while only RAM can respond to WRITE
- B
The system does not perform reading and writing simultaneously
- C
The data bus becomes permanently disconnected during a write
- D
The address bus cannot carry an address during either operation
Correct answer
BThe system does not perform reading and writing simultaneously
Explanation
The content states that reading and writing cannot occur simultaneously, so the signals are mutually exclusive.
- A
- 20
What is the function of the data bus?
- A
It selects which address range belongs to each memory chip
- B
It transfers data between the CPU and memory or other devices
- C
It identifies the instruction currently stored in the program counter
- D
It supplies power to all devices connected to the motherboard
Correct answer
BIt transfers data between the CPU and memory or other devices
Explanation
The bidirectional data bus carries the values being read from or written to memory and devices.
- A
- 21
Why does the width of the data bus affect system performance?
- A
A wider bus can transfer more bits during a single data transfer
- B
A wider bus automatically increases the number of memory addresses
- C
A wider bus permanently increases the CPU’s clock frequency
- D
A wider bus prevents the use of control signals during memory access
Correct answer
AA wider bus can transfer more bits during a single data transfer
Explanation
The data bus width determines how many bits can be transferred at once and therefore directly affects system performance.
- A
- 22
During a memory read, how do the data-bus directions change?
- A
The CPU outputs data and the memory device receives it as an input
- B
The memory device outputs data and the CPU receives it as an input
- C
Both the CPU and memory device permanently output data
- D
Both the CPU and memory device permanently receive data
Correct answer
BThe memory device outputs data and the CPU receives it as an input
Explanation
During a read, the selected memory chip places data on the bus, and the CPU switches its data lines to input mode.
- A
- 23
What is an opcode?
- A
A hexadecimal label used only for input-output ports
- B
A machine-code instruction that tells the CPU to perform a task
- C
A binary address that identifies a physical memory chip
- D
A control signal that activates the address bus
Correct answer
BA machine-code instruction that tells the CPU to perform a task
Explanation
An opcode, operation code, or instruction is a machine-code command that directs the CPU to perform an operation.
- A
- 24
In the example, what does the value 112 represent when read from ROM?
- A
It represents the physical size of the ROM chip
- B
It represents the number of address lines in the CPU
- C
It represents an instruction for the CPU
- D
It represents the voltage level of the READ signal
Correct answer
CIt represents an instruction for the CPU
Explanation
The value 112 is presented as a sample byte that acts as a machine-code instruction.
- A
- 25
Why must a ROM chip respond to a READ signal even though it cannot be written?
- A
The signal tells ROM which address bus line should carry the MSB
- B
The signal gives ROM permission to modify its stored firmware
- C
The signal converts ROM into temporary read-write memory
- D
The signal tells ROM when to place the requested data on the data bus
Correct answer
DThe signal tells ROM when to place the requested data on the data bus
Explanation
The CPU uses READ for every memory read, and ROM uses the signal to know when to send the requested value.
- A
- 26
What is the size of one memory cell in the example with an 8-bit data bus?
- A
One kilobyte, equal to 1024 bits
- B
One word, equal to 16 bits
- C
One byte, equal to 8 bits
- D
One nibble, equal to 4 bits
Correct answer
COne byte, equal to 8 bits
Explanation
The example uses an 8-bit data bus, so one memory cell contains 8 bits, or one byte.
- A
- 27
What problem occurs when ROM and RAM are connected to the same buses without selection logic?
- A
Neither device can receive an address from the CPU
- B
The CPU loses the ability to generate binary signals
- C
Both devices automatically erase their contents
- D
Both devices may drive the data bus and cause a collision
Correct answer
DBoth devices may drive the data bus and cause a collision
Explanation
If both memory chips respond at once, their outputs conflict on the shared data bus.
- A
- 28
What is address decoding?
- A
A process that copies every memory cell into the CPU
- B
A method for converting hexadecimal numbers into decimal numbers
- C
A process that translates encrypted data into readable text
- D
Logic that activates a device when a particular address pattern appears
Correct answer
DLogic that activates a device when a particular address pattern appears
Explanation
Address decoding uses logic gates to detect selected address patterns and activate the corresponding device.
- A
- 29
Why is address space divided into fixed ranges?
- A
The CPU can access only one byte regardless of the address used
- B
Each memory or peripheral device must respond only to its assigned addresses
- C
The address bus can carry only hexadecimal values
- D
ROM and RAM must always contain identical data
Correct answer
BEach memory or peripheral device must respond only to its assigned addresses
Explanation
Dividing address space into fixed ranges allows the system to determine which device should respond to a given address.
- A
- 30
What determines the total size of a CPU’s address space?
- A
The number of control bus signals
- B
The number of address bus lines
- C
The number of devices connected to the data bus
- D
The number of instructions in the firmware
Correct answer
BThe number of address bus lines
Explanation
The address-space size is determined by the number of address lines; with n lines, the CPU can represent 2n addresses.
- A
- 31
What is the maximum address space of a CPU with 16 address lines?
- A
65,536 bytes, or 64 kilobytes
- B
32,768 bytes, or 32 kilobytes
- C
16,000 bytes, or 16 kilobytes
- D
131,072 bytes, or 128 kilobytes
Correct answer
A65,536 bytes, or 64 kilobytes
Explanation
A 16-line address bus represents 216=65,536 distinct addresses, corresponding to 64 kilobytes when each address identifies one byte.
- A
- 32
What are the lowest and highest addresses in a 16-bit address space?
- A
0 and 65,535
- B
1 and 65,535
- C
1 and 65,536
- D
0 and 65,536
Correct answer
A0 and 65,535
Explanation
The address space contains 65,536 addresses numbered from 0 through 65,535.
- A
- 33
In the simplified computer, which address ranges are assigned to ROM and RAM?
- A
ROM uses 32,768–65,535, and RAM uses 0–32,767
- B
ROM uses 0–32,767, and RAM uses 32,768–65,535
- C
ROM uses 0–16,383, and RAM uses 16,384–32,767
- D
ROM uses 32,768–49,151, and RAM uses 49,152–65,535
Correct answer
BROM uses 0–32,767, and RAM uses 32,768–65,535
Explanation
The example divides the 64-kilobyte space into two equal halves: lower addresses for ROM and upper addresses for RAM.
- A
- 34
Why is ROM commonly placed at the beginning of the address space?
- A
ROM requires more address lines than RAM
- B
RAM cannot be connected to addresses above zero
- C
The data bus can read ROM only at low addresses
- D
The CPU begins execution at address zero after reset
Correct answer
DThe CPU begins execution at address zero after reset
Explanation
Reset zeroes the program counter, so the first firmware instruction must be located at address 0.
- A
- 35
What does a CPU reset do to the program counter in the described system?
- A
It sets the program counter to the highest address
- B
It sets the program counter to zero
- C
It copies the program counter into RAM
- D
It disables the program counter permanently
Correct answer
BIt sets the program counter to zero
Explanation
When RESET occurs, the program counter is zeroed, causing execution to begin at address 0.
- A
- 36
What is the main advantage of hexadecimal notation in computer systems?
- A
It changes the physical number of wires in the data bus
- B
It eliminates the need for address decoding logic
- C
It allows memory to store more than 8 bits per byte
- D
It provides a compact representation of binary values
Correct answer
DIt provides a compact representation of binary values
Explanation
Hexadecimal simplifies binary representation by replacing each group of four binary bits with one hexadecimal digit.
- A
- 37
Which symbols are used as digits in hexadecimal notation?
- A
Only the digits 0–9
- B
The digits 0–7 and the letters X–Z
- C
The digits 1–9 and the letters G–P
- D
The digits 0–9 and the letters A–F
Correct answer
DThe digits 0–9 and the letters A–F
Explanation
Hexadecimal uses sixteen digits: 0 through 9 and A through F.
- A
- 38
How many hexadecimal digits represent an 8-bit value?
- A
Eight hexadecimal digits
- B
Four hexadecimal digits
- C
Two hexadecimal digits
- D
One hexadecimal digit
Correct answer
CTwo hexadecimal digits
Explanation
Each hexadecimal digit represents four bits, so 8 bits require 2 hexadecimal digits.
- A
- 39
How many hexadecimal digits represent a 16-bit value?
- A
Two hexadecimal digits
- B
Eight hexadecimal digits
- C
Sixteen hexadecimal digits
- D
Four hexadecimal digits
Correct answer
DFour hexadecimal digits
Explanation
Since each hexadecimal digit represents four bits, 16 bits require 4 hexadecimal digits.
- A
- 40
What is a nibble?
- A
A group of 16 bits
- B
A group of 8 bits
- C
A group of 4 bits
- D
A group of 32 bits
Correct answer
CA group of 4 bits
Explanation
In programming terminology, four bits are called a nibble.
- A
- 41
Which set of size terms is correctly matched with bit counts?
- A
Nibble: 4 bits, byte: 8 bits, word: 16 bits or more
- B
Nibble: 8 bits, byte: 4 bits, word: 32 bits only
- C
Nibble: 2 bits, byte: 16 bits, word: 64 bits only
- D
Nibble: 16 bits, byte: 8 bits, word: 4 bits
Correct answer
ANibble: 4 bits, byte: 8 bits, word: 16 bits or more
Explanation
The content defines a nibble as 4 bits, a byte as 8 bits, and a word as 16 bits and up.
- A
- 42
Which notation is valid for identifying a hexadecimal number in C?
- A
A suffix such as D, as in B000D
- B
A prefix such as bin, as in binB000
- C
A prefix such as 0x, as in 0xB000
- D
A suffix such as H, as in B000H
Correct answer
CA prefix such as 0x, as in 0xB000
Explanation
The C language uses the prefix 0x to designate hexadecimal values.
- A
- 43
How can the most significant address bit select ROM or RAM in the example?
- A
ROM is selected when A15=0, while RAM is selected when A15=1
- B
Both chips are selected when A15=1
- C
ROM is selected when A15=1, while RAM is selected when A15=0
- D
Both chips are selected when A15=0
Correct answer
AROM is selected when A15=0, while RAM is selected when A15=1
Explanation
Addresses below 0x8000 have A15=0 and select ROM; addresses at or above 0x8000 have A15=1 and select RAM.
- A
- 44
What is the purpose of the CS or CE signal on a memory chip?
- A
It carries the binary value being stored in the chip
- B
It identifies the least significant address bit
- C
It activates or enables the chip for an operation
- D
It changes the chip’s contents into hexadecimal notation
Correct answer
CIt activates or enables the chip for an operation
Explanation
CS, or CE, stands for Chip Select or Chip Enable and determines whether the memory IC is active.
- A
- 45
What happens to a memory chip’s outputs when its chip-select signal is inactive?
- A
Its outputs drive every data line to logic zero
- B
Its outputs automatically write the current address
- C
Its outputs enter a high-impedance, or Z, state
- D
Its outputs switch to permanent input mode
Correct answer
CIts outputs enter a high-impedance, or Z, state
Explanation
An inactive chip places its outputs in the Z-state, effectively disconnecting them from the shared bus.
- A
- 46
What does the term tri-state refer to in the described bus system?
- A
A memory cell that stores three binary digits
- B
An output that can represent high, low, or high-impedance states
- C
A control signal that is active at three voltage levels
- D
A bus that carries three addresses at the same time
Correct answer
BAn output that can represent high, low, or high-impedance states
Explanation
Tri-state outputs can drive logic high, drive logic low, or enter high impedance so they effectively disconnect.
- A
- 47
What does the OE signal control?
- A
Whether a memory chip is permitted to place data on the data bus
- B
Whether the CPU is permitted to generate a memory address
- C
Whether the address bus operates in decimal or hexadecimal
- D
Whether a device can permanently retain data without power
Correct answer
AWhether a memory chip is permitted to place data on the data bus
Explanation
OE means Output Enable. For RAM, an active OE indicates that data is being read from memory.
- A
- 48
How are the ROM and RAM chip-enable signals generated in the simplified circuit?
- A
ROM receives the inverted A15, while RAM receives A15 directly
- B
Both ROM and RAM receive the WRITE signal directly as chip enable
- C
Both ROM and RAM receive the READ signal directly as chip enable
- D
ROM receives A15 directly, while RAM receives its inverted value
Correct answer
DROM receives A15 directly, while RAM receives its inverted value
Explanation
The ROM CE line is connected directly to A15, while the RAM CE line is driven by an inverter, allowing opposite address halves to be selected.
- A
- 49
How are the read and write control signals connected in the example?
- A
READ connects only to RAM’s write-enable input, while WRITE connects to both chips’ OE inputs
- B
READ is unused, while WRITE connects only to the ROM’s write-enable input
- C
READ connects to both chips’ OE inputs, while WRITE connects to RAM’s write-enable input
- D
READ connects to both chips’ chip-enable inputs, while WRITE is unused everywhere
Correct answer
CREAD connects to both chips’ OE inputs, while WRITE connects to RAM’s write-enable input
Explanation
The READ signal is connected to both output-enable inputs, and WRITE is connected to RAM’s write-enable input; ROM does not use WRITE.
- A
- 50
What occurs immediately after reset in the simplified computer?
- A
The program counter is set to the highest address, and the CPU begins writing RAM
- B
The CPU fills the entire address space with zeros before executing
- C
The CPU disables ROM and waits for an input-output request
- D
The program counter and address lines are set to zero, and the CPU begins reading ROM
Correct answer
DThe program counter and address lines are set to zero, and the CPU begins reading ROM
Explanation
Reset zeroes the program counter, setting the address lines to zero; the CPU then asserts READ and fetches the first instruction from ROM.
- A
- 51
Why does RAM not interfere when the CPU reads address zero in the example?
- A
RAM receives a stronger READ signal than ROM
- B
RAM can never be connected to the address or data buses
- C
RAM is inactive and its data outputs are in the high-impedance state
- D
RAM automatically changes the requested address to a RAM address
Correct answer
CRAM is inactive and its data outputs are in the high-impedance state
Explanation
At address zero, A15 is low, so ROM is selected and RAM’s inverted chip-enable input is high; RAM’s outputs therefore remain disconnected.
- A
- 52
What happens when the CPU writes 0xAA to RAM address 0xB000?
- A
The CPU pulls READ low and asks ROM to place 0xAA on the bus
- B
The CPU resets the program counter and stores 0xAA in ROM
- C
The CPU places the address and data on their buses and pulls WRITE low
- D
The CPU places the address on the data bus and the value on the address bus
Correct answer
CThe CPU places the address and data on their buses and pulls WRITE low
Explanation
For the write, the CPU outputs address 0xB000, places 0xAA on the data bus, and asserts the active-low WRITE signal.
- A
- 53
Why is RAM selected when the CPU accesses address 0xB000?
- A
The address is below 0x8000, so its most significant address bit is low
- B
The address contains the hexadecimal digit B, which directly activates ROM
- C
The address is exactly zero, which always selects RAM
- D
The address is above 0x8000, so its most significant address bit is high
Correct answer
DThe address is above 0x8000, so its most significant address bit is high
Explanation
0xB000 lies in the upper half of the address space, so A15=1; the inverter consequently drives RAM’s active-low CE low.
- A
- 54
How does the CPU later read the value stored at RAM address 0xB000?
- A
It places 0xB000 on the data bus and pulls WRITE low
- B
It places 0xAA on the address bus and pulls READ high
- C
It places 0xB000 on the address bus and pulls READ low
- D
It resets the CPU and waits for ROM to copy the value
Correct answer
CIt places 0xB000 on the address bus and pulls READ low
Explanation
To read the stored value, the CPU outputs the address 0xB000 and asserts the active-low READ signal.
- A
- 55
What is VRAM in the described system?
- A
A control bus dedicated to transmitting video addresses
- B
RAM whose contents are used to determine what appears on the screen
- C
A special CPU register that stores only screen instructions
- D
ROM that stores the permanent firmware for the display
Correct answer
BRAM whose contents are used to determine what appears on the screen
Explanation
Video RAM is ordinary random-access memory with the special effect that writing to it changes the displayed screen contents.
- A
- 56
How are VRAM addresses typically mapped to screen locations?
- A
Lower addresses correspond to the upper-left, progressing toward the lower-right
- B
Addresses are assigned randomly so no spatial relationship exists
- C
Lower addresses correspond to the lower-right, progressing toward the upper-left
- D
All addresses correspond to the same screen location
Correct answer
ALower addresses correspond to the upper-left, progressing toward the lower-right
Explanation
VRAM cells are typically arranged from left to right and top to bottom, with the lowest address at the upper-left and the highest at the lower-right.
- A
- 57
How do input-output ports differ from memory in the described architecture?
- A
Ports require a completely separate address bus
- B
Ports cannot use read or write operations
- C
Ports use a separate decoded address space and separate machine-language instructions
- D
Ports are always stored permanently inside ROM
Correct answer
CPorts use a separate decoded address space and separate machine-language instructions
Explanation
The CPU accesses ports with read and write operations, but ports are decoded into a separate address space and use separate instructions.
- A
- 58
Which bus is shared by memory and input-output ports?
- A
Neither bus is shared
- B
The address bus
- C
Only the control bus
- D
Only the data bus
Correct answer
BThe address bus
Explanation
Ports use the same address bus as memory, although additional control signals distinguish the two address spaces.
- A
- 59
What is the purpose of MEMREQ and IOREQ signals?
- A
They determine whether data is stored in ROM or RAM permanently
- B
They distinguish binary addresses from hexadecimal addresses
- C
They distinguish memory requests from input-output requests
- D
They replace the address bus during all write operations
Correct answer
CThey distinguish memory requests from input-output requests
Explanation
MEMREQ and IOREQ are additional active-low control signals used to separate memory and input-output operations.
- A
- 60
Under what condition should a memory chip be enabled when MEMREQ is used?
- A
Only WRITE is active low, regardless of the requested address
- B
The chip’s address range is selected and IOREQ is active low
- C
Only the data bus contains a nonzero value
- D
The chip’s address range is selected and MEMREQ is active low
Correct answer
DThe chip’s address range is selected and MEMREQ is active low
Explanation
The memory chips can receive an active-low chip-enable condition only when the selected address range and the active-low MEMREQ signal both indicate a memory access.
- A
- 61
What component is used to implement the example’s 1-bit output port?
- A
A ROM memory cell
- B
A bidirectional address buffer
- C
A D-type flip-flop
- D
A hexadecimal decoder
Correct answer
CA D-type flip-flop
Explanation
The 1-bit output port is implemented with a D-type flip-flop whose data input is connected to the data bus.
- A
- 62
Why does the example output port require an eight-input AND gate?
- A
It must detect eight different control signals simultaneously
- B
It must convert an eight-bit binary value into hexadecimal
- C
It must detect the eight address lines all equal to one for address 0xFF
- D
It must combine eight data bytes before writing to the LED
Correct answer
CIt must detect the eight address lines all equal to one for address 0xFF
Explanation
The port address 0xFF is eight binary ones, so an eight-input AND gate detects that exact address pattern.
- A
- 63
Why must the output port decode IOREQ in addition to WRITE?
- A
To increase the data bus width from one bit to eight bits
- B
To ensure that port writes do not also affect a memory cell with the same address
- C
To allow the port to read data from ROM during reset
- D
To make the port respond to both memory and input-output writes
Correct answer
BTo ensure that port writes do not also affect a memory cell with the same address
Explanation
Without IOREQ decoding, a write to port 0xFF could also be interpreted as a write to memory address 0xFF.
- A
- 64
How does the example CPU instruction turn the LED on?
- A
It writes a value whose least significant data bit is 1 to port 0xFF
- B
It writes a value whose least significant data bit is 0 to memory address 0xFF
- C
It pulls READ low while leaving the data bus disconnected
- D
It reads a value whose most significant address bit is 1 from port 0xFF
Correct answer
AIt writes a value whose least significant data bit is 1 to port 0xFF
Explanation
The flip-flop input is connected to data line D0, so writing a value with D0=1 stores a one and illuminates the LED.
- A
- 65
How does the CPU turn the example LED off?
- A
It pulls the address bus low while writing a one to the port
- B
It performs a memory read from address zero
- C
It disables the data bus and asserts the ROM chip-enable signal
- D
It performs the same port-write operation but sends a value with D0=0
Correct answer
DIt performs the same port-write operation but sends a value with D0=0
Explanation
The LED is turned off by writing zero to the flip-flop port, causing its stored output bit to become zero.
- A
- 66
How do traditional ISA and PCI buses select individual expansion cards?
- A
Each card receives an entirely independent address bus from the CPU
- B
Cards share buses in parallel and use decoding on the expansion cards
- C
The CPU communicates with all cards only through ROM addresses
- D
Cards are selected randomly and identify themselves through the data bus
Correct answer
BCards share buses in parallel and use decoding on the expansion cards
Explanation
ISA and PCI use parallel bus connections, with decoding performed on the inserted expansion cards.
- A
- 67
What did configuring an ISA Sound Blaster’s address and interrupt line accomplish?
- A
It assigned the card a separate motherboard slot with private wires
- B
It increased the computer’s total number of address bus lines
- C
It changed the card’s physical memory from RAM into ROM
- D
It configured the settings used by the card’s decoder
Correct answer
DIt configured the settings used by the card’s decoder
Explanation
Setting the address and interrupt line configured the card’s decoder so the system could identify and communicate with it.
- A
- 68
What major bus-design change was introduced with PCI-Express?
- A
Expansion cards stopped using addresses and responded only to data values
- B
All expansion cards began sharing one parallel bus with card-based decoding
- C
Each motherboard slot has independent communication lines for its expansion board
- D
PCI-Express required all devices to be stored inside ROM
Correct answer
CEach motherboard slot has independent communication lines for its expansion board
Explanation
Unlike the shared-bus approach of ISA and PCI, PCI-Express provides independent communication lines from each motherboard slot to its installed board.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.