MGU Computer Science Series — Computer Science Foundations
Part I: What Computer Science Studies
Input · Processing · Output · Storage · Digital · Programs
Chapter 2 of 28
MGU Computer Science Series  ·  Computer Science Foundations  ·  Library Textbook Edition

Chapter 2:
Computers, Information,
and Computation

What a computer is, how information becomes data, how machines process instructions, and how computing systems fit into the modern world

■ Part I: What Computer Science Studies ■

■ 9 Sections  •  Chapter 2 of 28 ■

Follows Chapter 1: What Computer Science Studies  ·  Prepares students for Chapter 3: Problem Solving and Computational Thinking

Purpose and Overview

This chapter introduces the basic ideas that make a computer a computer. By the end of it, you should understand what a computer actually is at a functional level, how computers process information according to instructions, and why the distinction between hardware, software, and information matters for everything else in this course.

This chapter covers input, processing, output, and storage as the four fundamental operations of every computing system. It explains what makes information digital, how stored programs work, how devices from laptops to thermostats share a common computing logic, and how computing systems fit into the larger connected world.

The goal is not deep technical detail. The goal is an accurate mental model. Students who finish this chapter should be able to look at any computing device—a phone, a game console, a traffic sensor, a hospital monitor—and describe what it takes in, what it processes, what it produces, and where it stores information.

Opening Question

You use computers constantly—but could you explain what a computer actually is? What makes your phone a computer? What makes a microwave a computer? What is the difference between the device, the information it handles, and the instructions it follows? By the end of this chapter, you will have a precise and useful answer to all three questions.

9Sections
10Objectives
30+Key Terms
5Diagram Activities

Learning Objectives

  1. 1Define computer precisely and explain the difference between the machine, its information, and its instructions.
  2. 2Identify the four components of the IPO model — input, processing, output, and storage — and give examples of each.
  3. 3Apply the IPO model to a variety of real computing tasks and devices.
  4. 4Distinguish between data and information, and give examples of each form of data a computer can represent.
  5. 5Explain the difference between analog and digital information and describe how analog signals are converted to digital form.
  6. 6Explain what a computer instruction is and describe computation as a process of transformation.
  7. 7Explain the stored-program concept and describe the fetch-decode-execute cycle.
  8. 8Classify and compare different kinds of computing devices, including personal computers, servers, and embedded systems.
  9. 9Describe what an embedded system is and give examples from everyday life.
  10. 10Describe how computing systems connect and operate at scale in the modern world.

Sections at a Glance

Sections 2.1 – 2.3
What Computers Are and What They Work With
Definition · The IPO Model · Data and Information

What a Computer Is

The word computer originally described a person. From the 1600s through the mid-twentieth century, human computers were people employed to perform calculations by hand—astronomers computing planetary positions, engineers calculating bridge loads, military teams working out artillery trajectories. The job demanded precision, patience, and the ability to follow a procedure accurately and without deviation.

When the first electronic computers appeared in the 1940s, they inherited this name because they did the same kind of work: following procedures precisely and producing results from given inputs. The machines replaced human labor on repetitive, rule-bound tasks. The essential idea—follow instructions, process information, produce output—remained exactly the same.

A modern computer is a machine that processes information according to instructions. That definition is short. Every word in it matters.

WordWhat it means
MachineA physical device with electronic circuits, memory, chips, and wires that uses energy to operate. A computer is not a concept — it is a thing you can hold or touch.
ProcessesThe computer actively transforms information. It performs operations: adding numbers, comparing values, rearranging data, applying rules, sending signals.
InformationThe raw material — numbers, text, images, sounds, measurements, or any other content that can be encoded in a form the machine can handle.
According to instructionsThe computer follows a stored, changeable program. The same hardware can do completely different things when given different instructions.
What "computer" does not mean

A computer is not only a desktop or laptop. A smartphone, game console, the controller in a washing machine, the navigation unit in a car, a hospital monitor, a smart thermostat, and a server in a data center are all computers. They differ in size, power, and purpose. They share the same fundamental logic.

Students sometimes believe computers are intelligent, creative, or aware. They are not. Computers follow instructions. When a computer produces output that seems clever, it is because the people who programmed it were clever. The machine executes those instructions faithfully. Chapter 26 will return to this question carefully when the textbook reaches artificial intelligence.

Computation means performing a well-defined process on information to produce a result. Computer science is the study of what can be computed, how to compute it efficiently, and how to build systems that do so reliably.

Practice 2.1Concept Check
  1. State the definition of a computer given in this section. Then explain, in your own words, why each part of the definition matters.
  2. Is a traffic signal controller a computer? Apply the definition to justify your answer.
  3. A student says: "My smartwatch is not a computer — it's just a watch that shows notifications." Explain what is incorrect about this statement.
  4. What does "according to instructions" add to the definition that "processes information" alone would not capture?

Input, Processing, Output, and Storage

Every computing system, from the simplest embedded controller to the most powerful supercomputer, can be described using four fundamental operations: input, processing, output, and storage. This framework is called the IPO model. It is one of the most useful mental tools in computer science because it applies to almost every computing situation you will encounter.

The Four Components

Input — information entering the system from outside. A keyboard, microphone, camera, sensor, or network connection can deliver input.

Processing — transformation of information by the CPU. Arithmetic, logic, comparisons, data movement, and control flow all happen here.

Output — information leaving the system. A display, speaker, printer, network connection, or actuator receives output.

Storage — information that persists over time. RAM holds data temporarily while a program runs; secondary storage (drives) holds data permanently.

┌─────────────────────────────────────────────────────────────────────────┐
│                          COMPUTING SYSTEM                                │
│                                                                          │
│  ┌──────────────┐     ┌──────────────────┐     ┌──────────────────────┐ │
│  │    INPUT     │────▶│   PROCESSING     │────▶│       OUTPUT         │ │
│  │              │     │      (CPU)       │     │                      │ │
│  │  keyboard    │     │                  │     │  display             │ │
│  │  mouse       │     │  arithmetic      │     │  speakers            │ │
│  │  camera      │     │  logic           │     │  printer             │ │
│  │  microphone  │     │  comparisons     │     │  network             │ │
│  │  sensors     │     │  data movement   │     │  motors / actuators  │ │
│  │  network     │     │  control flow    │     │                      │ │
│  └──────────────┘     └────────┬─────────┘     └──────────────────────┘ │
│                                │  ▲                                      │
│                                ▼  │                                      │
│                      ┌──────────────────┐                               │
│                      │    STORAGE       │                               │
│                      │                  │                               │
│                      │  RAM (fast,      │                               │
│                      │  temporary)      │                               │
│                      │                  │                               │
│                      │  Disk / SSD      │                               │
│                      │  (slower,        │                               │
│                      │  permanent)      │                               │
│                      └──────────────────┘                               │
└─────────────────────────────────────────────────────────────────────────┘

The two kinds of storage

Primary storage — also called main memory or RAM — holds programs and data while they are actively being used. RAM is fast: the CPU can read and write it in billionths of a second. But it is temporary. When you turn off a computer, everything in RAM disappears. An unsaved document lives only in RAM until you save it.

Secondary storage — hard drives, solid-state drives, USB drives, optical discs — holds information permanently, surviving power-off. Secondary storage is slower than RAM but holds far more data and retains it indefinitely. A program stored on a drive is an executable file. When you launch it, the operating system copies its instructions into RAM, where the CPU can run them.

Common Confusion

RAM and secondary storage are both called "memory" in casual speech, which causes confusion. In precise computing language: memory means RAM (fast, temporary), and storage means drives (slower, permanent). More RAM lets a computer run more programs at once. More storage lets a computer hold more files. These are different things.

Applying the IPO model

A useful habit is to take any computing task and identify all four components. The table below applies the model to three everyday examples.

TaskInputProcessingOutputStorage
Calculator app Numbers and operations tapped on screen Arithmetic performed by CPU Result displayed on screen Running program in RAM; saved history on drive
Streaming a song Audio file read from server over network Decoding compressed audio data Sound through speakers Audio data buffered in RAM; file on server's drive
Sending a text Text typed by user; tap on Send Encoding message, preparing network packets Data transmitted through network Message saved in app's history on device storage
Practice 2.2IPO Model Practice
  1. Apply the IPO model to using a GPS navigation app. Identify at least two inputs, describe the processing, list at least two outputs, and identify what is stored in RAM versus what is on secondary storage.
  2. Why does storage connect to processing with arrows pointing in both directions in the diagram above? Explain with a concrete example.
  3. A network connection can provide input to a computer and also carry output from it. Give one example of the network connection acting as input and one example of it acting as output for the same device.
  4. If a user is writing an essay and the computer loses power before they save, which component of the IPO model held the unsaved work? What happens to that content when power is lost?

Information and Data

The words data and information are used interchangeably in everyday life. In computer science it is worth being precise about the difference.

Data is raw recorded values. A temperature sensor that records 98.6 has produced data. A database table of thousands of numeric entries contains data. Data is the raw material — it exists before anyone interprets it.

Information is data that has been interpreted in a context to produce meaning. When a physician reads 98.6°F and understands it as a normal adult body temperature, the data has become information. When a business analyst reads zip code data and identifies which neighborhoods its customers live in, data has become information.

This distinction matters because computers process data. Giving meaning to that data — drawing conclusions, making decisions, acting on patterns — is primarily a human activity, though computers increasingly assist with this process.

Forms of data

FormDescriptionExamples
NumericIntegers and real numbers for calculation and measurementAge, price, temperature, distance
TextCharacters, words, sentences, documentsMessages, web pages, documents
BooleanExactly two values: true or false (also 1 or 0)A switch state; a login check result
ImageGrids of color values representing visual informationPhotos, icons, video frames
AudioSequences of pressure measurements representing soundMusic, voice recordings, alerts
VideoSequences of images combined with audioFilms, screen recordings, calls
StructuredData in rows and columns with predictable formatSpreadsheets, database tables
UnstructuredData without predictable format; harder to process automaticallyFree-form email, audio files, photos
Data and meaning

A computer does not inherently know what data means. The pattern of bits 01000001 could represent the number 65, the letter A, or a shade of dark gray in an image — depending on context. This is not a flaw; it is what allows one physical machine to serve as a word processor, a video player, and a game at different times.

Practice 2.3Data and Information
  1. Explain the difference between data and information. Give an example of the same piece of data becoming meaningful information in two different contexts.
  2. Classify each of the following as numeric, text, Boolean, image, audio, or video data: (a) a phone call recording; (b) a product price; (c) a yes/no checkbox result; (d) a scanned document; (e) a news article; (f) a surveillance camera feed.
  3. Why is unstructured data harder for computers to process automatically than structured data? Give a concrete example of each.
  4. A weather station records the number −5. Is this data or information? What would you need to add to turn it into information?
Sections 2.4 – 2.6
Digital Information, Instructions, and Stored Programs
Analog vs. Digital · Computation as Transformation · The Stored-Program Concept

Digital and Analog Information

The world produces information in two fundamental forms: analog and digital. Understanding the difference is essential to understanding why computers work the way they do.

Analog information varies continuously. A mercury thermometer shows temperature as a continuous physical height. A vinyl record stores sound as a continuously varying groove. Between 20°C and 21°C, an analog thermometer passes through every possible intermediate value — 20.1, 20.47, 20.831, and infinitely many others. There is no gap between adjacent values; the information is smooth and unbroken.

Digital information uses discrete values — distinct steps with nothing between them. In computing, digital information ultimately uses two discrete values: 0 and 1. A single unit of digital information — a single 0 or 1 — is called a bit, short for binary digit. Chapter 4 will explain how computers use bits to represent all forms of information.

Why only two values? Because two states are extremely reliable and easy to implement in electronics. A circuit is either carrying current or it is not. A capacitor is either charged or it is not. A magnetic spot on a disk is magnetized in one direction or the other. Two states are physically unambiguous, easy to distinguish reliably, and easy to reproduce exactly — making digital systems highly accurate.

Converting analog to digital

Many real-world inputs are naturally analog: sound is a continuous pressure wave, temperature is a continuous measurement, a camera captures a continuous gradient of light. To process these in a computer, they must be converted to digital form through a process called analog-to-digital conversion.

Analog-to-digital conversion works by sampling: measuring the analog signal at many points in time or space and recording each measurement as a number. For audio, a typical rate is 44,100 measurements per second. For each measurement, the value is stored as a sequence of bits. The result is a sequence of numbers that approximates the original sound wave closely enough that human listeners cannot detect the difference.

Example 2.4.1
Recording and playing back audio
  • Step 1A microphone picks up your voice as a continuously varying electrical signal representing the sound wave (analog).
  • Step 2An analog-to-digital converter samples the signal 44,100 times per second. Each sample is recorded as a 16-bit number. This creates a sequence of numbers that approximates the sound (digital).
  • Step 3The numbers are stored in memory or written to a file. They can be copied, transmitted, compressed, and processed without degradation.
  • Step 4When played back, a digital-to-analog converter translates the numbers back into an electrical signal that drives a speaker, recreating the sound.

Tradeoffs of digital representation

AdvantageDescription
Exact copyingA digital file copied to a new device is bit-for-bit identical to the original. Analog copies always introduce some degradation.
Error correctionBecause digital data uses distinct values, errors can be detected and corrected. Error-correcting codes identify flipped bits and fix them.
ProcessingComputers perform complex transformations on digital information quickly and precisely.
CompressionRedundant information can be removed to make files smaller, without losing quality or with controlled quality loss.
LimitationDescription
ApproximationMost analog signals cannot be represented exactly. The digital version is always an approximation — though usually good enough for practical purposes.
Resolution limitsA digital image has a finite number of pixels. Zooming in enough reveals the grid. An analog photograph has no such grid.
Practice 2.4Digital and Analog
  1. Explain the difference between analog and digital information. Give one example of each from daily life not mentioned in this section.
  2. What is a bit? Why are computers built around exactly two discrete values rather than, say, ten?
  3. Describe the process of analog-to-digital conversion in your own words. What does "sampling" mean?
  4. A student says: "Digital audio is always worse than analog because it is only an approximation." Identify what is correct in this claim, and explain what the student is missing about the practical tradeoffs.
  5. Name one field in which the approximation limitation of digital representation genuinely matters and explain why.

Instructions and Computation

A computer that could only store data would not be very useful. What makes a computer powerful is its ability to follow instructions — to take data, perform defined operations on it, and produce a result.

A computer instruction is a single, precisely defined operation that the hardware can perform. Instructions are simple individually:

Operation typeExample
ArithmeticAdd the values in register A and register B; store the result in register C.
LogicalCompare two values; determine whether the first is greater than the second.
Data movementLoad a value from a memory address into a register.
ControlIf a condition is true, jump to a different location in the program.

These instructions are not clever on their own. The power of a computer comes from executing billions of them per second in carefully arranged sequences. Every document you write, every website you load, and every video you watch is ultimately the result of an enormous number of simple instructions executed extremely fast.

Every type of CPU understands a specific collection of instructions called its instruction set. The instructions are encoded as patterns of bits that the hardware can decode and execute directly. This lowest-level language — consisting entirely of numeric codes — is called machine code. Writing programs directly in machine code is extremely difficult, which is why higher-level languages like Python exist. Those languages are eventually translated into machine code before the CPU runs them.

Computation as Transformation

At its most fundamental level, computation is transformation. Given input data and a set of instructions, the computer transforms the input into output. The same data can be transformed in completely different ways depending on the instructions:

3 and 4 → addition instruction → 7

3 and 4 → multiplication instruction → 12

3 and 4 → comparison instruction → false (3 ≠ 4)

The instructions define what the transformation does. The data provides the raw material. The output is the result.

The limits of computation

Not everything can be computed. Computer scientists have proven that some problems have no algorithmic solution regardless of cleverness — these are called undecidable problems. Other problems can be solved in principle but would take millions of years even on the fastest hardware. Part of computer science is understanding not just what can be computed, but what can be computed efficiently.

Practice 2.5Instructions and Computation
  1. Name and briefly describe the four types of CPU instruction operations from the table above.
  2. What is machine code? Why do programmers typically write in languages like Python rather than machine code directly?
  3. Explain the phrase "computation is transformation" in your own words. Give a concrete example of the same data being transformed in two different ways depending on the instruction.
  4. A student says: "The CPU must be very intelligent to perform all those operations." Respond to this claim using what you know about how instructions work.

Programs as Stored Instructions

One of the most important ideas in the history of computer science is the stored-program concept: the idea that instructions can be stored in memory, just like data, and that the computer reads and executes them automatically. This sounds simple. Its implications were revolutionary.

Before stored programs

Early computing machines were fixed-purpose. An adding machine could add. A ballistic calculator calculated trajectories. Changing what the machine did required physically rewiring its circuits or rebuilding it. The ENIAC, one of the first general-purpose electronic computers built in the 1940s, was programmed by physically rerouting cables and setting hundreds of switches. Reprogramming it to solve a different problem could take days of manual work.

The stored-program insight

The key insight — associated with mathematician John von Neumann and his collaborators in the mid-1940s — was this: if instructions can be encoded as numbers, they can be stored in memory alongside the data they operate on. The CPU can then read instructions from memory the same way it reads data. This created the general-purpose computer: a machine whose behavior is entirely determined by the program currently stored in its memory.

This is why the device in your pocket can be a phone, a camera, a map, a game, and a document editor. The hardware does not change. The stored program changes.

The Fetch-Decode-Execute Cycle

A running program consists of instructions and data stored in memory, plus a program counter — a register that tracks which instruction runs next. The CPU repeats this cycle billions of times per second:

1. Fetch — Read the instruction at the address in the program counter.

2. Decode — Determine what operation the instruction specifies.

3. Execute — Perform the operation.

4. Update — Advance the program counter to the next instruction (or jump elsewhere if the instruction requires it).

Programs and processes

A program stored on secondary storage is called an executable file or an application. It is just data sitting on a drive. When you launch it, the operating system loads its instructions into RAM, creates a process (a running instance of the program), and hands control to the CPU. At any moment your computer likely runs dozens of processes simultaneously — your browser, your operating system, background services, and more. The operating system manages all of these, giving each one time to run and protecting them from interfering with each other.

Practice 2.6Stored Programs
  1. Explain the stored-program concept in your own words. What was the key insight that made it possible?
  2. List the four steps of the fetch-decode-execute cycle. What component of the CPU tracks which instruction runs next?
  3. What is the difference between an application file sitting on a hard drive and a process running in RAM? Use the terms from this section precisely.
  4. A student says: "My computer has to buy new hardware when I install a new app." Explain, using the stored-program concept, why this is incorrect.
  5. Why was the stored-program concept such a significant advance over earlier computing machines like the ENIAC?
Sections 2.7 – 2.9
Computing Devices and Systems in the Real World
Device Types · Embedded Computers · Modern Computing Infrastructure

Devices as Computing Systems

With the IPO model and the stored-program concept in hand, it becomes straightforward to examine different kinds of computing devices and see how each one follows the same fundamental pattern — despite their vastly different appearances, price points, and purposes.

Device typeInputProcessingOutputNotes
Personal computer Keyboard, mouse, microphone, camera, USB CPU + GPU for visual work Display, speakers, printer General purpose; user-replaceable components
Smartphone Touchscreen, cameras, mic, GPS, accelerometer, fingerprint scanner System-on-a-chip (SoC) Screen, speaker, cellular/Wi-Fi/Bluetooth radios All major components integrated into one chip
Server Network requests from other computers CPU(s), often many cores Network responses No display or keyboard; designed for continuous operation
Game console Controllers (buttons, joysticks, motion sensors) CPU + powerful GPU Television display, audio Specialized for real-time 3D graphics
E-reader Touchscreen, network Low-power CPU Electronic ink display Optimized for low power and readability in sunlight
The general pattern

Despite their different appearances, every computing device takes in information, processes it according to instructions, produces output, and uses storage to hold information over time. Understanding this pattern helps you reason about any computing device — even ones that do not yet exist.

Practice 2.7Device Classification
  1. A server has no display, keyboard, or mouse. A student argues that it therefore cannot be a computer. Refute this argument using the definition of computer from Section 2.1 and the IPO model.
  2. A modern smartphone contains more raw computing power than supercomputers of the 1990s. Given that, what constraints still make a phone less capable than a desktop computer for some tasks?
  3. Apply the IPO model to a game console playing an online multiplayer game. Identify at least three inputs, describe what the CPU and GPU each contribute to processing, and list at least three outputs.

Embedded Computers and Smart Devices

The computing devices most people picture — phones, laptops, tablets — are general-purpose machines. But the vast majority of computers in the world are embedded systems: computers built into other devices for a specific purpose, not presented to users as computers in their own right.

You interact with embedded systems constantly without thinking of them as computers. The microcontroller in a microwave reads button presses and controls cooking time. The computer in a car manages the engine, brakes, airbags, fuel injection, and dashboard display. The processor in a digital camera captures sensor data, processes images, applies filters, and writes files to a memory card. The chip in a pacemaker monitors heart rhythm and triggers a corrective pulse when needed.

Microcontrollers

Most embedded systems use a type of chip called a microcontroller, which integrates a CPU, small amounts of RAM and flash memory, and input/output interfaces into a single chip. Microcontrollers are inexpensive, energy-efficient, and designed to run a single program indefinitely. An Arduino — a popular platform used in robotics and electronics courses — is built around a microcontroller. A single Arduino can control sensors, motors, lights, and displays with a program that fits in a few kilobytes.

Real-time constraints

Many embedded systems must respond to events within strict time limits. A car's antilock braking system must detect a wheel locking up and respond within milliseconds or the braking becomes ineffective. A pacemaker must respond to a dangerous heart rhythm within a fraction of a second. These are called real-time constraints. Systems with real-time requirements often use specialized real-time operating systems (RTOS) that guarantee critical tasks execute within their required time windows.

The Internet of Things

In recent years, embedded systems have increasingly been connected to the internet. A thermostat that reads temperature, controls heating, and allows remote adjustment through a smartphone app is one example. So is a smart refrigerator, a connected security camera, a networked industrial sensor, or a wearable health monitor. This network of connected physical devices is called the Internet of Things (IoT).

IoT and security

IoT devices raise serious questions about security, privacy, and reliability. A connected medical device that can be reached over the internet can potentially be reached by unauthorized parties. A smart home device that records audio may store those recordings in ways users do not fully understand. Chapter 21 (Cybersecurity) and Chapter 22 (Privacy) will examine these questions carefully.

Example 2.8.1
Applying the IPO model to an embedded system
  • DeviceA home thermostat with internet connectivity
  • InputTemperature sensor readings; user target temperature setting; time of day; remote commands from a phone app via Wi-Fi
  • ProcessingCompare current temperature to target; determine whether to activate heating or cooling; follow a programmed schedule; log readings
  • OutputOn/off signal to heating or cooling system; display showing current and target temperature; data transmitted to phone app
  • StorageTemperature schedule stored in flash memory; history of readings stored locally and optionally in the cloud
Practice 2.8Embedded Systems
  1. What is an embedded system? Give three examples from daily life that were not mentioned in this section.
  2. What is a microcontroller, and how does it differ from the CPU in a general-purpose laptop?
  3. Explain the term "real-time constraint." Give one example of an embedded system where failing to meet a real-time constraint could have serious consequences. Explain what would go wrong.
  4. Apply the IPO model to the antilock braking system (ABS) in a car. Identify the inputs, describe the processing, identify the outputs, and explain any real-time constraints.
  5. What is the Internet of Things? Name one potential benefit and one potential risk introduced when a previously unconnected device (such as a door lock) is connected to the internet.

Computing Systems in the Modern World

A single computing device is useful. Networks of computing devices working together are transformative. The computing tasks that most people care about today do not happen on a single device — they happen across systems of devices.

When you search for something online, your device sends a query to a data center, which searches an index built by thousands of computers, which returns results formatted by another server, which are displayed by your browser. Dozens of computers may participate in delivering a single search result. When you stream a movie, the video file is stored on servers in a data center, encoded into packets, routed across the internet, buffered on your device, decoded by a chip, and displayed on screen — all coordinated automatically, in real time.

Infrastructure and scale

The infrastructure supporting everyday computing is vast and largely invisible. Data centers around the world contain millions of servers consuming enormous amounts of electrical power. Networks of fiber-optic cables cross ocean floors, connecting continents. Satellite networks provide coverage where ground infrastructure does not reach. When a cloud service says their platform is "always available," they are describing extraordinary systems of redundancy, replication, and monitoring that keep services running even when individual components fail.

Computing as a Utility

Electricity, clean water, and telecommunications are utilities — services delivered through infrastructure that people use without thinking about the underlying systems. Computing is increasingly a utility in the same sense. When you open an app and it works, you do not think about the data centers, networks, operating systems, databases, and programs that made it work. You think about the task you wanted to accomplish. The goal of all that infrastructure is to disappear — to become so reliable that it is simply there when needed.

