SLR7 Flashcards
What is a programing paridime
A way of doing something
What does Turing complete mean
The computer can solve any problem it is presented with
Why are there different programming paradigms
Some programs are better at doing certain things than others
What are the two types of programming language
- Low-level
- High-level
What are the 2 types of Low-level language
- Hardware or machine language
- Assembly language
What is machine language
What happens in the computer (1s and 0s)
What is assembly language made up of
Mnemonics
What 2 categories make up high-level language
- Imperative language
- Declarative languages
How do imperative languages work
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 do declarative languages work
They are focused on what the program should do
What are the 2 main sections of imperative languages
- Procedural programming
- OOP
What is procedural programming built off
Subroutines
What is OOP built off
A modular approach to programming
What are the 4 advantages of machine code
- All machine code has the same efficiency
- Very precise and locally optimised efficient code
- Improves speed as it does not need to go through an interface
- You have complete control
What are the 3 disadvantages of machine code
- Machine dependent almost impossible to port to another machine
- High-level languages were made because machine code is very difficult to write
- Difficult to understand modify and maintain