Unit 8 Program Construction

studied byStudied by 3 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 10

flashcard set

Earn XP

11 Terms

1

Assemblers

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

New cards
2

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

New cards
3

Compiler

Converts source code into executable machine code

New cards
4

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.

New cards
5

What is a translator

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

New cards
6

What is a syntax error

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

New cards
7

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.

New cards
8

What is a logical error

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

New cards
9

What is a linking error

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

New cards
10

What is a rounding error

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

New cards
11

What is a truncating error

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

New cards

Explore top notes

note Note
studied byStudied by 11 people
980 days ago
5.0(1)
note Note
studied byStudied by 39 people
956 days ago
5.0(3)
note Note
studied byStudied by 7 people
398 days ago
5.0(1)
note Note
studied byStudied by 17 people
853 days ago
5.0(1)
note Note
studied byStudied by 11338 people
656 days ago
4.6(36)
note Note
studied byStudied by 116 people
488 days ago
5.0(1)
note Note
studied byStudied by 30 people
700 days ago
5.0(1)
note Note
studied byStudied by 20 people
828 days ago
5.0(1)

Explore top flashcards

flashcards Flashcard (83)
studied byStudied by 57 people
770 days ago
5.0(2)
flashcards Flashcard (40)
studied byStudied by 10 people
728 days ago
5.0(1)
flashcards Flashcard (40)
studied byStudied by 2 people
607 days ago
5.0(2)
flashcards Flashcard (59)
studied byStudied by 46 people
273 days ago
5.0(1)
flashcards Flashcard (54)
studied byStudied by 14 people
422 days ago
5.0(1)
flashcards Flashcard (71)
studied byStudied by 35 people
492 days ago
5.0(1)
flashcards Flashcard (352)
studied byStudied by 46 people
399 days ago
5.0(1)
flashcards Flashcard (114)
studied byStudied by 2 people
13 minutes ago
5.0(1)
robot