Section 4 Chapter 21 - Programming Language Classification Flashcards

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

Accumulator

A

A special memory location where calculations are carried out

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

Control unit

A

A part of a computer that decodes instructions

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

Machine code

A

The binary digits that computers can understand

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

Components of a machine code instruction

A

Opcode and operand

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

Abstraction

A

When data and programs are defined in a way similar to their meaning, leaving out the details of implementation

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

Low level language

A

A language that reflects how the computer actually carries out the instruction: Machine code and Assembly language

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

High level language

A

A language that allows a programmer to think and code in terms of algorithms without worrying about how each tiny step will be executed in machine code

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

Imperative language

A

A language where each instruction is a command to do something e.g. Java

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

Declarative language

A

A language where you specify what you want done but now how you want it done e.g. SQL

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

Assembly Language

A

A low level language that uses mnemonics for the opcode and decimal/hexadecimal for the operand. It translates directly to machine code.

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

Timeline of languages

A

Machine Code (LL) (First Generation)
Assembly Language (LL) (Second Generation)
FORTRAN, BASIC (HL)
C, Java, Python (HL)

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

Advantages of using a LL language

A

Can make the best use of limited memory/processing power as they can be better optimised and can run faster.

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

Where LL languages are still used (2)

A

Embedded Systems

Drivers

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

Disadvantages of LL languages (3)

A

Can take a long time to write a program
Very prone to bugs and errors
Forces the programmer to be thinking about every little detail rather than the bigger picture

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

Relationship between imperative languages and low level languages

A

High level imperative languages are the natural abstraction of low level languages as each instruction directly relates to one or more multiple commands.

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