CS 110A Lecture Notes - Computer Basics - Chapter 1

Hardware and Software

5 Main Components of Computer Hardware

  1. Central Processing Unit (CPU) - Fetches and follows instructions, and does simple arithmetic calculations. (Following simple instructions given to it.)
  2. Main Memory (RAM) - A silicon-wired card inside the computer box containing huge numbers of numbered memory locations (bits organized into bytes). High speed, low capacity. Volatile (memory is lost when power shuts down).
    • bit - a binary number; either 0 or 1. Stored electronically with 0 meaning off (no power flowing through a circuit) and 1 meaning on (power flowing).
    • Because computer memory is based upon this principle of 2 possible states, it's useful to work with powers of 2 for computer memory.
    • byte - 8 bits, giving 28 (256) possible values - a more useful unit of measure
    • memory address - The location of the first byte of memory used for a variable. Stored numerically, often in hexidecimal (base 16) format.
  3. Secondary Memory - Hard drive, flash memory, CD-ROM, etc. Low speed, high capacity. Non- volatile (nothing lost when power is cut.)
  4. Input Device - Keyboard Mouse, etc. (input stream)
  5. Output Device - Screen, Printer, etc. (output stream)

Making Software Work

Question: Is Python Interpreted or Compiled?

Here is a discussion on StackOverflow

Here is an historical Glossary of Programming Languages

Python Interpreters

Software Development