4.4.4 Classification of programming languages and translators Flashcards
(8 cards)
1
Q
What s machine code?
A
Everything inside a computer can only understand instruction given in binary.
2
Q
What are the characteristics of machine code?
A
- Does not need to be translated before being run because it is written in binary
- Hard to read and write a program. Very difficult for humans to debug and fix.
3
Q
What are characteristics of low level languages?
A
- 1:1 relation ship with processor instructions
- Fine control over how a program is executed
- Optimize a program
4
Q
What are some examples of High level languages?
A
Python, Visual Basic, C++, C#
5
Q
What are the characteristics of high level languages?
A
- Portable
- Translated using a compiler or interpreter
- 1: Many - one statement translates to many machine code instructions.
6
Q
What are the two low level languages?
A
Assembly Language and Machine Code
7
Q
What are the characteristics of assembly language?
A
- Allows programmers to express programs using simple commands which can be translated into machine code.
- These languages were written for a specific processor
- Difficult to write and understand
8
Q
What is the definition of machine oriented?
A
- Can directly interact with components such as registers and main memory.
- 1:1 relationship between assembly language and machine code
- Each assembly language instruction translates into one machine code instruction.