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

  • 79Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: CPU and Memory
The central processor responsible for executing programs in a computing device is the
.

79 questions

  1. 1
    The central processor responsible for executing programs in a computing device is the
    _____
    .
    Hint

    It is the main processing component of a computer.

    Answer

    CPU

  2. 2
    As soon as power is applied, the CPU begins consuming executable code from
    _____
    memory.
    Hint

    The code is stored outside the processor itself.

    Answer

    external

  3. 3
    The CPU reads a program from memory
    _____
    by byte.
    Hint

    This is analogous to reading a book one unit at a time.

    Answer

    byte

  4. 4
    As long as power remains applied, program execution by the CPU continues
    _____
    .
    Hint

    The processor does not naturally stop while powered.

    Answer

    forever

  5. 5
    Computer memory is organized as an array of integer numbers called
    _____
    .
    Hint

    Each element can store a value from 0 to 255.

    Answer

    bytes

  6. 6
    A single byte can represent integer values from
    _____
    to 255.
    Hint

    Memory values use the full range of an unsigned eight-bit quantity.

    Answer

    0

  7. 7
    The ordinal number assigned to a memory cell is called its
    _____
    .
    Hint

    The CPU uses this value to identify a particular cell.

    Answer

    address

  8. 8
    Because memory numbering starts at zero, memory cell number 300 has address
    _____
    .
    Hint

    Subtract one from the cell number.

    Answer

    299

  9. 9
    The two basic types of computer memory described are read-only memory and
    _____
    access memory.
    Hint

    The abbreviation for this type is RAM.

    Answer

    random

  10. 10
    ROM usually contains pre-programmed code intended for the CPU to
    _____
    .
    Hint

    The CPU performs the commands stored in ROM.

    Answer

    execute

  11. 11
    RAM mostly contains temporary data generated by the CPU or loaded during program
    _____
    .
    Hint

    This is the process of running a program.

    Answer

    execution

  12. 12
    Unlike RAM, ROM can only be
    _____
    by the CPU.
    Hint

    Its name identifies the permitted operation.

    Answer

    read

  13. 13
    RAM can be both read and
    _____
    by the CPU.
    Hint

    Temporary working data must be changeable.

    Answer

    written to

  14. 14
    ROM retains its data when power is turned off, making it
    _____
    memory.
    Hint

    Its contents persist without power.

    Answer

    nonvolatile

  15. 15
    RAM is erased whenever power is
    _____
    .
    Hint

    Its contents do not survive loss of electrical power.

    Answer

    interrupted

  16. 16
    DIMM sticks installed in a personal computer are examples of
    _____
    .
    Hint

    They provide the system's temporary working memory.

    Answer

    RAM

  17. 17
    A computer's BIOS is stored in a
    _____
    chip.
    Hint

    It must retain its startup code when power is removed.

    Answer

    ROM

  18. 18
    The BIOS is a small program executed every time the system
    _____
    up.
    Hint

    This happens when the computer starts.

    Answer

    boots

  19. 19
    The proprietary software stored in the ROM of a specific device is called
    _____
    .
    Hint

    Its name suggests software closely associated with hardware.

    Answer

    firmware

  20. 20
    The communication system that carries memory cell addresses from the CPU is the
    _____
    bus.
    Hint

    It identifies which memory location is being accessed.

    Answer

    address

  21. 21
    The address bus uses electrical wires carrying
    _____
    values to encode addresses.
    Hint

    The values consist of ones and zeros.

    Answer

    binary

  22. 22
    A binary digit is also called a
    _____
    .
    Hint

    It can have the value zero or one.

    Answer

    bit

  23. 23
    For a 16-bit address, the least significant bit is placed on address line
    _____
    .
    Hint

    Address line numbering starts with zero.

    Answer

    A0

  24. 24
    For a 16-bit address, the most significant bit is placed on address line
    _____
    .
    Hint

    The highest line number in a zero-based group of 16 lines is used.

    Answer

    A15

  25. 25
    The address bus is
    _____
    because addresses travel from the CPU to external devices only.
    Hint

    The communication has only one direction.

    Answer

    unidirectional

  26. 26
    Devices on a computer motherboard are connected to the address bus in
    _____
    .
    Hint

    They share the same bus wires.

    Answer

    parallel

  27. 27
    The signaling system that indicates whether the CPU intends to read or write is the
    _____
    bus.
    Hint

    It carries operation-control signals.

    Answer

    control

  28. 28
    The two most important control-bus lines for memory operations are READ and
    _____
    .
    Hint

    They represent the two basic memory operations.

    Answer

    WRITE

  29. 29
    The bus that transfers data between the CPU and memory is the
    _____
    bus.
    Hint

    It carries the actual contents of memory cells.

    Answer

    data

  30. 30
    Unlike the address bus, the data bus is
    _____
    because data must travel in both directions.
    Hint

    The CPU both sends and receives data.

    Answer

    bidirectional

  31. 31
    A memory operation signal is active low when the CPU activates it by pulling the signal
    _____
    .
    Hint

    The word active describes the signal's zero-logic state.

    Answer

    low

  32. 32
    To request a read operation, the CPU pulls the READ line
    _____
    .
    Hint

    READ is an active-low control signal.

    Answer

    low

  33. 33
    To request a write operation, the CPU pulls the WRITE line
    _____
    .
    Hint

    WRITE is also active low.

    Answer

    low

  34. 34
    READ and WRITE are mutually exclusive because memory cannot be read and written
    _____
    .
    Hint

    The two operations cannot occur at the same time.

    Answer

    simultaneously

  35. 35
    The ROM needs a READ signal to know when to place requested data on the
    _____
    bus.
    Hint

    This bus carries the contents of the selected cell.

    Answer

    data

  36. 36
    The special activation signal on a memory chip is called CS, or Chip
    _____
    .
    Hint

    The abbreviation CS expands to two words.

    Answer

    Select

  37. 37
    The CS signal is also
    _____
    low.
    Hint

    It is asserted using logic zero.

    Answer

    active

  38. 38
    When a memory IC is inactive, its outputs enter the high-impedance, or
    _____
    state.
    Hint

    This state effectively disconnects the output pins.

    Answer

    Z-state

  39. 39
    Memory outputs in the high-impedance state are also called
    _____
    outputs.
    Hint

    The term describes a third electrical state besides zero and one.

    Answer

    tri-state

  40. 40
    OE is the control signal that stands for Output
    _____
    .
    Hint

    It permits a memory chip to drive the data bus.

    Answer

    Enable

  41. 41
    The mechanism that selects a memory device based on address patterns is called address
    _____
    .
    Hint

    It uses logic gates rather than encryption.

    Answer

    decoding

  42. 42
    An address decoder outputs logic zero when a specified pattern of ones and
    _____
    appears at its inputs.
    Hint

    The pattern consists of the two binary values.

    Answer

    zeros

  43. 43
    To prevent two memory chips from driving the data bus at once, each chip is assigned a fixed address
    _____
    .
    Hint

    Different portions of the total address space belong to different devices.

    Answer

    range

  44. 44
    The total address space of a CPU is determined by the number of
    _____
    bus lines.
    Hint

    More lines allow more distinct addresses.

    Answer

    address

  45. 45
    A CPU with 16 address lines can address 2162^{16}216 bytes, which equals
    _____
    bytes.
    Hint

    This is the number of distinct values represented by 16 binary bits.

    Answer

    65536

  46. 46
    In the 16-bit address-space example, the valid addresses run from 0 through
    _____
    .
    Hint

    The first of 65,536 addresses is zero.

    Answer

    65535

  47. 47
    In the example where ROM and RAM each occupy half of the address space, ROM occupies addresses 0 through
    _____
    .
    Hint

    ROM occupies the lower 32 kilobytes.

    Answer

    32767

  48. 48
    In the same example, RAM occupies addresses 32768 through
    _____
    .
    Hint

    RAM occupies the upper half of the address space.

    Answer

    65535

  49. 49
    ROM is commonly placed at the beginning of the address space because the CPU begins execution at address
    _____
    after reset.
    Hint

    Reset zeroes the program counter.

    Answer

    0

  50. 50
    The numbering system that uses digits 0 through 9 and letters A through F is
    _____
    .
    Hint

    It has 16 possible digit symbols.

    Answer

    hexadecimal

  51. 51
    Hexadecimal simplifies binary representation by replacing every group of
    _____
    binary digits with one hex digit.
    Hint

    A hex digit represents 16 possible values, matching four bits.

    Answer

    4

  52. 52
    Eight bits can be represented by
    _____
    hexadecimal digits.
    Hint

    Each hex digit represents four bits.

    Answer

    two

  53. 53
    Sixteen bits can be represented by
    _____
    hexadecimal digits.
    Hint

    Divide the bit count by four.

    Answer

    four

  54. 54
    In programming terminology, four bits are called a
    _____
    .
    Hint

    It is half of a byte.

    Answer

    nibble

  55. 55
    In programming terminology, eight bits are called a
    _____
    .
    Hint

    A memory cell in the example contains this many bits.

    Answer

    byte

  56. 56
    In C language, a hexadecimal number is conventionally marked with the prefix
    _____
    .
    Hint

    The prefix begins with zero followed by the letter x.

    Answer

    0x

  57. 57
    In assembly language, a hexadecimal number can be marked by appending the letter
    _____
    .
    Hint

    The letter stands for the word hex.

    Answer

    H

  58. 58
    The most significant address bit used to distinguish the example's ROM and RAM regions is line
    _____
    .
    Hint

    It is the highest line in a 16-line address bus.

    Answer

    A15

  59. 59
    In the example circuit, ROM is selected when the highest address line is
    _____
    .
    Hint

    ROM occupies addresses below 0x8000.

    Answer

    low

  60. 60
    In the example circuit, RAM is selected when the highest address line is
    _____
    .
    Hint

    RAM occupies addresses from 0x8000 through 0xFFFF.

    Answer

    high

  61. 61
    The logic gate used to produce the opposite selection signal for the RAM chip is an
    _____
    .
    Hint

    It changes a high input to low and a low input to high.

    Answer

    inverter

  62. 62
    The READ signal is connected to the Output Enable pins of
    _____
    memory chips.
    Hint

    Either ROM or RAM may be the source of a read.

    Answer

    both

  63. 63
    The WRITE signal is connected to the Write Enable input of the
    _____
    chip.
    Hint

    Only one of the two memory types supports writing.

    Answer

    RAM

  64. 64
    The control-bus signal used for input-output requests is
    _____
    .
    Hint

    Its name abbreviates input-output request.

    Answer

    IOREQ

  65. 65
    Memory and input-output ports use separate address spaces but share the same
    _____
    bus.
    Hint

    The CPU uses the same physical lines to specify locations.

    Answer

    address

  66. 66
    In the LED example, the one-bit output port is implemented using a D-type
    _____
    .
    Hint

    It stores one data bit when clocked.

    Answer

    flip-flop

  67. 67
    The LED output port is assigned address
    _____
    .
    Hint

    This address is eight binary ones.

    Answer

    0xFF

  68. 68
    An AND gate with
    _____
    inputs is used to detect the eight-bit address 0xFF.
    Hint

    One input corresponds to each address line from A0 through A7.

    Answer

    8

  69. 69
    To ensure the LED port responds only to output instructions, the circuit must decode the
    _____
    signal.
    Hint

    This signal distinguishes port operations from memory operations.

    Answer

    IOREQ

  70. 70
    Because the flip-flop input is connected to the least significant data line, the LED state is determined by
    _____
    .
    Hint

    This is the first data-bus line.

    Answer

    D0

  71. 71
    To turn the LED on, the CPU writes the value
    _____
    to port 0xFF.
    Hint

    A one represents the active LED state.

    Answer

    1

  72. 72
    To turn the LED off, the CPU writes the value
    _____
    to port 0xFF.
    Hint

    A zero clears the stored output bit.

    Answer

    0

  73. 73
    Video RAM is ordinary RAM in which writing data changes the contents of the computer
    _____
    .
    Hint

    It displays visual output.

    Answer

    screen

  74. 74
    VRAM cells are typically arranged from left to right and from
    _____
    to bottom according to screen position.
    Hint

    The first screen row begins at the upper edge.

    Answer

    top

  75. 75
    In the typical VRAM layout, the lowest address corresponds to the
    _____
    left corner of the screen.
    Hint

    It is the first position in the usual top-to-bottom order.

    Answer

    upper

  76. 76
    Keyboard, mouse, and gamepad connections are examples of input-output
    _____
    .
    Hint

    They provide a connection point for peripheral devices.

    Answer

    ports

  77. 77
    In traditional ISA and PCI systems, expansion slots are connected in
    _____
    .
    Hint

    They share communication lines rather than having fully independent connections.

    Answer

    parallel

  78. 78
    On an ISA Sound Blaster card, configuring its address and interrupt line was effectively configuring its
    _____
    chip.
    Hint

    The decoder determines which address belongs to the card.

    Answer

    decoder

  79. 79
    Starting with PCI-Express, each motherboard slot has independent communication lines for each installed
    _____
    board.
    Hint

    Graphics and sound cards belong to this category.

    Answer

    expansion

1 of 79
Question 1 of 79

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent