Unit 8 Program Construction

0.0(0)
studied byStudied by 4 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/10

Last updated 8:09 PM on 2/29/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

11 Terms

1
New cards

Assemblers

A program which allows to convert low level language into machine code

2
New cards

Interpreter

Converts each line of the source code into machine code, and execute each line of the code as it run. Which is then executed by the cpu

3
New cards

Compiler

Converts source code into executable machine code

4
New cards

Explain the 4 main stage of compilation

  1. Lexical analysis

    • removes unneeded comments and spaces

    • Creates a symbol table which holds the address of variables, labels and subroutines

  2. Syntax analysis

    • The spelling and gramma of token are checked

    • If syntax error is found, error message is shown

    • Variable are checked to make sure it has properly declared

  3. Code generation

    • Machine code is generated

    • Code is optimised

  4. Code optismisation

    • been optismised to be fastefficient and uses as little of the computer's resources as possible.

5
New cards

What is a translator

It translate a program written in one language to another language without changing the program

6
New cards

What is a syntax error

An error that occurs when the rules of the language have not been adhered to, found during translation.

7
New cards

What is a run time error

An unexpected error that stops the program from executing. E.g. A user inputting a string into a variable that is declared as an integter.

8
New cards

What is a logical error

An Error that doesn't stop a program executing but results in the wrong answer.

9
New cards

What is a linking error

An error that occurs when a program calls a function that is not correctly linked.

10
New cards

What is a rounding error

The difference between the original value and the value it is rounded to.

11
New cards

What is a truncating error

The difference between the original value and the value it is truncated to.

Explore top notes

note
Chapter 1: Basic Economic Concepts
Updated 1320d ago
0.0(0)
note
yr 8 - history the dark ages
Updated 139d ago
0.0(0)
note
Confederation Lecture Vocabulary
Updated 305d ago
0.0(0)
note
Chapter 8: Solutions
Updated 1064d ago
0.0(0)
note
week 1
Updated 756d ago
0.0(0)
note
How to write a thesis for AP lit
Updated 427d ago
0.0(0)
note
Chapter 1: Basic Economic Concepts
Updated 1320d ago
0.0(0)
note
yr 8 - history the dark ages
Updated 139d ago
0.0(0)
note
Confederation Lecture Vocabulary
Updated 305d ago
0.0(0)
note
Chapter 8: Solutions
Updated 1064d ago
0.0(0)
note
week 1
Updated 756d ago
0.0(0)
note
How to write a thesis for AP lit
Updated 427d ago
0.0(0)

Explore top flashcards

flashcards
Morse Code
26
Updated 1199d ago
0.0(0)
flashcards
OMMIII Final Glossary Terms
33
Updated 829d ago
0.0(0)
flashcards
APUSH Ch. 17 + 18
33
Updated 466d ago
0.0(0)
flashcards
Purnell Model
21
Updated 1118d ago
0.0(0)
flashcards
Geology Exam II
87
Updated 409d ago
0.0(0)
flashcards
Unit 2: Population & Migration
61
Updated 131d ago
0.0(0)
flashcards
Honors Algebra 2- Vocab #1
22
Updated 576d ago
0.0(0)
flashcards
Morse Code
26
Updated 1199d ago
0.0(0)
flashcards
OMMIII Final Glossary Terms
33
Updated 829d ago
0.0(0)
flashcards
APUSH Ch. 17 + 18
33
Updated 466d ago
0.0(0)
flashcards
Purnell Model
21
Updated 1118d ago
0.0(0)
flashcards
Geology Exam II
87
Updated 409d ago
0.0(0)
flashcards
Unit 2: Population & Migration
61
Updated 131d ago
0.0(0)
flashcards
Honors Algebra 2- Vocab #1
22
Updated 576d ago
0.0(0)