Types of programming languages part 2
- Sequencing: This means that the computer will run your code in order, one line at a time from the top to the bottom of your program. It will start at line 1, then execute line 2 then line 3 and so on till it reaches the last line of your program.
- Selection: Sometimes you only want some lines of code to be run only if a condition is met, otherwise you want the computer to ignore these lines and jump over them. This is achieved using IF statements. e.g. If a condition is met then lines 4, 5, 6 are executed otherwise the computer jumps to line 7 without even looking at line 4,5 and 6.
- Iteration: Sometimes you want the computer to execute the same lines of code several times. This is done using a loop. There are three types of loops: For loops, while loops and repeat until loops. That’s handy as it enables you not to have to copy the same lines of code many times.
Key points: There are only two types of programming languages
High Level programming Language – The first high-level programming languages were designed in the 1950s. Now there are dozens of different languages, including Java by sun technologies my favourite#bite me, python, Ada, Algol, BASIC, COBOL, C, C++, FORTRAN, LISP, Pascal, and Prolog among others.
Coming up next: Oprands, Operations, Syntax, Decode, Encode, Encoder, File formats, File exception formats, File sizes, Images sizes dimentions,
Low level programming language – Other wise known as machine code this is the languages the computer understands directly.