language levels Flashcards

1
Q

describe the three reasons why programmers use high level languages

A
  • uses code similar to a natural human language
  • this makes it easier to understand and use the language
  • using high-level languages leads to fewer errors
  • allows for more powerful and complex commands compared to low level
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

explain one limitation of using high-level language

A

language must be translated into machine code (binary) before it can be run as high level languages cannot be executed directly by the CPU

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

describe a key difference between low-level languages and high-level languages

A

high level language uses code written in a way that is similar to a natural human language making it easier to understand and use

low-level languages do not closely resemble a natural human language making it harder for humans to understand and write in

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

give examples of popular high level languages

A

python
c + +
java
visual basic

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

describe low - level language

A
  • does not closely resemble a natural human language
  • this makes it harder for humans to understand and write in
  • used when a program must be executed quickly or when programmers need to write code that interacts differently with the hardware, such as device drivers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Machine code

A
  • pur binary code that computers can directly process and execute
  • extremely tedious and difficult for humans to understand and write machine code
  • can be used to perform a very specific command
  • executed faster than high level languages as it is already in a format the CPU can execute
  • and does not need to be translated
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what are the two types of low-level language ?

A

machine code

assembly language

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

Assembly language

A
  • uses specialised command mnemonics to perform actions
  • easier to understand and spot errors over machine code
  • faster to execute than high-level languages
  • can be used to directly control the CPU
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

when are low-level languages used ?

A

when a program must be executed quickly

when programmers need to write code that interact directly with hardware, such as device drivers

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