4.5: programming languages Flashcards

1
Q

low level programming languages

A
  • example of low- level language is **assembly language **
  • easier to work with than machine code
    written as a mnemonic.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

assembler

A

converts assembly language to machine code

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

machine language

A

1s and 0s
very difficult to write

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

high level programming languages

A
  • much more common to write software in high-level programming languages
  • examples of high level language: Python, C#, Java or Visual Basic.
  • For these programs to run on the CPU, the source code has to be translated into machine code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how are high level anguages converted to machine code

A

compiler or interpreter

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

interpreter

A
  • every computer that will run the progrsam needs the interpreter installed
  • can find errors and tell you whats wrong
  • programs run slower because the interpreter has to translate the source code while the program is running
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

compiler

A
  • can run on its own on any similar computer
  • cannot produce onject code unless the whole program is correct
  • hard to debug your program as they report lots of errors
  • easier to protect code from being altered or copied
How well did you know this?
1
Not at all
2
3
4
5
Perfectly