4.5 Programming Languages Flashcards
What are the two kinds of Programming Languages, and what is their main difference?
- High-Level Programming Languages
- Low-Level Programming Languages
High-Level Programming Languages are made to resemble human language, whilst Low-Level Languages are closer to what a computer might understand.
What are the Low-Level Programming Languages?
- Machine Code
- Assembly Language
What are the High-Level Programming Languages?
- Python
- Java
- C
- C++
- Ruby
What are the Advantages and Disadvantages of a High-Level Programming Language?
Advantages:
- Similar to Human Language
- Easier to Understand
- Easier to spot errors
- Portable
Disadvantages:
- They have to be translated into machine code
- They tend to be slower
- They can be inefficient
What are the Advantages and Disadvantages of a Low-Level Programming Language?
Advantages:
- Efficient
- Quick to run
- Uses less memory
- Can directly change a computer’s hardware
Disadvantages:
- Difficult to understand
- More specific to a processor
- harder to spot errors
What is Assembly Language?
Assembly Language uses Mnemonics, although it is Low-Level, it still needs to be translated. it is also specific to hardware.
What is a Translator and the three kinds?
A translator converts code from one language into the equivalent code for another language. The kinds are:
- Assemblers
- Compilers
- Interpreters
What are Assemblers? And what do they do?
Assemblers convert assembly code into machine code.
- It turns assembly language into object code then into machine code
- It detects errors in the first phase
- It is Fast but slower than a compiler
What are Compilers? And what do they do?
- Scans the whole code
- Has an executable file
- Can be distributed, but code is hidden
- Faster
- Errors are shown after scanning the whole code