1. Home
  2. Explore
  3. Computer Science
  4. CPU and Memory Basics

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

CPU and Memory Basics

  • 68Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: CPU and Memory

What is the primary job of a CPU?

68 questions

  1. 1

    What is the primary job of a CPU?

    1. A

      To permanently store every program and data file

    2. B

      To provide electrical power to the computer system

    3. C

      To convert all digital signals into analog signals

    4. D

      To execute programs and machine-code instructions

    Correct answer
    D

    To 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.

  2. 2

    How does a CPU generally read a program from memory?

    1. A

      It reads the entire program simultaneously

    2. B

      It reads the program byte by byte in sequence

    3. C

      It reads only the final instruction in the program

    4. D

      It reads instructions randomly without using addresses

    Correct answer
    B

    It 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.

  3. 3

    What happens to program execution while power remains applied to a CPU circuit?

    1. A

      Execution continues unless an instruction or reset changes its operation

    2. B

      Execution stops whenever the CPU reads a value from ROM

    3. C

      Execution automatically stops after the program’s first pass

    4. D

      Execution pauses permanently after all RAM has been accessed

    Correct answer
    A

    Execution 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.

  4. 4

    What values can a memory byte represent?

    1. A

      Only binary values of 000 and 111

    2. B

      Integer values from 000 through 255255255

    3. C

      Integer values from 111 through 256256256

    4. D

      Integer values from 000 through $ fing

    Correct answer
    B

    Integer values from 000 through 255255255

    Explanation

    A byte is an array element that can hold an integer value from 000 to 255255255.

  5. 5

    Why is the address of the 300th memory cell equal to 299?

    1. A

      Memory addresses begin numbering at one but skip every tenth cell

    2. B

      Each address represents two memory cells

    3. C

      The CPU reserves address 300 for control signals

    4. D

      Memory addresses begin numbering at zero

    Correct answer
    D

    Memory addresses begin numbering at zero

    Explanation

    Because memory cells are numbered starting at zero, the 300th cell has ordinal address 299299299.

  6. 6

    Which statement best describes ROM?

    1. A

      ROM is generally used for temporary data and loses data without power

    2. B

      ROM is generally used for pre-programmed code and retains data without power

    3. C

      ROM can be freely read and written during normal operation

    4. D

      ROM is used only to connect external input-output devices

    Correct answer
    B

    ROM 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.

  7. 7

    Which statement best describes RAM?

    1. A

      RAM stores permanent firmware and can only be read

    2. B

      RAM contains only instructions that execute during boot

    3. C

      RAM stores temporary data and can be both read and written

    4. D

      RAM preserves all contents whenever the computer is turned off

    Correct answer
    C

    RAM 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.

  8. 8

    Which pairing is correct?

    1. A

      Both a DIMM stick and a BIOS chip are types of ROM

    2. B

      A DIMM stick is RAM, while a BIOS chip is ROM

    3. C

      Both a DIMM stick and a BIOS chip are types of RAM

    4. D

      A DIMM stick is ROM, while a BIOS chip is RAM

    Correct answer
    B

    A 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.

  9. 9

    What is BIOS primarily responsible for in the described system?

    1. A

      Converting every memory address into hexadecimal notation

    2. B

      Controlling only the brightness of the computer display

    3. C

      Executing a small program each time the system boots

    4. D

      Erasing RAM whenever a program finishes executing

    Correct answer
    C

    Executing 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.

  10. 10

    What is firmware in the simplified computer model?

    1. A

      A universal program that runs identically on every device

    2. B

      Temporary data generated by the CPU and stored in RAM

    3. C

      A physical wire that carries addresses from the CPU

    4. D

      Device-specific software stored in ROM for that device to execute

    Correct answer
    D

    Device-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.

  11. 11

    What is the address bus used for?

    1. A

      Transferring the contents of a memory cell to the CPU

    2. B

      Providing permanent storage for the CPU’s instructions

    3. C

      Indicating whether a memory operation is a read or write

    4. D

      Communicating the address of the memory cell the CPU wants to access

    Correct answer
    D

    Communicating 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.

  12. 12

    How is a memory address represented on an address bus?

    1. A

      As a pattern of ones and zeros on electrical wires

    2. B

      As a sequence of decimal digits printed on the memory chip

    3. C

      As a text label stored inside the requested memory cell

    4. D

      As a changing analog voltage with no binary interpretation

    Correct answer
    A

    As a pattern of ones and zeros on electrical wires

    Explanation

    The address bus uses electrical wires carrying binary signals to encode memory addresses.

  13. 13

    For a 16-bit address bus, which line carries the least significant bit of an address?

    1. A

      Line A1A1A1

    2. B

      Line A14A14A14

    3. C

      Line A0A0A0

    4. D

      Line A15A15A15

    Correct answer
    C

    Line A0A0A0

    Explanation

    Address numbering begins at zero, so the least significant bit is carried on address line A0A0A0.

  14. 14

    For a 16-bit address bus, which line carries the most significant bit of an address?

    1. A

      Line A0A0A0

    2. B

      Line A15A15A15

    3. C

      Line A7A7A7

    4. D

      Line A8A8A8

    Correct answer
    B

    Line A15A15A15

    Explanation

    A 16-bit address uses lines A0A0A0 through A15A15A15, with A15A15A15 carrying the most significant bit.

  15. 15

    Why is the address bus described as unidirectional?

    1. A

      Addresses travel only between RAM and ROM without involving the CPU

    2. B

      Addresses travel in both directions but only during write operations

    3. C

      Addresses travel from the CPU to external devices, not back to the CPU

    4. D

      Addresses travel from memory devices to the CPU, not in the opposite direction

    Correct answer
    C

    Addresses 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.

  16. 16

    What is the main purpose of the control bus?

    1. A

      To signal which type of operation the CPU wants to perform

    2. B

      To expand the number of address lines available to the CPU

    3. C

      To store the binary contents of every memory cell

    4. D

      To convert machine instructions into hexadecimal notation

    Correct answer
    A

    To signal which type of operation the CPU wants to perform

    Explanation

    The control bus carries signals that coordinate operations such as reading and writing.

  17. 17

    What do the RD and WR control signals indicate?

    1. A

      Whether the CPU is using ROM or RAM exclusively

    2. B

      Whether the address is represented in binary or hexadecimal

    3. C

      Whether a device is connected through ISA or PCI-Express

    4. D

      Whether the CPU is requesting a read or a write operation

    Correct answer
    D

    Whether the CPU is requesting a read or a write operation

    Explanation

    RD designates the read signal and WR designates the write signal.

  18. 18

    What does it mean that RD and WR are active low?

    1. A

      The signal changes meaning depending on whether ROM or RAM is used

    2. B

      The CPU activates the desired signal by raising it to logic one

    3. C

      The CPU activates the desired signal by pulling it to logic zero

    4. D

      The signal is active only when both lines are simultaneously high

    Correct answer
    C

    The 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.

  19. 19

    Why are the READ and WRITE signals mutually exclusive?

    1. A

      Only ROM can respond to READ while only RAM can respond to WRITE

    2. B

      The system does not perform reading and writing simultaneously

    3. C

      The data bus becomes permanently disconnected during a write

    4. D

      The address bus cannot carry an address during either operation

    Correct answer
    B

    The 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.

  20. 20

    What is the function of the data bus?

    1. A

      It selects which address range belongs to each memory chip

    2. B

      It transfers data between the CPU and memory or other devices

    3. C

      It identifies the instruction currently stored in the program counter

    4. D

      It supplies power to all devices connected to the motherboard

    Correct answer
    B

    It 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.

  21. 21

    Why does the width of the data bus affect system performance?

    1. A

      A wider bus can transfer more bits during a single data transfer

    2. B

      A wider bus automatically increases the number of memory addresses

    3. C

      A wider bus permanently increases the CPU’s clock frequency

    4. D

      A wider bus prevents the use of control signals during memory access

    Correct answer
    A

    A 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.

  22. 22

    During a memory read, how do the data-bus directions change?

    1. A

      The CPU outputs data and the memory device receives it as an input

    2. B

      The memory device outputs data and the CPU receives it as an input

    3. C

      Both the CPU and memory device permanently output data

    4. D

      Both the CPU and memory device permanently receive data

    Correct answer
    B

    The 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.

  23. 23

    What is an opcode?

    1. A

      A hexadecimal label used only for input-output ports

    2. B

      A machine-code instruction that tells the CPU to perform a task

    3. C

      A binary address that identifies a physical memory chip

    4. D

      A control signal that activates the address bus

    Correct answer
    B

    A 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.

  24. 24

    In the example, what does the value 112112112 represent when read from ROM?

    1. A

      It represents the physical size of the ROM chip

    2. B

      It represents the number of address lines in the CPU

    3. C

      It represents an instruction for the CPU

    4. D

      It represents the voltage level of the READ signal

    Correct answer
    C

    It represents an instruction for the CPU

    Explanation

    The value 112112112 is presented as a sample byte that acts as a machine-code instruction.

  25. 25

    Why must a ROM chip respond to a READ signal even though it cannot be written?

    1. A

      The signal tells ROM which address bus line should carry the MSB

    2. B

      The signal gives ROM permission to modify its stored firmware

    3. C

      The signal converts ROM into temporary read-write memory

    4. D

      The signal tells ROM when to place the requested data on the data bus

    Correct answer
    D

    The 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.

  26. 26

    What is the size of one memory cell in the example with an 8-bit data bus?

    1. A

      One kilobyte, equal to 102410241024 bits

    2. B

      One word, equal to 161616 bits

    3. C

      One byte, equal to 888 bits

    4. D

      One nibble, equal to 444 bits

    Correct answer
    C

    One byte, equal to 888 bits

    Explanation

    The example uses an 8-bit data bus, so one memory cell contains 888 bits, or one byte.

  27. 27

    What problem occurs when ROM and RAM are connected to the same buses without selection logic?

    1. A

      Neither device can receive an address from the CPU

    2. B

      The CPU loses the ability to generate binary signals

    3. C

      Both devices automatically erase their contents

    4. D

      Both devices may drive the data bus and cause a collision

    Correct answer
    D

    Both 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.

  28. 28

    What is address decoding?

    1. A

      A process that copies every memory cell into the CPU

    2. B

      A method for converting hexadecimal numbers into decimal numbers

    3. C

      A process that translates encrypted data into readable text

    4. D

      Logic that activates a device when a particular address pattern appears

    Correct answer
    D

    Logic 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.

  29. 29

    Why is address space divided into fixed ranges?

    1. A

      The CPU can access only one byte regardless of the address used

    2. B

      Each memory or peripheral device must respond only to its assigned addresses

    3. C

      The address bus can carry only hexadecimal values

    4. D

      ROM and RAM must always contain identical data

    Correct answer
    B

    Each 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.

  30. 30

    What determines the total size of a CPU’s address space?

    1. A

      The number of control bus signals

    2. B

      The number of address bus lines

    3. C

      The number of devices connected to the data bus

    4. D

      The number of instructions in the firmware

    Correct answer
    B

    The number of address bus lines

    Explanation

    The address-space size is determined by the number of address lines; with nnn lines, the CPU can represent 2n2^n2n addresses.

  31. 31

    What is the maximum address space of a CPU with 161616 address lines?

    1. A

      65,53665{,}53665,536 bytes, or 646464 kilobytes

    2. B

      32,76832{,}76832,768 bytes, or 323232 kilobytes

    3. C

      16,00016{,}00016,000 bytes, or 161616 kilobytes

    4. D

      131,072131{,}072131,072 bytes, or 128128128 kilobytes

    Correct answer
    A

    65,53665{,}53665,536 bytes, or 646464 kilobytes

    Explanation

    A 161616-line address bus represents 216=65,5362^{16} = 65{,}536216=65,536 distinct addresses, corresponding to 646464 kilobytes when each address identifies one byte.

  32. 32

    What are the lowest and highest addresses in a 161616-bit address space?

    1. A

      000 and 65,53565{,}53565,535

    2. B

      111 and 65,53565{,}53565,535

    3. C

      111 and 65,53665{,}53665,536

    4. D

      000 and 65,53665{,}53665,536

    Correct answer
    A

    000 and 65,53565{,}53565,535

    Explanation

    The address space contains 65,53665{,}53665,536 addresses numbered from 000 through 65,53565{,}53565,535.

  33. 33

    In the simplified computer, which address ranges are assigned to ROM and RAM?

    1. A

      ROM uses 32,76832{,}76832,768–65,53565{,}53565,535, and RAM uses 000–32,76732{,}76732,767

    2. B

      ROM uses 000–32,76732{,}76732,767, and RAM uses 32,76832{,}76832,768–65,53565{,}53565,535

    3. C

      ROM uses 000–16,38316{,}38316,383, and RAM uses 16,38416{,}38416,384–32,76732{,}76732,767

    4. D

      ROM uses 32,76832{,}76832,768–49,15149{,}15149,151, and RAM uses 49,15249{,}15249,152–65,53565{,}53565,535

    Correct answer
    B

    ROM uses 000–32,76732{,}76732,767, and RAM uses 32,76832{,}76832,768–65,53565{,}53565,535

    Explanation

    The example divides the 646464-kilobyte space into two equal halves: lower addresses for ROM and upper addresses for RAM.

  34. 34

    Why is ROM commonly placed at the beginning of the address space?

    1. A

      ROM requires more address lines than RAM

    2. B

      RAM cannot be connected to addresses above zero

    3. C

      The data bus can read ROM only at low addresses

    4. D

      The CPU begins execution at address zero after reset

    Correct answer
    D

    The CPU begins execution at address zero after reset

    Explanation

    Reset zeroes the program counter, so the first firmware instruction must be located at address 000.

  35. 35

    What does a CPU reset do to the program counter in the described system?

    1. A

      It sets the program counter to the highest address

    2. B

      It sets the program counter to zero

    3. C

      It copies the program counter into RAM

    4. D

      It disables the program counter permanently

    Correct answer
    B

    It sets the program counter to zero

    Explanation

    When RESET occurs, the program counter is zeroed, causing execution to begin at address 000.

  36. 36

    What is the main advantage of hexadecimal notation in computer systems?

    1. A

      It changes the physical number of wires in the data bus

    2. B

      It eliminates the need for address decoding logic

    3. C

      It allows memory to store more than 888 bits per byte

    4. D

      It provides a compact representation of binary values

    Correct answer
    D

    It provides a compact representation of binary values

    Explanation

    Hexadecimal simplifies binary representation by replacing each group of four binary bits with one hexadecimal digit.

  37. 37

    Which symbols are used as digits in hexadecimal notation?

    1. A

      Only the digits 000–999

    2. B

      The digits 000–777 and the letters XXX–ZZZ

    3. C

      The digits 111–999 and the letters GGG–PPP

    4. D

      The digits 000–999 and the letters AAA–FFF

    Correct answer
    D

    The digits 000–999 and the letters AAA–FFF

    Explanation

    Hexadecimal uses sixteen digits: 000 through 999 and AAA through FFF.

  38. 38

    How many hexadecimal digits represent an 888-bit value?

    1. A

      Eight hexadecimal digits

    2. B

      Four hexadecimal digits

    3. C

      Two hexadecimal digits

    4. D

      One hexadecimal digit

    Correct answer
    C

    Two hexadecimal digits

    Explanation

    Each hexadecimal digit represents four bits, so 888 bits require 222 hexadecimal digits.

  39. 39

    How many hexadecimal digits represent a 161616-bit value?

    1. A

      Two hexadecimal digits

    2. B

      Eight hexadecimal digits

    3. C

      Sixteen hexadecimal digits

    4. D

      Four hexadecimal digits

    Correct answer
    D

    Four hexadecimal digits

    Explanation

    Since each hexadecimal digit represents four bits, 161616 bits require 444 hexadecimal digits.

  40. 40

    What is a nibble?

    1. A

      A group of 161616 bits

    2. B

      A group of 888 bits

    3. C

      A group of 444 bits

    4. D

      A group of 323232 bits

    Correct answer
    C

    A group of 444 bits

    Explanation

    In programming terminology, four bits are called a nibble.

  41. 41

    Which set of size terms is correctly matched with bit counts?

    1. A

      Nibble: 444 bits, byte: 888 bits, word: 161616 bits or more

    2. B

      Nibble: 888 bits, byte: 444 bits, word: 323232 bits only

    3. C

      Nibble: 222 bits, byte: 161616 bits, word: 646464 bits only

    4. D

      Nibble: 161616 bits, byte: 888 bits, word: 444 bits

    Correct answer
    A

    Nibble: 444 bits, byte: 888 bits, word: 161616 bits or more

    Explanation

    The content defines a nibble as 444 bits, a byte as 888 bits, and a word as 161616 bits and up.

  42. 42

    Which notation is valid for identifying a hexadecimal number in C?

    1. A

      A suffix such as DDD, as in B000DB000DB000D

    2. B

      A prefix such as binbinbin, as in binB000binB000binB000

    3. C

      A prefix such as 0x0x0x, as in 0xB0000xB0000xB000

    4. D

      A suffix such as HHH, as in B000HB000HB000H

    Correct answer
    C

    A prefix such as 0x0x0x, as in 0xB0000xB0000xB000

    Explanation

    The C language uses the prefix 0x0x0x to designate hexadecimal values.

  43. 43

    How can the most significant address bit select ROM or RAM in the example?

    1. A

      ROM is selected when A15=0A15=0A15=0, while RAM is selected when A15=1A15=1A15=1

    2. B

      Both chips are selected when A15=1A15=1A15=1

    3. C

      ROM is selected when A15=1A15=1A15=1, while RAM is selected when A15=0A15=0A15=0

    4. D

      Both chips are selected when A15=0A15=0A15=0

    Correct answer
    A

    ROM is selected when A15=0A15=0A15=0, while RAM is selected when A15=1A15=1A15=1

    Explanation

    Addresses below 0x80000x80000x8000 have A15=0A15=0A15=0 and select ROM; addresses at or above 0x80000x80000x8000 have A15=1A15=1A15=1 and select RAM.

  44. 44

    What is the purpose of the CS or CE signal on a memory chip?

    1. A

      It carries the binary value being stored in the chip

    2. B

      It identifies the least significant address bit

    3. C

      It activates or enables the chip for an operation

    4. D

      It changes the chip’s contents into hexadecimal notation

    Correct answer
    C

    It 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.

  45. 45

    What happens to a memory chip’s outputs when its chip-select signal is inactive?

    1. A

      Its outputs drive every data line to logic zero

    2. B

      Its outputs automatically write the current address

    3. C

      Its outputs enter a high-impedance, or Z, state

    4. D

      Its outputs switch to permanent input mode

    Correct answer
    C

    Its 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.

  46. 46

    What does the term tri-state refer to in the described bus system?

    1. A

      A memory cell that stores three binary digits

    2. B

      An output that can represent high, low, or high-impedance states

    3. C

      A control signal that is active at three voltage levels

    4. D

      A bus that carries three addresses at the same time

    Correct answer
    B

    An 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.

  47. 47

    What does the OE signal control?

    1. A

      Whether a memory chip is permitted to place data on the data bus

    2. B

      Whether the CPU is permitted to generate a memory address

    3. C

      Whether the address bus operates in decimal or hexadecimal

    4. D

      Whether a device can permanently retain data without power

    Correct answer
    A

    Whether 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.

  48. 48

    How are the ROM and RAM chip-enable signals generated in the simplified circuit?

    1. A

      ROM receives the inverted A15A15A15, while RAM receives A15A15A15 directly

    2. B

      Both ROM and RAM receive the WRITE signal directly as chip enable

    3. C

      Both ROM and RAM receive the READ signal directly as chip enable

    4. D

      ROM receives A15A15A15 directly, while RAM receives its inverted value

    Correct answer
    D

    ROM receives A15A15A15 directly, while RAM receives its inverted value

    Explanation

    The ROM CE line is connected directly to A15A15A15, while the RAM CE line is driven by an inverter, allowing opposite address halves to be selected.

  49. 49

    How are the read and write control signals connected in the example?

    1. A

      READ connects only to RAM’s write-enable input, while WRITE connects to both chips’ OE inputs

    2. B

      READ is unused, while WRITE connects only to the ROM’s write-enable input

    3. C

      READ connects to both chips’ OE inputs, while WRITE connects to RAM’s write-enable input

    4. D

      READ connects to both chips’ chip-enable inputs, while WRITE is unused everywhere

    Correct answer
    C

    READ 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.

  50. 50

    What occurs immediately after reset in the simplified computer?

    1. A

      The program counter is set to the highest address, and the CPU begins writing RAM

    2. B

      The CPU fills the entire address space with zeros before executing

    3. C

      The CPU disables ROM and waits for an input-output request

    4. D

      The program counter and address lines are set to zero, and the CPU begins reading ROM

    Correct answer
    D

    The 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.

  51. 51

    Why does RAM not interfere when the CPU reads address zero in the example?

    1. A

      RAM receives a stronger READ signal than ROM

    2. B

      RAM can never be connected to the address or data buses

    3. C

      RAM is inactive and its data outputs are in the high-impedance state

    4. D

      RAM automatically changes the requested address to a RAM address

    Correct answer
    C

    RAM is inactive and its data outputs are in the high-impedance state

    Explanation

    At address zero, A15A15A15 is low, so ROM is selected and RAM’s inverted chip-enable input is high; RAM’s outputs therefore remain disconnected.

  52. 52

    What happens when the CPU writes 0xAA0xAA0xAA to RAM address 0xB0000xB0000xB000?

    1. A

      The CPU pulls READ low and asks ROM to place 0xAA0xAA0xAA on the bus

    2. B

      The CPU resets the program counter and stores 0xAA0xAA0xAA in ROM

    3. C

      The CPU places the address and data on their buses and pulls WRITE low

    4. D

      The CPU places the address on the data bus and the value on the address bus

    Correct answer
    C

    The CPU places the address and data on their buses and pulls WRITE low

    Explanation

    For the write, the CPU outputs address 0xB0000xB0000xB000, places 0xAA0xAA0xAA on the data bus, and asserts the active-low WRITE signal.

  53. 53

    Why is RAM selected when the CPU accesses address 0xB0000xB0000xB000?

    1. A

      The address is below 0x80000x80000x8000, so its most significant address bit is low

    2. B

      The address contains the hexadecimal digit BBB, which directly activates ROM

    3. C

      The address is exactly zero, which always selects RAM

    4. D

      The address is above 0x80000x80000x8000, so its most significant address bit is high

    Correct answer
    D

    The address is above 0x80000x80000x8000, so its most significant address bit is high

    Explanation

    0xB0000xB0000xB000 lies in the upper half of the address space, so A15=1A15=1A15=1; the inverter consequently drives RAM’s active-low CE low.

  54. 54

    How does the CPU later read the value stored at RAM address 0xB0000xB0000xB000?

    1. A

      It places 0xB0000xB0000xB000 on the data bus and pulls WRITE low

    2. B

      It places 0xAA0xAA0xAA on the address bus and pulls READ high

    3. C

      It places 0xB0000xB0000xB000 on the address bus and pulls READ low

    4. D

      It resets the CPU and waits for ROM to copy the value

    Correct answer
    C

    It places 0xB0000xB0000xB000 on the address bus and pulls READ low

    Explanation

    To read the stored value, the CPU outputs the address 0xB0000xB0000xB000 and asserts the active-low READ signal.

  55. 55

    What is VRAM in the described system?

    1. A

      A control bus dedicated to transmitting video addresses

    2. B

      RAM whose contents are used to determine what appears on the screen

    3. C

      A special CPU register that stores only screen instructions

    4. D

      ROM that stores the permanent firmware for the display

    Correct answer
    B

    RAM 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.

  56. 56

    How are VRAM addresses typically mapped to screen locations?

    1. A

      Lower addresses correspond to the upper-left, progressing toward the lower-right

    2. B

      Addresses are assigned randomly so no spatial relationship exists

    3. C

      Lower addresses correspond to the lower-right, progressing toward the upper-left

    4. D

      All addresses correspond to the same screen location

    Correct answer
    A

    Lower 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.

  57. 57

    How do input-output ports differ from memory in the described architecture?

    1. A

      Ports require a completely separate address bus

    2. B

      Ports cannot use read or write operations

    3. C

      Ports use a separate decoded address space and separate machine-language instructions

    4. D

      Ports are always stored permanently inside ROM

    Correct answer
    C

    Ports 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.

  58. 58

    Which bus is shared by memory and input-output ports?

    1. A

      Neither bus is shared

    2. B

      The address bus

    3. C

      Only the control bus

    4. D

      Only the data bus

    Correct answer
    B

    The address bus

    Explanation

    Ports use the same address bus as memory, although additional control signals distinguish the two address spaces.

  59. 59

    What is the purpose of MEMREQ and IOREQ signals?

    1. A

      They determine whether data is stored in ROM or RAM permanently

    2. B

      They distinguish binary addresses from hexadecimal addresses

    3. C

      They distinguish memory requests from input-output requests

    4. D

      They replace the address bus during all write operations

    Correct answer
    C

    They 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.

  60. 60

    Under what condition should a memory chip be enabled when MEMREQ is used?

    1. A

      Only WRITE is active low, regardless of the requested address

    2. B

      The chip’s address range is selected and IOREQ is active low

    3. C

      Only the data bus contains a nonzero value

    4. D

      The chip’s address range is selected and MEMREQ is active low

    Correct answer
    D

    The 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.

  61. 61

    What component is used to implement the example’s 1-bit output port?

    1. A

      A ROM memory cell

    2. B

      A bidirectional address buffer

    3. C

      A D-type flip-flop

    4. D

      A hexadecimal decoder

    Correct answer
    C

    A 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.

  62. 62

    Why does the example output port require an eight-input AND gate?

    1. A

      It must detect eight different control signals simultaneously

    2. B

      It must convert an eight-bit binary value into hexadecimal

    3. C

      It must detect the eight address lines all equal to one for address 0xFF0xFF0xFF

    4. D

      It must combine eight data bytes before writing to the LED

    Correct answer
    C

    It must detect the eight address lines all equal to one for address 0xFF0xFF0xFF

    Explanation

    The port address 0xFF0xFF0xFF is eight binary ones, so an eight-input AND gate detects that exact address pattern.

  63. 63

    Why must the output port decode IOREQ in addition to WRITE?

    1. A

      To increase the data bus width from one bit to eight bits

    2. B

      To ensure that port writes do not also affect a memory cell with the same address

    3. C

      To allow the port to read data from ROM during reset

    4. D

      To make the port respond to both memory and input-output writes

    Correct answer
    B

    To ensure that port writes do not also affect a memory cell with the same address

    Explanation

    Without IOREQ decoding, a write to port 0xFF0xFF0xFF could also be interpreted as a write to memory address 0xFF0xFF0xFF.

  64. 64

    How does the example CPU instruction turn the LED on?

    1. A

      It writes a value whose least significant data bit is 111 to port 0xFF0xFF0xFF

    2. B

      It writes a value whose least significant data bit is 000 to memory address 0xFF0xFF0xFF

    3. C

      It pulls READ low while leaving the data bus disconnected

    4. D

      It reads a value whose most significant address bit is 111 from port 0xFF0xFF0xFF

    Correct answer
    A

    It writes a value whose least significant data bit is 111 to port 0xFF0xFF0xFF

    Explanation

    The flip-flop input is connected to data line D0D0D0, so writing a value with D0=1D0=1D0=1 stores a one and illuminates the LED.

  65. 65

    How does the CPU turn the example LED off?

    1. A

      It pulls the address bus low while writing a one to the port

    2. B

      It performs a memory read from address zero

    3. C

      It disables the data bus and asserts the ROM chip-enable signal

    4. D

      It performs the same port-write operation but sends a value with D0=0D0=0D0=0

    Correct answer
    D

    It performs the same port-write operation but sends a value with D0=0D0=0D0=0

    Explanation

    The LED is turned off by writing zero to the flip-flop port, causing its stored output bit to become zero.

  66. 66

    How do traditional ISA and PCI buses select individual expansion cards?

    1. A

      Each card receives an entirely independent address bus from the CPU

    2. B

      Cards share buses in parallel and use decoding on the expansion cards

    3. C

      The CPU communicates with all cards only through ROM addresses

    4. D

      Cards are selected randomly and identify themselves through the data bus

    Correct answer
    B

    Cards 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.

  67. 67

    What did configuring an ISA Sound Blaster’s address and interrupt line accomplish?

    1. A

      It assigned the card a separate motherboard slot with private wires

    2. B

      It increased the computer’s total number of address bus lines

    3. C

      It changed the card’s physical memory from RAM into ROM

    4. D

      It configured the settings used by the card’s decoder

    Correct answer
    D

    It 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.

  68. 68

    What major bus-design change was introduced with PCI-Express?

    1. A

      Expansion cards stopped using addresses and responded only to data values

    2. B

      All expansion cards began sharing one parallel bus with card-based decoding

    3. C

      Each motherboard slot has independent communication lines for its expansion board

    4. D

      PCI-Express required all devices to be stored inside ROM

    Correct answer
    C

    Each 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.

Question 1 of 68
Question 1 of 68

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent