An input device sends data and instructions into a computer, for example a keyboard, mouse, microphone, scanner or sensor. An output device takes the results of processing out of the computer in a form people (or other machines) can use, for example a monitor, printer or speakers. Some devices, such as a touch screen, do both. When we compare input and output devices we look at port connectivity (how they connect), speed and the quality of output.
This is the third lesson on the parts of a computer, after Memory Types and Features and Storage Devices. If you did CSEC, Choosing the Right Input and Output Devices is a short refresher.
Try it 1Input, output or both?
Tap a device, then tap where it belongs. A device is input if data goes into the computer, output if data comes out of the computer, and both if it does both.
Port connectivity
A port is a socket on the computer where a device is connected. The port decides what the cable can carry (data, power, video, sound or a network) and how fast. Many devices now connect wirelessly instead, using Bluetooth or Wi-Fi. When a device is connected, the operating system uses a small program called a device driver to talk to it.
| Port or connection | What it is used for | Speed (typical maximum) |
| USB-A | Keyboards, mice, flash drives, printers. Flat rectangular plug, one way up. | USB 2.0: 480 Mbit/s. USB 3.x: 5 to 10 Gbit/s. |
| USB-C | Phones, laptops, external drives, monitors. Small oval plug that fits either way up; can carry power, data and video. | Up to 10 Gbit/s on USB 3.2; 40 Gbit/s or more on USB4 and Thunderbolt. |
| HDMI | Monitors, TVs and projectors: digital video and sound in one cable. | HDMI 2.0: 18 Gbit/s. HDMI 2.1: 48 Gbit/s. |
| VGA | Older monitors and projectors: analogue video only, no sound. | Analogue; the picture gets less sharp at high resolutions. |
| 3.5 mm audio jack | Headphones, speakers and microphones (analogue sound). | Analogue sound only. |
| Ethernet (RJ-45) | A wired connection to a network. | Usually 1 Gbit/s. |
| Bluetooth | Wireless earbuds, keyboards, mice and speakers, over a short range (about 10 m). | A few Mbit/s: enough for sound and typing, slow for big files. |
| Wi-Fi | Wireless printers and network connections. | Hundreds of Mbit/s, depending on the router and distance. |
Things to think about when choosing a connection: does the computer have that port; is the port fast enough for the device (a webcam or external SSD needs more speed than a mouse); does the cable also need to carry power or sound; and would wireless be more convenient (no cable), or is wired better (faster, more reliable, no batteries to charge)?
Try it 2Match the port
Read how the device connects and tap the port or connection it uses. A wrong answer gives you a hint.
Speed
Speed means different things for different devices:
- Input speed: how quickly data can be entered. A keyboard is limited by how fast a person types. A barcode reader, or the MICR reader that reads the magnetic ink numbers on bank cheques, enters data much faster and with fewer errors, because no one types it.
- Printer speed is measured in pages per minute (ppm). Laser printers are usually faster than inkjet printers for large amounts of text.
- Monitor speed is the refresh rate in hertz (Hz): how many times a second the picture is redrawn. 60 Hz is normal; gaming monitors use 144 Hz or more for smoother movement.
- Connection speed: the port or wireless link must be fast enough for the data (see the table above).
Quality of output
The quality of output is how good the result looks or sounds.
- Screens: the resolution is the number of pixels across and down, for example 1920 × 1080 (Full HD) or 3840 × 2160 (4K). More pixels give a sharper picture. The colour depth is the number of bits used for each pixel’s colour: 24 bits gives 224, about 16.7 million colours.
- Printers: quality is measured in dots per inch (dpi). A laser printer gives sharp text (typically 600 dpi or more) and is cheap per page for large jobs. An inkjet printer gives good colour photos and is cheap to buy, but the ink is expensive per page. A dot-matrix (impact) printer is noisy and gives low quality, but it can print on multi-part forms, where a copy is made by pressing through the sheets.
- Sound: better speakers and headphones give clearer sound with less distortion.
Higher quality costs something: more pixels and more colours mean bigger files, more memory and more data to send through the port.
Try it 3Resolution and quality explorer
The same picture is drawn with fewer or more pixels, and with fewer or more colours. Watch the quality change, and the number of bytes it costs.
Try 8 pixels with 1 bit, then 256 pixels with 24 bits. Which looks like a real photo?
Specialised devices
The syllabus names four specialised devices. Each one solves a particular problem.
Braille keyboard
A braille keyboard lets a blind or visually impaired person type by touch. Some are ordinary keyboards with raised braille dots on the keys. Others have six main keys, one for each dot of a braille cell, as on a Perkins Brailler: you press the keys for the dots together to make one letter. Braille users often also use a refreshable braille display (an output device whose pins rise and fall to show text as braille) and a screen reader, software that reads the screen aloud.

