| English | 释义 | 拼音 |
|---|---|---|
| translator/trænˈsleɪtə/ | 翻译程序 | fān yì chéng xù |
| programming language/ˈprəʊɡræmɪŋ ˈlæŋɡwɪdʒ/ | 编程语言 | biān chéng yǔ yán |
| machine code/məˈʃiːn kəʊd/ | 机器码 | jī qì mǎ |
| high-level language/haɪ ˈlevl ˈlæŋɡwɪdʒ/ | 高级语言 | gāo jí yǔ yán |
| low-level language/ləʊ ˈlevl ˈlæŋɡwɪdʒ/ | 低级语言 | dī jí yǔ yán |
| assembly language/əˈsemblɪ ˈlæŋɡwɪdʒ/ | 汇编语言 | huì biān yǔ yán |
| compiler/kəmˈpaɪlə/ | 编译器 | biān yì qì |
| interpreter/ɪnˈtɜːprɪtə/ | 解释器 | jiě shì qì |
| integrated development environment/ˈɪntɪɡreɪtɪd dɪˈveləpmənt enˈvaɪrənmənt/ | 集成开发环境 | jí chéng kāi fā huán jìng |
Languages and translators 翻译程序
- People write programs in a programming language 编程语言; the CPU runs machine code 机器码.
- Languages are high-level or low-level.
- A translator converts a program to machine code — and an IDE helps you write it.
计算概念实验
Classify concrete examples by the computing idea they demonstrate.
High-level vs low-level
- A high-level language 高级语言 (e.g. Python) reads like English — easy to write/fix and portable (runs on different computers).
- A low-level language 低级语言 is close to the hardware: machine code (binary, run directly by the CPU) and assembly language 汇编语言 (mnemonics for machine code).
- Low-level code is CPU-specific — used when you need full hardware control or very fast, small code.

A high-level language (like Python):
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
High-level languages are easy to read/write and portable; low-level languages are CPU-specific.
Compiler vs interpreter
| Compiler | Interpreter | |
|---|---|---|
| Translates | the whole program at once | one line at a time |
| Errors | all reported at the end | stops at the first error |
| Finished program | runs fast, no translator needed | slower, needs the interpreter |
- Use a compiler to share a fast finished program; an interpreter while writing and testing.

Match each term to what it is.
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
High-level → readable; machine code → binary; a compiler translates once, an interpreter goes line by line.
A compiler:
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
A compiler translates everything once into a fast stand-alone program; an interpreter goes line by line.
An interpreter translates the whole program once, so it runs fast without the interpreter; a compiler translates line by line.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
False. They are swapped: a compiler translates the whole program once and the result runs without it, while an interpreter translates and runs line by line, stopping at the first error.
Integrated development environment 集成开发环境 (IDE)
- An IDE puts the tools to write programs in one place:
- a code editor, a run-time environment, a translator, error diagnostics, auto-completion/correction, and prettyprinting (neat colour + indentation).

Which is a feature of an IDE?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
An IDE bundles an editor, translator, run-time, diagnostics, auto-complete and prettyprinting.
Worked example: choosing a translator
A team is writing a game. While they are developing it they test small changes often; at the end they will sell it to customers. Which translator suits each stage?
- During development: an interpreter. It runs the code line by line straight away and stops at the first error, showing where it is, so each small change can be tested quickly.
- For sale: a compiler. It translates the whole program once into an executable file. Customers run it without needing the translator, it runs fast, and the source code stays hidden.
Which translator converts assembly language into machine code?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Each assembly mnemonic maps to one machine-code instruction, which an assembler translates.
A compiler reports all the errors it finds after translating the whole program.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
An interpreter stops at the first error; a compiler gives an error report for the whole program.
You've got it
- high-level = English-like, portable; low-level = machine code (binary) / assembly, CPU-specific
- a translator turns code into machine code; compiler (whole program at once) vs interpreter (line by line)
- compiler → fast finished program; interpreter → easy testing
- an IDE bundles editor, translator, diagnostics, auto-complete and prettyprinting