Classification of programming languages Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a Low Level Language?

A

A programming language that describes directly how to interact with the computer’s hardware

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

Describe the two types of low level languages

A

Machine code: Each instruction is written in binary code

Assembly language: Each instruction is represented as a text based command

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

Why is assembly language more often used to code?

A

Binary commands can be difficult to remember and it is easy to make a mistake inputting them.

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

What is a High Level Language?

A

A programming language that uses keywords and constructs written in an English-like form

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

What is an imperative HLL?

A

A language where commands are used to say how the computer should complete a task

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

What is a declarative HLL?

A

A language in which the programmer codes what they want to happen, but not how.

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

What are the advantages and disadvantages of low level languages

A

+ Faster/ more efficient execution as the program can be optimised for a specific processor

+ Requires less memory

+ Provides direct control of the hardware

  • Will only run on the platform it was coded for so a programmer must know the CPU and system it is being written for
  • Harder to code in than HLL
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the advantages and disadvantages of low level languages

A

+ Independent of CPU and runs on a wide range of platforms

+ Easier for a programmer to write code and code more complex programs

  • Requires more memory than LLL
  • Slower/ less efficient execution
  • Doesn’t directly access the hardware
How well did you know this?
1
Not at all
2
3
4
5
Perfectly