📌 A computer obeys literally, obeys instructions in order unless told to jump, and never guesses when an instruction has no single definite meaning.
Machine → assembly → high-level
📌 Compilation is slower to start but faster to run and checks the whole file before execution, whereas interpretation starts immediately but translates during execution and finds an error when its line is reached.
Whole file first versus one instruction at a time
| Family | Primary purpose | Examples |
|---|---|---|
| System program | Keeps the machine working and manages resources | Operating system, printer driver, antivirus scanner, file manager |
| Application program | Performs a task wanted by the user | Word processor, web browser, spreadsheet, school enrollment portal |
| Dimension | Compilation | Interpretation |
|---|---|---|
| Translation timing | Whole source file before execution | One instruction at a time during execution |
| Output | Saved machine-code file | Nothing saved |
| Startup and execution | Slower startup, faster execution | Faster startup, slower execution |
| Error detection | Whole file checked before anything runs | Error found when the faulty line is reached |
Teste dein Wissen zu Introduction to Computer Programming mit 21 Multiple-Choice-Fragen mit detaillierten Korrekturen.
1. What does Unit 1 require students to do with code?
2. What is the scheduled format of Unit 1?
Merke dir die Schlüsselkonzepte von Introduction to Computer Programming mit 38 interaktiven Karteikarten.
How long is the lecture time in Unit 1?
Two hours of lecture time.
Does Unit 1 include any laboratory work?
No, it includes no laboratory work.
Do students write or compile code in Unit 1?
No, students write and compile no code in Unit 1.
Importiere deinen Kurs und die KI erstellt in 30 Sekunden Lernzettel, Quizze und Karteikarten.
Lernzettel-Generator