Chapter 2

Bits, Bytes, and Words

Computers store and process digital data. Numbers, text, images, sound, and video must be stored in memory before computers can process them.

We shall explain the organization of computer memory and how numbers, characters, and other data are represented with bit patterns. Binary numbers, modular arithmetic, US-ASCII, and Unicode character encoding will be covered.

2.1 Digital Computers

Modern computers are digital because they store and process discrete rather than continuous information.

  • Discrete data–Data are discrete when only certain distinct separate values are allowed. The number of chickens, letter grades, basketball scores, age, income, integers, fractions, and so on are examples. Discrete values have ...

Get From Computing to Computational Thinking now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.