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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the characteristics of machine code?

A
  1. Does not need to be translated before being run because it is written in binary
  2. Hard to read and write a program. Very difficult for humans to debug and fix.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are characteristics of low level languages?

A
  1. 1:1 relation ship with processor instructions
  2. Fine control over how a program is executed
  3. Optimize a program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are some examples of High level languages?

A

Python, Visual Basic, C++, C#

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the characteristics of high level languages?

A
  1. Portable
  2. Translated using a compiler or interpreter
  3. 1: Many - one statement translates to many machine code instructions.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the two low level languages?

A

Assembly Language and Machine Code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the characteristics of assembly language?

A
  1. Allows programmers to express programs using simple commands which can be translated into machine code.
  2. These languages were written for a specific processor
  3. Difficult to write and understand
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the definition of machine oriented?

A
  1. Can directly interact with components such as registers and main memory.
  2. 1:1 relationship between assembly language and machine code
  3. Each assembly language instruction translates into one machine code instruction.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly