cs paper 1

Cards (76)

  • The CPU is the central processing unit, it carries out program instructions using data
  • Components inside the CPU
    • ALU (Arithmetic Logic Unit)
    • Control Unit
    • Cache
    • Registers
  • ALU
    Carries out maths and logic operations needed to execute instructions
  • Control Unit
    Coordinates the fetch-execute cycle and decodes instructions
  • Cache
    Small, fast memory that holds frequently accessed items (instructions, data, addresses)
  • Special purpose registers
    • Memory Address Register (MAR)
    • Memory Data Register (MDR)
    • Program Counter
    • Accumulator
  • Fetch-Execute Cycle
    1. Fetch instruction from memory using Program Counter
    2. Decode instruction in Control Unit
    3. Execute instruction, fetch data if needed, write results
  • Clock speed
    Rate at which the fetch-execute cycle is carried out (in GHz)
  • CPU performance factors
    • Clock speed
    • Number of cores
    • Cache size
  • Embedded systems
    Computers built into other devices, usually with a single purpose
  • Types of storage
    • Primary (RAM, ROM)
    • Secondary (Magnetic, Optical, Solid-state)
  • RAM
    Volatile memory, contents lost when power is turned off
  • ROM
    Non-volatile memory, contains startup program
  • Hard Disk Drives (HDDs)

    • Large capacity, reliable, but fragile and noisy
  • Optical Discs
    • Portable, reliable, but easily damaged
  • Solid-State Drives (SSDs)
    • Fast, durable, but more expensive
  • Binary units
    • Bit
    • Nibble
    • Byte
    • Kilobyte
    • Megabyte
    • Gigabyte
    • Terabyte
  • Binary addition
    1. Carry 1 to next column if 1+1=0
    2. Carry 1 if 1+1+1=1
  • Binary shifts
    1. Left shift doubles the number
    2. Right shift halves the number
  • Overflow error

    Result takes up more storage space than is possible
  • ASCII
    1. bit character encoding, limited to 256 characters
  • Unicode
    16-bit (or more) character encoding, supports thousands of characters
  • Pixel
    Smallest unit of an image
  • Image resolution
    Number of pixels (width x height)
  • Color depth
    Number of bits per pixel
  • Metadata

    Data about data, essential information to recreate the image
  • Sample rate
    Number of sound samples taken per second
  • Bit depth
    Number of bits per sound sample
  • Lossy compression
    Deletes part of the file to reduce size, reduces quality
  • Lossless compression
    Rearranges the file to be more efficient, no quality loss
  • LAN (Local Area Network)

    Network over a small area, usually a single building
  • WAN (Wide Area Network)

    Network over a large area, with infrastructure owned by multiple entities
  • Client-server network
    Clients request, servers respond
  • Peer-to-peer network
    Devices can act as both clients and servers
  • Star topology
    • Central node that all devices connect to, easy to add new devices
  • Mesh topology
    • Devices connect directly to each other, complex but high performance
  • WAP (Wireless Access Point)

    Provides wireless network connection
  • Router
    Forwards packets between networks
  • NIC (Network Interface Card)
    Enables connection to network transmission media
  • MAC address
    Unique hardware address for network devices