Classification of programming languages Flashcards

1
Q

What is low level - (Generation 1)?

A

Machine code

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

What is Machine code?

A

Machine code is the set of binary instructions that are used by the CPU to perform a task. Machine code is processor dependent.

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

What is low level - (Generation 2)

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

What is Assembly language?

A

Assembly language is a low-level programming language which is processor-dependent; each instruction is one machine operation.

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

What is High level language?

A

High-level language is a computer programming language based on natural language or mathematical notation.

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

What are examples of high level language?

A

Examples: C#, Python, Java

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

What is declarative language?

A

Declarative high-level languages are also based on natural language and are used to declare the necessary information to produce the required result.

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

What are examples of declarative language?

A

Examples: SQL, CSS, Prolog

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

What are procedural languages?

A

These languages, sometimes known as procedural languages, make use of subroutines and functions to aid readability and hence maintainability.

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

How do High level languages include imperative languages?

A

High-level languages include imperative languages, which is where the program statements or instructions are executed in a sequence or order as defined by the programmer.

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

How are low level languages imperative?

A

Low-level languages are imperative as all instructions are executed in a set sequence; each statement in an imperative high level is translated into numerous machine code statements prior to the execution of the code

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

What are the advantages of low level language compared to high level languages?

A
  • Programming in low-level code can create faster and more efficient code as the programmer controls the performance level of the created code; with high-level programming there is a reliance on the compiler to create optimised code.
  • Low-level language code is memory efficient due to the lack of abstraction in the code when compared to high level languages.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the disadvantages of low level language compared to high level languages?

A
  • It is difficult to learn to program in low-level languages whereas high-level languages have more support and training options.
  • High-level code can be self-documenting which makes it more understandable and so aids program maintenance and debugging.
  • Machine-code and assembly programs are specific to a limited range of processors whereas high-level code can be compiled to run on a wide range of processors.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly