Back to marketplace

1.8

No description yet. This curated deck is ready for daily study.

Total cards: 19•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (19)

#1
Front (Question)

Lexical Analysis

Back (Answer)

• Comments and unneeded spaces are removed • Keywords, constants and identifiers are replaced by tokens • A Symbol Table is created which holds the address of variables, labels and subroutines • Creates new table entries in the symbol table

#2
Front (Question)

Syntax Analysis

Back (Answer)

• Tokens are checked to see if they match the spelling and grammar expected, using standard language definitions • Parsing each token to determine if it uses the correct syntax for the programming language • If syntax errors are found, error messages are produced./ if no errors are found the compilation process continues • Adds information regarding attribute type, scope, line of reference, etc in the symbol table.

#3
Front (Question)

Semantic Analysis

Back (Answer)

• Variables (are checked to ensure that they) have been properly declared and used • Variables (are checked to ensure that they) are of the correct data type • Operations are (checked to ensure that they are) legal for the type of variable being used

#4
Front (Question)

Code Optimisation

Back (Answer)

• high-level general programming constructs are replaced by very efficient low-level programming codes OBJECTIVES - Achieve the required output of the program - Not delay the compilation process - Increase speed of the program - Decrease resources demand

#5
Front (Question)

Code Generation

Back (Answer)

Machine code is generated

#6
Front (Question)

Translator

Back (Answer)

A computer program used to convert a program from one languate to another

#7
Front (Question)

Compiler

Back (Answer)

Takes the source code of the entire program as input to produce a machine code version of the program which can be run through a single executable file

#8
Front (Question)

Interperter

Back (Answer)

Takes a single code instruction as input, translates and executes it

#9
Front (Question)

Compiler Advantages

Back (Answer)

• Can be re-run without further translation • Executes faster than interperated code • Machine code can be distributed without compiler being present • Machine code is more seccure, cannot be read without a lot of reverse engineering • Libraries can be packaged with the executable

#10
Front (Question)

Compilers Disadvantages

Back (Answer)

• Compilers take longer than interperating • Errors are only reported after compilation has finished • One error may cause many more related errors • Recompiling after fixing an error adds time

#11
Front (Question)

Interperators Advantages

Back (Answer)

• Debugging will stop translation at the point where error occurs • Complete re-compilation not needed when error found • Easier to partially test and debug • Can be used during program development • Source code is visible and can be checked for security purposes, before being interperated

#12
Front (Question)

Interperator Disadvantages

Back (Answer)

• Associated libraries must be present for the code to run • To execute source code the interperator needs to be installed on the running platform • Source code needs to be present, making interllectual property harder to protect

#13
Front (Question)

Assembler

Back (Answer)

• Translates assembly into machine code • Each single assembly instruction will translate to one machine code instruction • Assembly is easier and less prone to errors than coding in binary • Each CPU has own instruction set

#14
Front (Question)

Syntax Error

Back (Answer)

Occurs when a command does not folow the expected syntac of a language

#15
Front (Question)

Linking Error

Back (Answer)

Calling a standard function where the correct library has not been linked to the program

#16
Front (Question)

Semantic Error

Back (Answer)

Variable declared illegally

#17
Front (Question)

Run Time Error

Back (Answer)

An error that only occurs when a program is running and is difficult to foresee beofree it is compiled and run (program compiles successfully but doesnt perform correctly)

#18
Front (Question)

Logical Error

Back (Answer)

An error that causes a program to output an incorrect answer to what was expected

#19
Front (Question)

Rounding/ Truncation Error

Back (Answer)

Continued use in further calculations causes inaccuracy