Computer science is the discipline that designs, builds, understands, maintains, and improves those systems.

Practice 2.9Systems and Scale
  1. Trace what happens — across multiple computing systems — when you send an email. Identify at least three distinct computing devices or systems that participate in delivering that email to its recipient.
  2. What is a data center? What role do data centers play in everyday computing tasks like watching a video or using a cloud document?
  3. Explain the analogy between computing and a utility like electricity. What does it mean to say computing is "becoming a utility"?
  4. When a cloud storage service guarantees that your files are "always available," what underlying technical approaches make this possible? (Name at least two concepts, even if you describe them in general terms.)

Chapter Summary

Key Terms Review

analog information
Information that varies continuously, taking any value within a range, with no gaps between adjacent values.
bit
A single unit of digital information: either 0 or 1. Short for binary digit. The fundamental building block of all digital data.
Boolean data
Data with exactly two possible values: true or false (equivalently 1 or 0). Used in logical conditions throughout programming and hardware design.
computation
The process of performing a well-defined set of operations on information according to instructions to produce a result.
CPU
Central processing unit. The component that fetches, decodes, and executes instructions. The primary processor of a computing system.
data
Raw recorded values, before interpretation or context. Data becomes information when interpreted meaningfully.
digital information
Information represented using discrete values — ultimately patterns of 0s and 1s. Copies exactly; supports error correction.
embedded system
A computing system integrated into a larger device for a specific purpose, not presented to users as a standalone computer.
executable file
A program stored on secondary storage, containing machine code instructions ready to be loaded and run.
fetch-decode-execute
The continuous cycle by which a CPU reads an instruction from memory, determines what it means, and performs the corresponding operation.
general-purpose computer
A computer whose behavior is determined by its stored program, allowing it to perform a wide variety of tasks on the same hardware.
information
Data that has been interpreted in a context to produce meaning. Computers process data; humans (and AI systems) interpret information.
input
Information entering a computing system from outside, delivered by an input device such as a keyboard, camera, sensor, or network connection.
instruction
A single, precisely defined operation that a CPU can perform — arithmetic, logical, data movement, or control.
instruction set
The complete collection of operations a particular CPU is designed to understand and execute.
Internet of Things
A network of physical devices — appliances, vehicles, sensors, and others — connected to the internet and able to exchange data.
IPO model
The framework describing every computing system in terms of four components: input, processing, output, and storage.
machine code
The lowest-level programming language — instructions encoded as numeric patterns of bits that the CPU executes directly.
microcontroller
An integrated circuit combining a CPU, small amounts of memory, and input/output interfaces in a single chip; used in embedded systems.
output
Information leaving a computing system to reach a user or another system, delivered by an output device such as a display, speaker, or printer.
primary storage (RAM)
Fast, temporary memory that holds programs and data while actively in use. Contents are lost when power is removed.
process
A running instance of a program, loaded into RAM and managed by the operating system.
program
A stored set of instructions that a computer executes to perform a task.
program counter
A register in the CPU that stores the memory address of the next instruction to be fetched and executed.
real-time constraint
A requirement that a computing system respond to an event within a specified time limit — critical in safety systems, medical devices, and control systems.
sampling
Measuring an analog signal at many discrete points in time or space to create a digital approximation.
secondary storage
Persistent storage that retains contents when power is removed — hard drives, solid-state drives, flash drives, and cloud storage.
server
A computer designed to respond to requests from other computers, typically running continuously in a data center without a display or keyboard.
stored-program concept
The principle that instructions can be stored in memory alongside data, allowing the same hardware to run different programs and perform different tasks.
structured data
Data organized in a predictable format (rows and columns), making it easy for computers to process automatically.
system-on-a-chip (SoC)
An integrated circuit combining a CPU, GPU, memory controller, and other components into a single chip, used in smartphones and compact devices.
unstructured data
Data without a predictable format — free-form text, photos, recordings — which is harder for computers to process automatically.

Diagram Review

┌──────────────────────────────────────────────────────────────────────┐
│                         COMPUTING SYSTEM                              │
│                                                                       │
│  ┌──────────────┐     ┌──────────────────┐     ┌───────────────────┐ │
│  │    INPUT     │────▶│   PROCESSING     │────▶│      OUTPUT       │ │
│  │              │     │      (CPU)       │     │                   │ │
│  │  keyboard    │     │                  │     │  display          │ │
│  │  mouse       │     │  arithmetic      │     │  speakers         │ │
│  │  camera      │     │  logic           │     │  printer          │ │
│  │  microphone  │     │  comparisons     │     │  network          │ │
│  │  sensors     │     │  data movement   │     │  actuators        │ │
│  │  network     │     │  control flow    │     │                   │ │
│  └──────────────┘     └────────┬─────────┘     └───────────────────┘ │
│                                │  ▲                                   │
│                                ▼  │                                   │
│                      ┌──────────────────┐                            │
│                      │    STORAGE       │                            │
│                      │                  │                            │
│                      │  RAM — fast,     │                            │
│                      │  temporary       │                            │
│                      │                  │                            │
│                      │  Drive/SSD —     │                            │
│                      │  slower,         │                            │
│                      │  permanent       │                            │
│                      └──────────────────┘                            │
└──────────────────────────────────────────────────────────────────────┘
  1. Why does storage connect to processing with arrows pointing in both directions? What does each direction represent?
  2. A network interface card can act as either input or output. Give one example of the network providing input to the CPU and one example of the CPU sending output through the network.
  3. A program saved on a hard drive and a program currently running in RAM are both described as "programs." How does the diagram help explain the difference between them?
  4. Which part of this diagram is responsible for the computer actively doing something with data, rather than merely holding it?

Device Classification Practice

For each device, identify whether it functions as input, output, or both. Explain your reasoning in one sentence.

DeviceInput, Output, or Both?Reasoning
Keyboard  
Display screen  
Touchscreen  
Microphone  
Speaker  
Hard drive  
Network interface card  
Camera  
Printer  
GPS receiver  

Common Misconceptions

Misconception 1
"Computer" means a desktop or laptop.
Correction: The word computer names a functional concept, not a physical form factor. Smartphones, tablets, game consoles, servers, embedded controllers, smart devices, and mainframes are all computers. What makes them computers is that they process information according to stored instructions — not what they look like.
Misconception 2
"More RAM means a faster processor."
Correction: RAM and the CPU are different components. RAM is memory — it holds programs and data while they run. The CPU performs operations. More RAM means the computer can keep more programs and data accessible without swapping to slower storage. A faster CPU means individual operations execute more quickly. These are independent dimensions of performance.
Misconception 3
"Computers understand what they are doing."
Correction: Computers execute instructions. They have no comprehension, awareness, or understanding of the data they process or the purpose of the instructions. A computer running medical software does not know what medicine is. Meaning and understanding are supplied by the humans who design programs and interpret results — not by the machine itself.
Misconception 4
"Deleting a file erases it from the disk."
Correction: On most systems, deleting a file removes its entry from the filesystem directory and marks the storage space as available for reuse. The actual data patterns remain on the disk until new data overwrites them. Deleted files can often be recovered with specialized tools — which is also why simply deleting sensitive files is not a secure disposal method.
Misconception 5
"Digital is always better than analog."
Correction: Digital and analog represent different tradeoffs. Digital information copies exactly and supports error correction. Analog information can capture continuous detail that digital approximations may not fully represent. Neither is universally better; the appropriate choice depends on the application, the precision required, and the constraints involved.

Review Questions

Straightforward RecallSections 2.1 – 2.9
  1. State the precise definition of a computer given in this chapter.
  2. Name the four components of the IPO model and briefly describe what each one does.
  3. What is a bit? What two values can it hold, and why are those two values chosen?
  4. What does CPU stand for, and what is the CPU's job?
  5. What is the difference between primary storage and secondary storage?
  6. What is the stored-program concept? Why did it matter historically?
  7. List the three steps of the fetch-decode-execute cycle.
  8. What is an embedded system? Give two examples not mentioned in this chapter.
  9. What is a real-time constraint? Give one example of a system where missing a real-time deadline would be dangerous.
  10. What is the Internet of Things?
Explanation and ApplicationSections 2.1 – 2.9
  1. A student says: "My phone has a lot of storage, so it must be very fast." Explain what is correct and what is confused about this statement.
  2. Explain why the same physical computer can function as a word processor, a game, a web browser, and a video editor. What changes between these uses? What stays the same?
  3. A home thermostat reads the current temperature, compares it to the target set by the user, and turns the heating or cooling system on or off. Identify the input, processing, output, and storage of this system.
  4. Explain what analog-to-digital conversion is and why it is necessary for recording sound on a digital device.
  5. What happens to the data in RAM when a computer loses power unexpectedly? What does this mean for an unsaved document?
  6. A server has no display, keyboard, or mouse. Is it still a computer according to the definition in this chapter? Explain.
Comparison and AnalysisSections 2.1 – 2.9
  1. Compare a microcontroller in a microwave oven to the CPU in a general-purpose laptop. How are they similar? How do they differ in purpose, flexibility, and typical operating environment?
  2. An image can be stored as analog film or as a digital file. Describe one advantage and one disadvantage of each approach.
  3. Why might connecting a physical device — such as a door lock or a medical monitor — to the internet introduce risks that a non-connected version of the same device would not have?

Debugging and Error Analysis

Each statement below contains an error in reasoning or terminology. Identify the error and write the correction.

Error 1
"I saved my work to RAM before closing the computer so I won't lose it."

What is wrong? What should the student have done?

Error 2
"The CPU stores all the long-term data the computer needs, like files and photos."

Which component actually stores long-term data? What does the CPU do?

Error 3
"When I deleted that photo, I freed up memory in my computer."

Identify two errors: one about what "deleting" actually does, and one about the word "memory."

Error 4
"My computer downloaded the file from the internet, so the file was processed on a server somewhere, not on my CPU."

Explain what downloading means for processing. Which CPU does the work when you open a downloaded file?

Error 5
"Analog recordings are better than digital recordings because digital recordings have to be compressed."

Identify what the statement gets wrong. Is compression required for digital audio? What tradeoffs does digital actually involve?

