SLR7 Flashcards

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

What is a programing paridime

A

A way of doing something

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

What does Turing complete mean

A

The computer can solve any problem it is presented with

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

Why are there different programming paradigms

A

Some programs are better at doing certain things than others

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

What are the two types of programming language

A
  1. Low-level
  2. High-level
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the 2 types of Low-level language

A
  1. Hardware or machine language
  2. Assembly language
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is machine language

A

What happens in the computer (1s and 0s)

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

What is assembly language made up of

A

Mnemonics

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

What 2 categories make up high-level language

A
  1. Imperative language
  2. Declarative languages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do imperative languages work

A

They use statements that change the program’s state in the form of sequence, selection, iteration and more—focusing on what each statement or line of code should do.

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

How do declarative languages work

A

They are focused on what the program should do

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

What are the 2 main sections of imperative languages

A
  1. Procedural programming
  2. OOP
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is procedural programming built off

A

Subroutines

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

What is OOP built off

A

A modular approach to programming

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

What are the 4 advantages of machine code

A
  1. All machine code has the same efficiency
  2. Very precise and locally optimised efficient code
  3. Improves speed as it does not need to go through an interface
  4. You have complete control
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the 3 disadvantages of machine code

A
  1. Machine dependent almost impossible to port to another machine
  2. High-level languages were made because machine code is very difficult to write
  3. Difficult to understand modify and maintain
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Why was assembly language developed

A

Machine code was very very difficult to use

17
Q

What did assembly language replace machine codes binary with

A

Nmemonics

18
Q

What type of language is assembly language classified as

A

A low-level language

19
Q

What is used to translate assembly language into machine code

A

An assembler

20
Q

What is LMC

A

A form of assembly language

21
Q

How many mnemonics are in the LMC instruction set

A

11

22
Q

Do real assembly language instruction set contain more mnemonics than LMC

A

Yes, lots more

23
Q

The assembler allows us to name the addresses what are they called

A

Labels

24
Q

How many parts of code can a LMC line of code contain

A

3

25
Q

What are the three parts of code that a LMC line of code can contain

A
  1. Label
  2. Mnemonic
  3. Data