programming languages keywords Flashcards
What is sequence ?
The order in which code is executed
What is selection ?
A programming construct where a section of code is only run if a condition is met ie IF statement
What is iteration ?
The repeating of code a specified number of times or until a condition is met ( a loop)
What is a high level language ?
A programming language which closely resembles the natural language - the spoken and written language of humans
Examples: Python, Visual basic, Java, C++
What is a low level language ?
A programming language close to the computer’s own language
Examples: Machine code and assembly language
What language can processors execute instructions in ?
Machine code
Will a program written in machine code for a PC run on an Apple smartphone ?
No, because machine code instructions are made specific to a particular processor or group of processors
What is assembly language ?
It is a low level language which replaces machine code with mnemonics and operands to make it easier to read and write.
What is an operand ?
a term used to describe any object that is capable of being manipulated.
For example, in “1 + 2” the “1” and “2” are the operands and the plus symbol is the operator.
What can assembly language be used ?
- In software that is used in embedded systems such as a washing machine
- In software used to control specific hardware components like device drivers
What are the advantages of a high level language ?
- Easier to learn
- faster to write
- easier to understand and debug
What are the advantages of a low level language ?
- programs can run very quickly
- code usually requires less RAM
- Statements in LLL can be used to control and manipulate specific hardware components
What is a translator ?
Translates from one programming language to another
What are the three types of translators ?
Interpreter, compiler and assembler
What does a compiler do ?
Creates an executable file for a program, source code translated all in one go
Translates from a high level language to machine code