Translators and Facilities of Languages (2.5) Flashcards
1
Q
What is high level languages
A
- easier to write and program as no expertise is needed (closest to human language and understanding). More translation needed to convert into machine code
2
Q
What are some examples of high level language
A
- Python, Java, C++
3
Q
What are the advantages of high level languages
A
- easier to program and modify
- programs can be written much faster
- code can be debugged easily
- code is portable across multiple platforms
4
Q
What are the disadvantages of high level languages
A
- requires more memory than low level languages
- translation takes longer and less control over hardware
5
Q
What is a low level language
A
- programs written related to specific computer hardware and architecture, so less translation needed to convert into machine code
6
Q
What is an example of low level languages
A
- Assembly language, machine code
7
Q
What are the advantages of low level languages
A
- assembly language uses English like statements
- translated programs require less memory
8
Q
What are the disadvantages of low level languages
A
- machine code is difficult to understand and takes longer time to write programs
- code is machine dependant (not portable)
9
Q
What is a translator
A
- A translator converts programming language and instructions into machine code, to be executed by the computer (using binary). There are TWO main types of translators
(for HLLs):
1 - Compiler
2 - Interpreter
10
Q
What is a compiler
A
- translates all the code into machine code in one go, producing an executable file which can be run.
- Much faster to run than an interpreter,
- but not as effective to debug for errors
11
Q
What is an interpreter
A
- translates the code one line at a time, into machine code during program execution.
- Much more effective to debug for individual errors,
- but interpreter code is far less slow than compiled code.
12
Q
What is an IDE
A
- An IDE is a software program which provides programmers with many different tools and features to help aid program and software development
13
Q
Code editors (IDE)
A
- (allowing program code to be written and edited, often highlighting keywords and syntax with colours
14
Q
Debugging (IDE)
A
- (find/diagnose and fix errors and also show information about the errors e.g. syntax or runtime errors as well as where they occur). Some IDEs also suggest solutions
15
Q
Run Time Environment (IDE)
A
- (enables the program to be run straight after you have written it, to check for run time errors). Also allows testing of the program