4.3 - Programming Language Classification Flashcards

(12 cards)

1
Q

What does processor specific mean and which type of language does this refer to?

A

Low-level languages
They are specific to the type of processor they are written for and directly affect the computers processor

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

What are the two categories of low-level languages?

A

Machine code
Assembly language

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

What is machine code?

A

Uses only the binary digits 1 and 0 to represent instructions

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

What are the cons of machine code?

A
  • very long
  • extremely difficult for human to understand
  • prone to errors
  • difficult to debug
  • not portable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the pros of machine code?

A
  • programmers are not constrained
  • no need to translate machine code before executing -> good for embedded systems and realtime applications
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is assembly language?

A

Developed with the intention of simplifying the process of writing computer programs. Mnemonics are used in place of the binary instructions in machine code

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

What are the pros of assembly language?

A
  • more compact than machine code
  • less error prone than machine code
  • shorter to write
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are high-level languages?

A

Uses English instructions and mathematical symbols instead of binary digits or mnemonics

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

What are the pros of high-level languages?

A
  • easier to learn and understand
  • easier to debug due to indentation, commenting and named variables
  • can use built-in functions which saves time
  • portable as programs are not specific to certain processors
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the cons of high-level languages?

A

They’re not platform specific so must be translated into machine code before being executed which can be time-consuming

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

What is an imperative high-level language?

A

Formed from instructions that specify how the computer should complete a task

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

What are declarative languages?

A

Describes what a computer should do (SQL)

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