COMPUTING FOUNDATIONS · GUIDED LESSON

Inside a computer

Trace a saved document from storage to memory, through the processor and back to a saved file.

Read the explanation, work through the example and answer the practice questions before taking the knowledge check.

What you will learn

  • Distinguish the CPU, RAM, persistent storage and input/output devices.
  • Explain how hardware and operating-system software cooperate.
  • Trace what changes when you open, edit and save a document.

The main parts

A computer represents information as bits. Eight bits form a byte. Bytes can represent instructions, text, pictures and many other kinds of data; software determines how to interpret them.

ComponentMain roleExample
CPUExecutes machine instructionsCalculates a new value or compares two values
RAMHolds working data and instructionsThe document currently being edited
Persistent storageRetains saved data without normal operating powerAn SSD containing a saved document
Input and outputExchanges information with users and devicesKeyboard input and screen output

These roles apply even when several components are integrated into one chip. A graphics processor may handle display and parallel workloads; it does not replace every role of the CPU.

Instructions and the CPU

A program is expressed in instructions. At a simplified level, a CPU fetches an instruction, decodes what operation it requests and executes it. Registers hold small amounts of immediately needed information. Caches reduce many trips to slower main memory.

Real processors overlap work and can have multiple cores. This introductory model explains the responsibilities; it is not a cycle-by-cycle account of every processor. A higher clock frequency alone does not establish that one computer will run every task faster.

RAM is different from storage

Ordinary system RAM is volatile: its contents are not retained when normal power is removed. Persistent storage retains saved files. A machine with 16 GB of RAM and a 512 GB SSD has two different capacities, not 528 GB of interchangeable memory.

An operating system can move some memory contents to storage as part of virtual-memory management. This does not make storage as fast as RAM. A file must also be saved by the application; having its edited contents in memory is not a durable save.

Worked example: open, edit and save

Suppose a saved text file contains CAT. You open it, change the first letter and save BAT.

  1. The application asks the operating system to open the file. The system checks access and provides the requested data, potentially using a cache.
  2. The application represents the document in memory. The CPU executes the editor's instructions.
  3. A key press reaches the software through the input system. The application changes its working representation to BAT and updates the display.
  4. Saving asks the operating system to write the updated file. Storage and caching affect when a write becomes durable.

Before saving, the original file can still contain CAT while the editor shows BAT. Unexpected power loss can lose unsaved edits. The screen is output, not the place where the document is stored.

Software connects the parts

An operating system manages processes, memory, files and device access. Device drivers help the system communicate with particular hardware. Applications request these services rather than implementing every hardware operation themselves.

For an SSD-heavy file-copying task, storage speed may matter most. A calculation may be limited by CPU work. A large working set may make RAM capacity important. Identify the task and evidence before deciding which component needs upgrading.

Next, learn how instructions become running programs.

Practice and explained answers

Work out each answer before expanding it. Use the explanations and worked examples on this page.

The editor shows BAT, but you have not saved. What might the file still contain?

CAT. The working document and the saved file can differ. An application with autosave may behave differently; check the actual application.

Does a larger SSD necessarily let the CPU calculate faster?

No. Storage capacity, storage performance, CPU performance and RAM capacity are different properties.

Trace a keyboard press to a changed document.

The input system delivers the event; the application handles it using CPU instructions and changes its in-memory document representation. Saving is a separate operation.

COMPUTING FOUNDATIONS · STEP 1 OF 13

Check what you learned

Answer both questions correctly to complete this step. You can revise your answers and retry.

1. You edit a saved file but have not saved again. Where is the changed document usually held while the editor is running?
2. A computer has a 512 GB SSD and 16 GB RAM. Which statement is correct?

Progress stays in this browser. It is not synced to an account or sent as analytics. Passing these introductory checks is not certification.

Editorial credits

Original lesson and exercises prepared for HamTron Learn. Updated 17 November 2026. This is introductory educational material, not a qualification or certification.

Return to Half Echo Learn