Languages Flashcards

(14 cards)

1
Q

What are the 2 types of programming languages?

A

High-level and low-level

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

How are high-level programming languages written?

A

Written in a way similar to natural human language, i.e. English, making it easier to understand and use the language

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

Benefits of high-level programming languages

A
  • Leads to fewer errors
  • Allows for more powerful and complex commands
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Drawback of high-level programming languages

A

Must be translated into machine code before it can be run, as they cannot be executed directly by the CPU

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

State examples of high-level programming languages

A

Python, Java, Visual Basic, C++

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

How are low-level programming languages written?

A

Do not closely resemble a natural human language

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

Drawback of low-level programming languages

A

Harder for humans to understand and write in

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

When are low-level programming languages used?

A
  • When a program must be executed quickly
  • When programmers need to write code that interacts directly with the hardware, e.g. device drivers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the 2 types of low-level languages?

A

Machine code and assembly language

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

What is machine code?

A

Pure binary code that computer processors can directly process and execute

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

Drawback of machine code

A

Extremely tedious and difficult for humans to understand and write in

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

Benefits of machine code

A
  • Useful when a programmer needs to perform a very specific command that cannot be done in a high-level language
  • Will be executed faster than high-level languages, as it is already in a format that that 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
13
Q

What is assembly language?

A

Uses specialised command mnemonics to perform actions

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

Benefits of assembly language

A
  • Faster to execute than high-level languages, as it can be used to directly control the CPU
  • Preferred over machine code by programmers, as it is easier to understand and spot errors
How well did you know this?
1
Not at all
2
3
4
5
Perfectly