2.5 Languages + IDEs Flashcards
1
Q
High level language pros
A
- Easy to read and write
- Easy to debug
- Portable
- Multiple commands per line
2
Q
High level language cons
A
- Cant manipulate hardware
- Needs translation
- Less efficient
- More memory
3
Q
Low level language pros
A
- Complete control over system
- Occupies less memory
- Direct manipulation of software
4
Q
Low level language cons
A
- Difficult to write/ understand
- Machine dependent
- Prone to errors
- Need to know computer architecture
5
Q
How does a compiler work
A
- Translates all at once
- Errors will be compiled
- Creates .exe file
6
Q
How does an interpreter work
A
- Translates one line at a time immediately after the other
- Stops when there is a syntax error
7
Q
Compiler pros
A
- Fast
- Optimises code
- Source code not seen
8
Q
Compiler cons
A
- Memory intensive
- Difficult to debug
- Compiled after changes
- Designed for a specific processor
9
Q
Interpreter pros
A
- Stops after an error
- Easier to debug
- Less RAM used
10
Q
Interpreter cons
A
- Slower
- Translated every time
- Not optimised
11
Q
Things in an IDE
A
- Syntax highlighting, changes the text colour depending on what kind of part it is
- Break points, allows sections of code to be tested
- Line numbers, makes code easier to read
- Variable watching, allows variables to watched and how they change throughout the program
- Code folding, makes code easier to read and makes it shorter
- Error diagnostics, shows what is wrong and where they are