💻 Computer Basics

Types of Computers & Languages

⏱ 2 hr3 topicsInteractive
🎯 By the end: You can name the everyday types of computers, tell low-level from high-level languages, and explain what assemblers, compilers and interpreters do.

Computers come in many shapes — from a watch on your wrist to a laptop in your bag. And to give them instructions, we use special computer languages. This chapter covers both.

1Types of computers you use

TypeWhat it is
DesktopA computer that stays on a desk (separate monitor, keyboard, CPU box)
LaptopA portable, all-in-one computer with a battery
TabletA flat touchscreen device, no keyboard needed
SmartphoneA pocket computer that is also a phone
WearableWorn on the body — a smartwatch or fitness band
As you go down the list, the devices get smaller and more portable — but a desktop is usually the most powerful for its price.
Key points
  • Everyday computers: desktop, laptop, tablet, smartphone and wearables (smartwatch).
  • They get smaller and more portable from desktop to wearable.
  • All of them are computers — they input, process, store and output data.

2Low-level vs high-level languages

A computer language is how we write instructions for a computer. There are two families:

Low-level languagesHigh-level languages
ExamplesMachine language (0s & 1s), Assembly languagePython, Java, Scratch
Closer toThe machine/hardwareHuman language (English-like)
Easy for humans?Very hardMuch easier
Machine language is the only language a computer truly understands — just 0s and 1s (binary). Assembly uses short codes instead. High-level languages are written like English, so they must be translated for the computer.
Key points
  • Low-level languages (machine, assembly) are close to the hardware and hard for humans.
  • High-level languages (Python, Java, Scratch) are English-like and easy to read.
  • Machine language is the only one the computer directly understands — just 0s and 1s.

3Language translators

Because computers only understand machine language, a translator converts our code into 0s and 1s. Three kinds:

TranslatorConverts
AssemblerAssembly language → machine language
CompilerA whole high-level program → machine language, all at once
InterpreterA high-level program → machine language, one line at a time
Compiler vs Interpreter: a compiler translates the whole program first (like translating a whole book), while an interpreter translates and runs it line by line (like a live translator).
Key points
  • A translator converts our code into machine language (0s and 1s).
  • Assembler: assembly → machine code.
  • Compiler translates the whole program at once; interpreter does it one line at a time.

★ Practical: spot the type

From the devices around you:

  1. Name one wearable computer and one tablet you've seen.
  2. Say whether Python is a low-level or high-level language.
  3. Which language does a computer directly understand?
  4. State one difference between a compiler and an interpreter.

Ready for the chapter test?

Answer 5 questions. Score 60% or more to mark this chapter complete.

Start the test →

💡 Log in to save your progress and earn the certificate.