Chapter 1 3
Chapter 1 3
Figure 1:3
Main Memory
• It is volatile. Main memory is erased when program terminates or
computer is turned off
• Also called Random Access Memory (RAM)
• Organized as follows:
• bit: smallest piece of memory. Has values 0 (off, false) or 1
(on, true)
• byte: 8 consecutive bits. Bytes have addresses.
• Addresses – Each byte in memory is identified by a unique number
known as an address.
Main Memory
In Figure 1-4, the number 149 is stored in the byte with the
address 16, and the number 72 is stored at address 23.
Secondary Storage
• Non-volatile: data retained when program is not running or
computer is turned off
• Comes in a variety of media:
• magnetic: traditional hard drives that use a moveable
mechanical arm to read/write
• solid-state: data stored in chips, no moving parts
• optical: CD-ROM, DVD
• Flash drives, connected to the USB port
Input Devices
• Devices that send information to the computer from outside
• Many devices can provide input:
• Keyboard, mouse, touchscreen, scanner, digital camera,
microphone
• Disk drives, CD drives, and DVD drives
1.3
1011010000000101
• For example, the word double specifies that the variables can
hold double-precision floating point numbers. (You will learn more
about that in Chapter 2)
1.5