Image: Perkins brailler keyboard layout by Emflazie, CC0 (public domain), via Wikimedia Commons.
Sensors
A sensor is an input device that measures a physical quantity, such as temperature, light, moisture, pressure, humidity or movement. Most sensors give an analogue signal, so an analogue-to-digital converter (ADC) turns it into a binary number the computer can process. Sensors are used in monitoring and control systems, for example greenhouses, security alarms, traffic lights and car parking sensors. They take readings automatically and continuously, day and night, and are more accurate than a person.
In a control system, the computer compares each reading with a set value called the threshold. If the reading crosses it, the computer sends a signal to an actuator (a motor, fan, pump, lamp or alarm) to switch on or off.
Try it 4Sensor and threshold
A computer reads a sensor over and over. When the reading crosses the threshold, it switches a device on or off. No person is needed.
Switch log:
Touch screen
A touch screen is both an output device (the display) and an input device (it detects where it is touched). A resistive touch screen detects pressure, so it works with a stylus or gloves. A capacitive touch screen detects the small electrical charge of a finger, is more sensitive and supports multi-touch, such as pinching to zoom. Touch screens are used on phones, tablets, ATMs, airport kiosks and shop tills. They are easy to learn and need no keyboard or mouse, but they get fingerprints, are slow for typing a lot of text, and small buttons are hard to hit. That is why the buttons on this page are at least 48 pixels tall.
Concept keyboard
A concept keyboard is a flat board divided into areas. Each area stands for a whole item or idea, not a single letter, and is shown by a picture or word on an overlay. The areas can be programmed for each use. Concept keyboards are used on fast-food tills (one press for "large fries"), and by young children and people with learning difficulties. Data entry is fast with few errors, and the sealed surface is easy to wipe clean and resists spills. The drawback is that only a fixed set of choices can be entered.
Try it 5Which specialised device?
Read the scenario and tap the most suitable device. A wrong answer gives you a hint, so you can try again.
Summary
| Device | Type | Typical use |
| Keyboard, mouse | Input | Typing and pointing on a desktop or laptop |
| Scanner, microphone | Input | Turning paper images and sound into data |
| Braille keyboard | Input | Typing by touch for blind or visually impaired users |
| Sensor | Input | Automatic measurements in monitoring and control systems |
| Concept keyboard | Input | Fast tills, young children, users with learning difficulties |
| Monitor, projector | Output | Showing text, images and video |
| Printer | Output | Hard copy on paper (laser, inkjet, dot-matrix) |
| Speakers, headphones | Output | Sound |
| Touch screen | Both | Phones, tablets, ATMs, kiosks |
Input and output in C
In C, scanf reads input (normally from the keyboard) and printf sends output (normally to the screen). Your program does not need to know which keyboard or monitor is attached: the operating system and its device drivers deal with the actual devices.
#include <stdio.h>
int main()
{
int age;
printf("Enter your age: ");
scanf("%d", &age);
printf("Next year: %d\n", age + 1);
return 0;
}
Whatever whole number the user types is stored in the variable age in RAM, and the program prints one more than it. More on this in Variables, format specifiers and printf and Adding 2 numbers: outputting the result with printf().
Practice questions
1. Define an input device and an output device, and give TWO examples of each.
Show answer
An input device sends data and instructions into the computer, e.g. keyboard, scanner. An output device presents the results of processing from the computer, e.g. monitor, printer.
2. Explain why a touch screen is called both an input device and an output device.
Show answer
It displays information like a monitor (output), and it also detects where the user touches and sends that to the computer (input).
3. A teacher wants to show a video with sound from a laptop on the classroom TV. Suggest a suitable port and justify your answer.
Show answer
HDMI: it carries high-definition digital video and the sound in one cable, and most TVs and laptops have it. (VGA would carry no sound.)
4. Give TWO ways the quality of output of a printer and of a monitor can be compared.
Show answer
Printer: resolution in dots per inch (dpi); colour or black only. Monitor: resolution (pixels, e.g. 1920 × 1080); colour depth (bits per pixel); refresh rate for smooth movement.
5. A farmer wants the greenhouse fan to switch on automatically when it gets too hot. Explain how a sensor is used.
Show answer
A temperature sensor takes readings continuously. An ADC converts each analogue reading to digital. The computer compares the reading with a threshold, e.g. 30 °C; if it is above, it sends a signal to switch the fan on, and switches it off when the reading falls below again.
6. State TWO reasons a fast-food restaurant might use a concept keyboard at its tills.
Show answer
For example: one press enters a whole item, so orders are entered quickly; pictures make it easy for new staff, with fewer errors; the sealed surface is easy to clean and resists spills.
7. Describe how a braille keyboard helps a visually impaired user.
Show answer
It lets the user type by touch, either with raised braille dots on the keys or with six keys that each make one dot of a braille cell, pressed together to make a character.
8. An image is 1920 × 1080 pixels with a colour depth of 24 bits. Calculate its uncompressed size in MB.
Show answer
1920 × 1080 = 2,073,600 pixels. 24 bits = 3 bytes, so 2,073,600 × 3 = 6,220,800 bytes. 6,220,800 ÷ 1024 ÷ 1024 ≈ 5.9 MB.
Homework
- Look at the ports on a computer or laptop at home or at school. List each port, say what it is (use the table above), and name one device you could connect to it.
- On a Windows computer, open Device Manager and list the input and output devices installed (keyboards, mice, monitors, audio). The CAPE syllabus suggests this activity.
- Choose one specialised device from this lesson. Write a short paragraph on who uses it, what problem it solves, and one advantage and one disadvantage.
Mastery quiz: Input and Output Devices
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
- Use the syllabus headings. For this objective the syllabus compares input and output devices by port connectivity, speed and quality of output, and names four specialised devices: the braille keyboard, sensors, the touch screen and the concept keyboard. When you compare devices in an answer, organise it under those headings.
- 2024 Unit 1 Paper 02, Question 2(b). Sensors turn up inside a logic question here: several sensors in a security system have to share one line, and you are asked how a multiplexer makes that possible. It tests whether you can link input devices to the building blocks from Module 1. Explain which inputs the sensors connect to, what the select lines do, and how each sensor gets the line in turn. Try it, then compare with the solution on this site: 2024 U1 Q2. See also Multiplexers.
- 2024 Unit 1 Paper 02, Question 1(b)(ii). This part compares RAM with a flash drive on volatility and portability. It tests whether you can explain portability in terms of the device itself, and the port it uses is part of that answer. The solution on this site points out that a flash drive plugs into a USB port. Try the part first, then compare.
- Specimen Unit 1 Paper 02 (2021), Question 2(b)(ii). This part is about the kinds of instruction a CPU has in its instruction set. One kind moves data, including to and from input and output devices, which is where this lesson meets the processor. For each kind you name, give a short description and an example. Try it when you study the CPU, then check the mark scheme.
- Specimen Unit 2 Paper 01 (2021), Item 45. A multiple-choice item on what happens to a running process while it waits for input from a device, and when that input arrives. It belongs to Unit 2 (operating systems: process states, device drivers, polling, buffering and spooling), so it is only a preview here. When you get there, draw the process state diagram before you choose an answer. Open the specimen paper and try it then.
- More worked answers are on the CS Solutions page.
General advice (from the lesson content, not from a particular paper): when asked to choose a device for a scenario, name the device, then justify it with the features in the question, such as who the user is, the port or connection, the speed needed and the quality of output.
Try it 6Quick quiz
Tap an answer. All the questions are self-checks on this lesson.
Previous: Storage Devices (and before that, Memory Types and Features). Next: the processor (CPU), and how it moves data between memory and the input and output devices (coming soon in this course; for now see 2009 U1 Q2 Part C). Sensor readings become binary numbers, so data representation follows: see Decimal to binary. For how users interact with a computer, see User Interfaces: Command Line, Menus, Graphical and Touch.
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 (input/output devices: port connectivity, speed, quality of output; specialised devices: braille keyboard, sensors, touch screen, concept keyboard). U1 M1 SO1.
Attributions to media used in this post:
Braille keyboard diagram: Emflazie, CC0 1.0 (public domain), via Wikimedia Commons (File:Perkins brailler keyboard layout.png).
Updates
7 Nov 2026: Added the shared course badge summary and lesson mastery quiz, with feedback, retries and browser-saved progress.
28 Oct 2026
- Draft created.
- Exam references reworded and quiz questions rewritten.
© 2026 Vedesh Kungebeharry. All rights reserved.
[…] 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 is the last part of Unit 1, Module 1, Specific Objective 1, after Memory Types and Features, Storage Devices and Input and Output Devices. […]