- Practice
- About 14 min
- 5 practice questions
Memory, operating system, hardware and software
Distinguish internal memory (RAM and ROM) from external memory, explain the role of the operating system, and classify the parts of a computer system as hardware or software.
If something looks wrong, please tell us.
By the end of this lesson you can
- Explain the difference between RAM and ROM.
- Give examples of external memory.
- Say why a computer cannot be used without an operating system.
- Classify items as hardware or software.
When you switch off a computer in the middle of typing without saving, your work disappears; yet the computer still knows how to start the next morning. The reason lies in the different kinds of memory a computer has. In this lesson you will also meet the program that lets you talk to the computer at all, and the two broad components of every computer system.
Two types of memory
A computer has internal memory and external memory. Internal memory is of two types:
- RAM (Random Access Memory): made of electronic components that work only as long as electricity is supplied. The program you are running and the data you are working on are kept here. When the power goes off, what is in RAM is lost. That is why unsaved work disappears.
- ROM (Read Only Memory): the information stored here can only be read; we cannot change what was stored in it originally. It holds the basic instructions the computer needs, for example to start up, and it keeps them even without power.
- External memory: devices such as a hard disk, pen drive, memory card, CD or DVD store data permanently so that it can be used later or carried to another computer.
RAM and ROM side by side
-
RAM
- Read and write: contents keep changing
- Needs electricity to keep its data
- Holds the work you are doing now
- Data lost when power goes off
-
ROM
- Read only: contents cannot be changed by the user
- Keeps data without electricity
- Holds fixed start-up instructions
- Data stays when power goes off
The operating system
An operating system is a program that provides a means of communication between the computer and the person using it. It manages the memory, the files and the devices, and it lets you open other programs. A computer cannot be used without its operating system. An early example is DOS (Disk Operating System), in which commands were typed; modern operating systems let you work with icons and windows.
Hardware and software
Hardware consists of all the electronic and mechanical parts of a computer: parts you can touch. Software refers to the programs and commands given to the computer, the information supplied to it (input) and the results obtained after processing (output). Hardware without software is like a body without thoughts; software without hardware has nothing to run on.
| Hardware | Software |
|---|---|
| Keyboard, mouse, monitor, printer | Operating system |
| Processor chip, RAM chips, hard disk | Word processor, spreadsheet, presentation programs |
| Pen drive, speakers, webcam | Programs, data you enter, results produced |
Worked example 1: where did the work go?
Question: Rohan typed a report for 20 minutes. The electricity failed before he saved it. When the power returned, the report was gone, but the computer started normally. Explain.
Working: While he typed, the report was held in RAM. RAM needs a continuous supply of electricity, so its contents were lost when the power failed. The start-up instructions are stored in ROM, which keeps its contents without power, so the computer could start again. Lesson: save work regularly to external memory such as the hard disk.
Worked example 2: classifying parts
Question: Sort these into hardware and software: printer, operating system, pen drive, a spreadsheet program, RAM chip.
Working: Ask: can it be touched? The printer, pen drive and RAM chip are physical parts, so they are hardware. The operating system and the spreadsheet program are sets of instructions, so they are software. Note that the pen drive is hardware even though the files stored on it are software or data.
RAM: read and write, lost without power. ROM: read only, kept without power. The operating system is the link between you and the computer.
Key takeaways: internal memory is RAM and ROM; external memory includes hard disks and pen drives. RAM is temporary and needs electricity; ROM cannot be changed and keeps its contents. The operating system, such as DOS, makes the computer usable. Hardware is what you can touch; software is the set of programs and data.
Check your understanding
-
1. What happens to the contents of RAM when the electricity supply stops?
- They are moved to the printer
- They become read only
- They are lost
- They are copied to ROM automatically
Show answer
Answer: C. RAM is made of electronic components that work only while electricity is supplied, so unsaved contents are lost when power fails.
-
2. Which memory holds information that can only be read and cannot be changed by the user?
- RAM
- ROM
- Pen drive
- Hard disk
Show answer
Answer: B. ROM means Read Only Memory. Its original contents can be read but not changed. RAM, pen drives and hard disks can all be written to.
-
3. Which of these is an example of external memory?
- Pen drive
- ALU
- Control unit
- Keyboard
Show answer
Answer: A. A pen drive stores data outside the processing unit and can be carried to another computer. The ALU and control unit are parts of the processor; the keyboard is an input device.
-
4. Why can a computer not be used without an operating system?
- Because it has no monitor
- Because the ALU cannot add without it
- Because the keyboard needs it to light up
- Because the operating system provides the means of communication between the user and the computer
Show answer
Answer: D. The operating system manages the computer and lets the user give commands and run programs. Without it there is no way to use the machine.
-
5. Which of these is software?
- A spreadsheet program
- A printer
- A RAM chip
- A mouse
Show answer
Answer: A. A spreadsheet program is a set of instructions, so it is software. The printer, RAM chip and mouse are physical parts, so they are hardware.
Sign in to keep track of the lessons you finish.