Computers need a steady supply of electricity, and they come in very different sizes, from a phone in your pocket to a supercomputer that fills a hall. This lesson covers both: how to protect a computer from power problems, and the main types of computer. It finishes the first part of Module 1, after Memory Types and Features, Storage Devices and Input and Output Devices.
What you will learn
- The common power problems: spikes, surges, sags (brownouts), over-voltage and blackouts.
- What a surge protector, a voltage regulator and an uninterruptible power supply (UPS) do, and when to use each.
- How to estimate how long a UPS can run a computer.
- The main types of computer: supercomputer, server, microcomputer (desktop) and mobile devices.
- How to choose a suitable type of computer for a task.
Part 1: Device power protection
Why power matters
In Trinidad and Tobago, and many other Caribbean islands, the mains supply is about 115 volts (V). A computer’s power supply turns this into the small, steady voltages the parts inside need. If the mains voltage jumps, drops or stops, the computer can restart, lose the data in RAM (RAM is volatile, as you saw in Memory Types and Features), damage files being written, or even be destroyed.
Power problems
| Problem | What happens | How long | Common causes |
| Spike | The voltage shoots very high (it can be thousands of volts) | A tiny fraction of a second | Lightning, large motors switching |
| Surge | The voltage rises above normal | A short time, usually less than a second or a few seconds | Power returning after an outage, heavy equipment switching off |
| Sag (brownout) | The voltage drops below normal | Seconds to hours | Too many loads on the supply, faults, evening demand |
| Over-voltage | The voltage stays above normal | Minutes to hours | Supply faults, poor wiring |
| Blackout | No power at all | Seconds to hours or days | Storms, faults, load shedding |
Surge protector
A surge protector (surge suppressor) looks like a power strip, but inside it has parts (usually metal oxide varistors, MOVs) that send extra voltage to the earth wire when a spike or surge arrives. This protects the equipment plugged into it.
- It is rated in joules: the higher the joule rating, the more energy it can absorb before it wears out.
- It does not help with sags or blackouts.
- After a big strike it may need replacing. Many have a light that shows whether protection is still working.
- A plain power strip without surge protection gives no protection at all.
Voltage regulator
A voltage regulator (automatic voltage regulator, AVR) keeps the output voltage at a steady level. When the mains sags it boosts the voltage, and when the mains runs too high it lowers it. Use one where the supply often runs too low or too high for long periods.
- It fixes sags, brownouts and over-voltage.
- It does not help in a blackout: with no input power, there is nothing to regulate.
Uninterruptible power supply (UPS)
A UPS has a battery and an inverter (which turns the battery’s direct current back into alternating current). When the mains fails, the UPS switches to battery at once, so the computer keeps running. The aim is usually not to work for hours, but to give enough time to save work and shut down properly, or to keep a server running until a generator starts.
- Standby (offline) UPS: the cheapest. Equipment runs from the mains until it fails, then the UPS switches to battery in a few milliseconds.
- Line-interactive UPS: also has a voltage regulator, so it fixes sags and over-voltage without using the battery.
- Online (double-conversion) UPS: the equipment always runs from the inverter, so there is no switch-over gap at all. It is used for servers and medical equipment, and costs the most.
- Most UPS units include surge protection too.
- Many can tell the computer, through a USB cable, to shut down by itself when the battery is low.
Ratings. A UPS is rated in volt-amperes (VA) and in watts (W). For example, a 650 VA UPS might supply at most 390 W. Always compare the total power your devices use, in watts, with the watt rating. The battery stores energy, measured in watt-hours (Wh). A rough runtime is:
runtime in minutes ≈ battery Wh × 0.8 ÷ load in W × 60
The 0.8 allows for energy lost in the inverter and battery. For a PC and monitor using 175 W on an 86 Wh battery: 86 × 0.8 ÷ 175 × 60 ≈ 24 minutes.
Which device for which problem?
| Device | Spike or surge | Sag or over-voltage | Blackout |
| Surge protector | Yes | No | No |
| Voltage regulator (AVR) | Some models only | Yes | No |
| UPS | Yes (most models) | Line-interactive and online models | Yes, for a limited time |
Try it 1Match the power problem to the device
Read each scenario and tap the device that best solves the problem.
Try it 2UPS runtime estimator
Choose a UPS, then tap the devices plugged into its battery side. The estimate uses: minutes = battery Wh × 0.8 ÷ load W × 60. The figures are typical values, and real runtimes vary with battery age and load.
The same sum in C. If you are new to float and printf, see Variables, format specifiers and printf.
#include <stdio.h>
int main(void)
{
float battery_wh = 86; /* energy stored in the UPS battery */
float load_w = 175; /* PC 150 W + monitor 25 W */
float minutes;
minutes = battery_wh * 0.8 / load_w * 60; /* about 80% is usable */
printf("Runtime: about %.0f minutes\n", minutes);
return 0;
}
Output: Runtime: about 24 minutes. Change load_w to 390 and run it again: the runtime falls to about 11 minutes.
Good care of your computer also includes keeping vents clear and backing up: see Taking Care of Your Computer and Backing Up and Restoring Your Work. A UPS protects against losing a few minutes of work; only a backup protects against losing everything.
Part 2: Types of computers
Computers are grouped by size, processing power, cost and how many people use them at once. The CAPE syllabus names four types. (You may also meet older names such as mainframe, a large computer used by banks and governments to process huge numbers of transactions for many users, and minicomputer, a mid-sized machine that servers have largely replaced. For a CSEC-level refresher, see Types of Computer Systems.)
Supercomputer
The fastest and most expensive type. A supercomputer links thousands of processors so that they work on parts of one huge problem at the same time (parallel processing). Its speed is measured in FLOPS (floating-point operations per second); the fastest machines in 2026 manage more than 1018 FLOPS (exascale). It needs a large room, a lot of electricity and powerful cooling.
- Uses: weather and climate models, medicine and materials research, simulating car crashes or earthquakes, space science.
- Users: research teams who submit jobs to it, often over the Internet.

