---
title: "Inside the Computer"
book: "Primary & Middle School Computer Science"
subject: computer-science
language: en
chapter: 6
exercises: 10
source: https://one-course.com/books/computer-science/1/en/chapter/6-inside-the-computer
license: CC-BY-NC-SA-4.0
credit: "One Computer Science Book, One Course (one-course.com)"
---

# Chapter 6 — Inside the Computer

The school has a new [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer), so the teacher brings the old one into the classroom, lays it on her desk and unscrews its side. Inside there are wires of many colours, a fan, a big green board covered with tiny parts, and a few small black squares. “Somewhere in here,” she says, “are the parts that follow the [instructions](https://one-course.com/books/computer-science/1/en/chapter/2-instructions-in-order#def-g1-instructions-in-order-instruction), the parts that remember, and the parts that keep your work when the power is off. Let us find them.”

![An old desktop computer, opened on the teacher’s desk.](https://one-course.com/images/onecourse/chapters/computer-science-1/g3-inside-the-computer/img-82c28eb949fa.jpg)

*An old desktop [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer), opened on the teacher’s desk.*

**You already know.**

A [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) is a machine that follows [instructions](https://one-course.com/books/computer-science/1/en/chapter/2-instructions-in-order#def-g1-instructions-in-order-instruction) to work on information. [Input devices](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-device) bring information in; [output devices](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-device) take it out ([Chapter 1](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#ch-g1-what-is-a-computer)).

## 6.1 The processor

**Definition 6.1 (Processor).**

The *processor* is the part of a [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) that carries out the [instructions](https://one-course.com/books/computer-science/1/en/chapter/2-instructions-in-order#def-g1-instructions-in-order-instruction), one after another, very fast.

The [processor](#def-g3-inside-the-computer-processor) is a small, flat square, a few centimetres wide, made of silicon and covered by a metal lid. It carries out billions of [instructions](https://one-course.com/books/computer-science/1/en/chapter/2-instructions-in-order#def-g1-instructions-in-order-instruction) every second. All this work makes it hot, so a fan or a block of metal with fins sits on top of it to carry the heat away.

## 6.2 The memory

To work on a drawing, the [processor](#def-g3-inside-the-computer-processor) needs it close at hand. The drawing you are working on, and the [instructions](https://one-course.com/books/computer-science/1/en/chapter/2-instructions-in-order#def-g1-instructions-in-order-instruction) of the tool you are using, are kept in the [memory](#def-g3-inside-the-computer-memory) while you work.

**Definition 6.2 (Memory).**

The *memory* of a [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) holds the information the [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) is working on right now: the open work and the [instructions](https://one-course.com/books/computer-science/1/en/chapter/2-instructions-in-order#def-g1-instructions-in-order-instruction) being carried out. It forgets everything when the power goes off.

The [memory](#def-g3-inside-the-computer-memory) is very fast: the [processor](#def-g3-inside-the-computer-processor) reads from it and writes into it all the time. But it needs electricity to remember. This is why Sami’s castle ([Chapter 4](https://one-course.com/books/computer-science/1/en/chapter/4-using-a-computer#ch-g2-using-a-computer)) was lost: it was only in the [memory](#def-g3-inside-the-computer-memory) when the [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) was switched off.

## 6.3 The storage

**Definition 6.3 (Storage).**

The *storage* of a [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) keeps information when the power is off: the saved work and the tools installed on the [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer).

When you save a drawing, the [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) copies it from the [memory](#def-g3-inside-the-computer-memory) into the [storage](#def-g3-inside-the-computer-storage). When you open it the next day, the [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) copies it back from the [storage](#def-g3-inside-the-computer-storage) into the [memory](#def-g3-inside-the-computer-memory), so that you can go on working. The next year will show what is inside the [storage](#def-g3-inside-the-computer-storage) of a [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer).

**Example 6.4 (Memory or storage?).**

Mia is writing a story that she has not saved yet: the story is only in the [memory](#def-g3-inside-the-computer-memory). She saves it: now a copy is also in the [storage](#def-g3-inside-the-computer-storage). The power goes off by accident: the copy in the [memory](#def-g3-inside-the-computer-memory) is lost, but the saved copy in the [storage](#def-g3-inside-the-computer-storage) is still there. Only the words she typed after saving are lost.

![The main parts of a computer and how information moves between them. Input comes in through the ports, the processor works with the memory, saved work goes to the storage, and output goes out through the ports.](https://one-course.com/images/onecourse/chapters/computer-science-1/g3-inside-the-computer/fig-527cb4afd2f7.svg)

*The main parts of a [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) and how information moves between them. [Input](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-input) comes in through the ports, the [processor](#def-g3-inside-the-computer-processor) works with the [memory](#def-g3-inside-the-computer-memory), saved work goes to the [storage](#def-g3-inside-the-computer-storage), and [output](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-input) goes out through the ports.*

## 6.4 The motherboard, the power and the heat

**Definition 6.5 (Motherboard).**

The *motherboard* is the large board inside a [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) to which all the parts are attached. Tiny copper paths on the board carry information and electricity from one part to another.

The [processor](#def-g3-inside-the-computer-processor) sits in a socket on the [motherboard](#def-g3-inside-the-computer-motherboard). The [memory](#def-g3-inside-the-computer-memory) is made of thin sticks clipped into long slots. The [storage](#def-g3-inside-the-computer-storage) is a box or a small card connected to the [motherboard](#def-g3-inside-the-computer-motherboard). A desktop [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) gets its electricity from a power supply plugged into the wall; a laptop, a tablet or a phone from a battery, which is charged when it is plugged in.

![The inside of a desktop computer, drawn from the side. All the parts are attached to the motherboard; the power supply brings electricity through the cables.](https://one-course.com/images/onecourse/chapters/computer-science-1/g3-inside-the-computer/fig-3dc99c131c87.svg)

*The inside of a desktop [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer), drawn from the side. All the parts are attached to the [motherboard](#def-g3-inside-the-computer-motherboard); the power supply brings electricity through the cables.*

![Part of a real motherboard. On the right, the fan that cools the processor; below, two long blue slots for memory sticks; in the middle, a metal block with fins that carries heat away from another chip. Photograph: Davidson F, CC0.](https://one-course.com/images/onecourse/chapters/computer-science-1/g3-inside-the-computer/img-b20e0409c0c2.jpg)

*Part of a real [motherboard](#def-g3-inside-the-computer-motherboard). On the right, the fan that cools the [processor](#def-g3-inside-the-computer-processor); below, two long blue slots for [memory](#def-g3-inside-the-computer-memory) sticks; in the middle, a metal block with fins that carries heat away from another chip. Photograph: Davidson F, CC0.*

Every part of a working [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) turns a little electricity into heat. Fans blow cool air in through holes in the case, the vents, and push warm air out. If the vents are covered, by a blanket or a cushion under a laptop, the heat cannot get out: the [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) becomes very hot and slows down to protect itself.

**Safe use.**

Never cover the vents of a [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer): keep a laptop on a table, not on a bed or a cushion. Never open the case of a [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) that is plugged in, and never open the power supply or a battery.

## 6.5 Ports and devices

**Definition 6.6 (Device).**

A *device* is a part that is connected to a [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) from the outside: a mouse, a keyboard, a screen, a printer, headphones, a camera, a [memory](#def-g3-inside-the-computer-memory) stick. It is plugged into a socket of the [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer), called a port, or connected by radio, without a cable.

Each port has a shape, so that only the right plug fits into it. Some ports carry information in, some carry it out, and many carry both. A wireless mouse or wireless headphones use radio instead of a cable, but they are [devices](#def-g3-inside-the-computer-device) all the same. Some ports also carry electricity: the cable that charges a phone is plugged into a port.

![The ports on the side of a laptop, drawn without any make in mind. Each socket has its own shape, so that only the right plug fits.](https://one-course.com/images/onecourse/chapters/computer-science-1/g3-inside-the-computer/fig-43f42d819b7b.svg)

*The ports on the side of a laptop, drawn without any make in mind. Each socket has its own shape, so that only the right plug fits.*

**Remark 6.7 (A computer on one chip).**

The [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) inside a washing machine or a toy has a [processor](#def-g3-inside-the-computer-processor), a [memory](#def-g3-inside-the-computer-memory) and a [storage](#def-g3-inside-the-computer-storage) too, but so small that all three fit together on one tiny chip.

## 6.6 Exercises

**Exercise 6.1 ★.**

Which part of a [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) carries out the [instructions](https://one-course.com/books/computer-science/1/en/chapter/2-instructions-in-order#def-g1-instructions-in-order-instruction)?

**Solution of Exercise 6.1.**

The [processor](#def-g3-inside-the-computer-processor).

**Exercise 6.2 ★.**

Lina saved her drawing yesterday. In which part of the [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) is it kept overnight?

**Solution of Exercise 6.2.**

In the [storage](#def-g3-inside-the-computer-storage): it keeps information when the power is off.

**Exercise 6.3 ★.**

The power goes off in the middle of Tom’s work, which he has not saved. What is lost, and why?

**Solution of Exercise 6.3.**

Everything he did since he last saved: it was only in the [memory](#def-g3-inside-the-computer-memory), which forgets when the power goes off.

**Exercise 6.4 ★.**

In the drawing of the inside of a desktop [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer), name the parts that are attached to the [motherboard](#def-g3-inside-the-computer-motherboard).

**Solution of Exercise 6.4.**

The [processor](#def-g3-inside-the-computer-processor) (under its fan), the [memory](#def-g3-inside-the-computer-memory) sticks, the [storage](#def-g3-inside-the-computer-storage), and, through cables, the power supply; the ports at the back are part of the [motherboard](#def-g3-inside-the-computer-motherboard) too.

**Exercise 6.5 ★.**

Why must the vents of a laptop never be covered?

**Solution of Exercise 6.5.**

The fans push warm air out through the vents. If they are covered, the heat stays inside: the laptop becomes very hot and slows down.

**Exercise 6.6 ★.**

These [devices](#def-g3-inside-the-computer-device) are plugged into ports: a printer, a microphone, a second screen, headphones with a microphone, a keyboard, a camera. Does each one bring information in, take it out, or both?

**Solution of Exercise 6.6.**

Printer: out. Microphone: in. Second screen: out. Headphones with a microphone: both. Keyboard: in. Camera: in.

**Exercise 6.7 ★.**

Follow the arrows of the drawing of the parts of a [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer): Mia presses a key and the letter appears on the screen. Through which parts does the information go?

**Solution of Exercise 6.7.**

From the keyboard (an [input device](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-device)) to the [processor](#def-g3-inside-the-computer-processor), which works with the [memory](#def-g3-inside-the-computer-memory), then from the [processor](#def-g3-inside-the-computer-processor) to the screen (an [output device](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-device)).

**Exercise 6.8 ★★.**

[Memory](#def-g3-inside-the-computer-memory) or [storage](#def-g3-inside-the-computer-storage)? (a) The game you are playing right now. (b) Your photos from last summer. (c) A song you saved last week. (d) The page you are typing, not yet saved. (e) The tools installed on the [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer), while it is switched off.

**Solution of Exercise 6.8.**

(a) [Memory](#def-g3-inside-the-computer-memory). (b) [Storage](#def-g3-inside-the-computer-storage). (c) [Storage](#def-g3-inside-the-computer-storage). (d) [Memory](#def-g3-inside-the-computer-memory). (e) [Storage](#def-g3-inside-the-computer-storage).

**Exercise 6.9 ★★.**

A tablet has no fan. Where does the heat of its [processor](#def-g3-inside-the-computer-processor) go?

**Solution of Exercise 6.9.**

Through its case: the back of the tablet carries the heat out into the air, which is why a tablet can feel warm in the hands. Its [processor](#def-g3-inside-the-computer-processor) is made to produce little heat.

**Exercise 6.10 ★★.**

A laptop has a battery and a desktop [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) does not. Which part of the desktop [computer](https://one-course.com/books/computer-science/1/en/chapter/1-what-is-a-computer#def-g1-what-is-a-computer-computer) does the battery replace? Why does a laptop need one?

**Solution of Exercise 6.10.**

The battery replaces the power supply plugged into the wall: it gives the electricity. A laptop needs one so that it can be carried and used away from a plug.