Design and Application Questions

  1. Design an IPO diagram for an automated car wash. Identify at least three inputs, describe the processing, list at least three outputs, and describe what information might need to be stored between sessions.
  2. A school is designing a digital library kiosk where students can look up books, check out items, and receive due-date reminders. Identify the computing components this kiosk would need — input devices, output devices, processing, and storage — and explain what each would do.
  3. Imagine a simple weather station that measures outdoor temperature and humidity every hour, displays the current readings on a small screen, and saves a reading to memory. Sketch an IPO model for this device. Then identify one real-time constraint it might have and explain why it matters.

Real-World Applications

  1. Hospital monitoring: Many hospitals use patient monitoring systems that continuously measure heart rate, blood pressure, and oxygen levels, alerting nurses when a value falls outside a safe range. Identify the inputs, processing, outputs, and storage of such a system. What real-time constraints would be most critical?
  2. Self-checkout machine: A grocery store self-checkout station uses a barcode scanner, a scale, a touchscreen, a card reader, and a receipt printer. Walk through the IPO model for scanning and paying for a single item. Which components are inputs? Which are outputs? What does the processing step involve?
  3. Streaming video: Describe the computing systems involved on both sides: the viewer's device and the streaming service's servers. What inputs, processing, outputs, and storage are involved at each end?
  4. Autonomous vehicles: Self-driving cars use cameras, radar, lidar, and GPS to navigate. In what sense is an autonomous vehicle a computing system? Apply the IPO model to a single decision the vehicle might make — recognizing a stop sign and beginning to brake.

Mixed Review

  1. Chapter 1 defined computer science as the study of computation, information, algorithms, programs, machines, systems, networks, data, automation, and responsible technology. How does the content of Chapter 2 connect to at least five of those elements? For each, write one sentence of explanation.
  2. Students sometimes hear the saying "garbage in, garbage out" about computing. What does this mean in terms of input, processing, and output? What does it imply about the importance of data quality for any computing system?
  3. Based on Chapters 1 and 2, give three examples of important computer science topics that do not require writing code to understand. Explain why each one matters.

Chapter 2 Checkpoint

Chapter 2 Checkpoint
Complete without assistance — assesses all key skills and concepts from Chapter 2
Section 1 — Vocabulary and Concepts
  1. Define computer precisely. What three things does the definition distinguish?
  2. Name and briefly describe all four components of the IPO model.
  3. Explain the difference between RAM and secondary storage. Which one loses its contents when the power goes off?
  4. What is the difference between data and information? Give an example.
Section 2 — Digital and Programs
  1. What is a bit? Why do computers use two values (0 and 1) rather than ten?
  2. Explain analog-to-digital conversion in your own words. What is sampling?
  3. What is the stored-program concept? How does it make a computer "general-purpose"?
  4. List the three steps of the fetch-decode-execute cycle.
Section 3 — Devices and Systems
  1. What is an embedded system? Give two examples.
  2. A server has no keyboard or display. Is it a computer? Justify your answer.
  3. What is a real-time constraint? Give one example where failing to meet it would be dangerous.
Section 4 — Application
  1. Apply the IPO model to a bank ATM dispensing cash. Identify at least two inputs, describe the processing, list at least two outputs, and describe what is stored.
  2. A smoke detector with a connected app detects smoke, sounds an alarm, and sends an alert to the homeowner's phone. Identify the input, processing, output, and any real-time constraint of this system.
Section 5 — Error Correction
  1. A student says: "I have 512 GB of storage on my laptop, so it can run many programs at once." What is the student confusing? What component actually determines how many programs can run simultaneously?
  2. A student says: "When I close an app, it disappears because it was deleted." Explain what actually happens when you close an application, using the terms process, RAM, and secondary storage.
Looking Ahead
Chapter 3: Problem Solving and Computational Thinking

Chapter 3 introduces the habits of mind that computer scientists use to approach problems before a single line of code is ever written. You will learn decomposition — breaking complex problems into manageable parts; pattern recognition — identifying similarities and regularities; abstraction — focusing on essential features while ignoring irrelevant detail; and algorithmic thinking — describing solutions as precise, repeatable procedures.

Chapter 3 will also connect these habits directly to the IPO model you learned here. Before anyone writes a program, they must understand what inputs the problem involves, what processing is required, and what outputs are needed. Computational thinking is how they move from a problem in the real world to a plan they can actually implement. The mental model you built in Chapter 2 will serve as the foundation for everything that follows.

MGU Library Connection
  • Chapter 1: What Computer Science Studies — introduces computation, information, algorithms, and the scope of the field
  • Chapter 4: Data, Representation, and Binary — explains bits, binary numbers, and how all data is encoded
  • Chapter 15: Hardware and Computer Architecture — examines the CPU, memory, storage, and the fetch-decode-execute cycle in depth
  • Chapter 19: Networks and the Internet — explains how computing systems connect to form the internet
  • Appendix B: Binary and Data Representation Reference — reference for bits, bytes, and data encoding
  • Appendix G: Computer Systems Reference — reference for hardware components and operating system layers