Server
A server is a computer that provides a service to other computers (clients) over a network: web pages, email, shared files, databases or printing. Servers are built to run all day, every day, and often have two power supplies, spare disks (RAID) and a UPS. Many are mounted in racks in a cooled server room or data centre. You will meet servers again in networks: see Types of Computer Networks.
Microcomputer (desktop)
A microcomputer is a computer built around a single microprocessor, for one user at a time. The desktop PC is the usual example: it sits on a desk, has a separate monitor, keyboard and mouse, is cheap for the power it gives, and is easy to repair and upgrade. Laptops are microcomputers too, but because they are portable they are often grouped with mobile devices.
Mobile devices
Mobile devices are small, light and battery powered, so they can be used on the move: laptops, tablets, smartphones and wearables such as smartwatches. They usually have a touch screen, wireless connections (Wi-Fi, Bluetooth, mobile data), GPS and cameras. The trade-offs are battery life, smaller screens, less upgradability, and being easy to lose or steal.
Try it 3Compare the types of computer
Tap one or more features. The table keeps only the computers that have all the features you chose. Costs are rough 2026 values in US dollars.
| Type | Size | Processing power | Users | Typical uses | Rough cost |
|---|---|---|---|---|---|
| Supercomputer | Rows of cabinets filling a large hall | The fastest: thousands of processors working in parallel | Researchers share it by sending jobs | Scientific simulations, climate and medicine research, code breaking | Hundreds of millions of dollars |
| Server | A box or a rack unit; often many racks in a data centre | High, built to run non-stop | Many clients at the same time over a network | Websites, email, files, databases, printing | From about $1,000 to many thousands |
| Desktop | Sits on or under a desk | Good for one person | One user at a time | Office work, school work, games, design | About $400 to $2,000 |
| Laptop | Folds shut; about 1 to 3 kg | Good, a little less than a similar desktop | One user | Work and study on the move | About $300 to $2,000 |
| Tablet | Thin slab, under 1 kg | Moderate | One user | Reading, browsing, drawing, records in the field | About $100 to $1,500 |
| Smartphone | Fits in a pocket | Moderate, but improving fast | One user | Calls, messages, photos, apps, maps | About $100 to $1,500 |
Choosing a type of computer
Ask: How much processing does the task need? How many users at once? Must it be carried? What is the budget? Then justify your choice with those facts. There is more practice in Choosing a Suitable Computer System for a Purpose.
Try it 4Choose the right computer
Read each scenario and tap the type of computer that suits it best.
Summary
| Topic | Key points |
| Surge protector | Stops spikes and surges by sending extra voltage to earth. Rated in joules. No help in a blackout. |
| Voltage regulator | Keeps voltage steady during sags and over-voltage. No help in a blackout. |
| UPS | Battery and inverter. Keeps equipment running in a blackout long enough to save and shut down. Check the watt rating. |
| Supercomputer | Fastest; thousands of processors in parallel; huge scientific jobs. |
| Server | Provides services to many clients over a network; runs non-stop. |
| Microcomputer (desktop) | One user; one microprocessor; cheap, upgradeable. |
| Mobile devices | Portable, battery powered, wireless; laptops, tablets, smartphones, wearables. |
Practice questions
1. Explain the difference between a surge and a sag.
Show answer
A surge is a short rise in voltage above normal. A sag (brownout) is a drop in voltage below normal, which can last from seconds to hours.
2. A school lab in an area with frequent lightning and frequent power cuts wants to protect its PCs. Recommend one device and justify it.
Show answer
A UPS (ideally line-interactive). Most UPS units include surge protection against lightning spikes, and the battery keeps the PCs running during a power cut long enough for students to save their work and shut down properly.
3. Why does a surge protector not help during a blackout?
Show answer
It only removes extra voltage. In a blackout there is no voltage at all, so the computer still switches off. Only a device with a battery (a UPS) can supply power.
4. A UPS has a 173 Wh battery and a 600 W rating. Estimate the runtime for a 250 W server. Could it also run a 500 W laser printer at the same time?
Show answer
173 × 0.8 ÷ 250 × 60 ≈ 33 minutes. No: 250 + 500 = 750 W, which is more than the 600 W rating, so the UPS would be overloaded.
5. State two differences between a supercomputer and a server.
Show answer
Any two: a supercomputer works on one huge calculation using thousands of processors in parallel, while a server provides services (files, web pages, email) to many clients; a supercomputer costs far more; a supercomputer is used by research teams submitting jobs, a server answers many users at once over a network.
6. Give two advantages and one disadvantage of a tablet compared with a desktop for a nurse on a hospital ward.
Show answer
Advantages: portable and light, so it can be carried to each bed; battery powered; touch screen is quick to use. Disadvantage: less powerful or harder to upgrade, a smaller screen, limited battery life, or easier to lose or steal.
Homework
- Find the power protection used at home or school (power strips, surge protectors, voltage regulators, UPS units). Read the label of one and write down its rating (joules, VA or W).
- List the devices you would plug into a UPS at home, look up or estimate their watts, and use the estimator above to choose a UPS.
- For each of the four types of computer, name one real organisation in the Caribbean or elsewhere that would use it, and say why.
Mastery quiz: Power Protection and Computer Types
Your course badges: loading saved progress…
View badges
No course badges earned yet. Score 8/10 in a lesson quiz to earn its badge.
Saved in this browser on this device. Clearing browser data may remove your badges.
Answer all 10 questions. Earn this lesson’s badge at 8/10 or higher. Read the explanations, revisit the Try it activities and retry as often as you need. These are self-study badges, not formal grades.
Exam tips
- Specimen Unit 1 Paper 01 (2021), Item 14. A multiple-choice item that describes an organisation with a very demanding scientific task and asks which type of computer suits it best. It tests whether you can link the size of a processing job to the right type of computer. Some options are older categories that are not in the syllabus list, so know briefly what a mainframe and a minicomputer are. Look for clues about the amount of calculation and the number of users. Open the specimen paper, try it, then check the key.
- Specimen Unit 2 Paper 01 (2021), Item 42. A multiple-choice item on a network diagram, where you identify labelled parts such as a server. It belongs to Unit 2 (networks), so it is only a preview here, but it shows why you must know what a server does. Try it when you study networks.
- Power protection. I have not found a question on surge protectors, voltage regulators or UPS units in the specimen papers or in the solutions on this site so far, but they are on the syllabus list, so learn them.
- More worked answers are on the CS Solutions page.
General advice (from the lesson content, not from a particular paper): when asked to recommend a device or a type of computer, name it, then justify it with facts from the scenario. For power protection, say which power problem it deals with (spike, surge, sag, over-voltage or blackout). For a UPS, say that it gives time to save work and shut down properly. For a computer type, mention processing power, number of users, portability and cost.
Previous: Input and Output Devices (and before that, Storage Devices and Memory Types and Features). Next: Logic Gates and Truth Tables (for a first look at the processor, see 2009 U1 Q2 Part C).
Syllabus link: CAPE Computer Science (CXC A19/U2/21), Unit 1, Module 1: Computer Architecture. Specific Objective 1: state the purpose of the main components of a computer system (device power protection: surge protectors, voltage regulators, Uninterruptible Power Supplies (UPS); types of computers: supercomputer, server, microcomputer (desktop), mobile devices). U1 M1 SO1.
Video search terms
Search YouTube for: "how a UPS works", "surge protector explained", "automatic voltage regulator explained", "what is a supercomputer", "what is a server".
Try it 5Quick quiz
Tap an answer. All the questions are self-checks on this lesson.
Attributions to media used in this post:
Frontier supercomputer photo: OLCF at ORNL, CC BY 2.0, via Wikimedia Commons (File:Frontier Supercomputer (2).jpg).
Updates
2026/11/23
- Quality check: Replaced a dead Flickr credit link and stacked quiz choices one per line.
- Reworded some sentences so they speak directly to students.
- Next lesson now links to Logic Gates and Truth Tables.
2026/11/07
- Added the shared course badge summary and lesson mastery quiz, with feedback, retries and browser-saved progress.
2026/11/04
- Draft created.
© 2026 Vedesh Kungebeharry. All rights reserved.
