4.3 - Programming Language Classification Flashcards

1
Q

What was the colossus?

A

Developed by Tommy Flowers and built at Bletchley Park in 1943

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

What was the input and output of the colossus? How was it programmed?

A

Input was a continuous loop of paper tape with 20,000 5-but characters
Output was an indicator lamp panel
Programmed using switches and plug panels

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

What were the computers in the late 1940’s like?

A

Limited memory with each memory cell consisting of a vacuum tube the size of a light bulb
Programmed using machine code, entered using a series of switches

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

What is operation code?

A

Part of a machine code instruction that defines the operation to be performed

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

What is an operand?

A

The quantity on which an operation is to be done

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

Where is the opcode and operand held in machine code?

A

Opcode in the first few bits
Operand in the rest of the bits

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

What is an instruction set?

A

All the introductions that the computer can understand and execute

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

How was assembly language an improvement of machine code?

A

Each opcode was replaced by a mnemonic which gave a clue as to what the operation did
The operand was replaced by a decimal (or hexadecimal) number

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

What is an advantage of assembly code over machine code?

A
  • easier to write
  • easier to understand
  • easier to debug problems
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the disadvantage of assembly code?

A

Code has to be translated into machine code by an assembler

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

Consists of commands for the computer to perform

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

What are declarative languages?

A

Focuses on what the program Gould do without listing the steps needed to achieve the result
Opposite of imperative high-level language
E.g. SQL

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

Why are high level codes better for coders?

A

Programmer can think and code in terms of algorithms rather than worrying about how the computer will execute each tiny step

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

How are high level programs converted into machine code?

A

Using an assembler or compiler to turn into object code

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

What is the relationship between assembly language and machine code?

A

1 to 1 relationship

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

Advantages of high level over low level?

A
  • easier and faster to write
  • easier to debug and maintain
  • some high level languages are written specifically for different types of problems
  • they are portable ( code can be recompiled for a different type of computer)
17
Q

Disadvantages of high level over low level?

A
  • object code may run s,lower than assembly/machine code
  • object code occupies more space in RAM
  • do not have statements to allow programmers to manipulate individual bits