A data type is the values it can take/operations which can be performed
on it.
Integer is a whole number.
Float is a number with a decimal/ fraction.
Boolean is a value which is true or false.
Character is a single number, letter or symbol.
String is a collection of characters.
Data is a way of storing a point in time, many different formats are used.
Pointer / Reference is a way of storing memory addresses. All variables are
pointers (refers) to objects.
Arrays are finite, indexed set of related elements each of which has the
same data type. cars = ["Ford", "Volvo", "BMW"]
User-defined data types are derived from existing data types to create a
customised data structure. For example, a shop might use a user-defined
data type called Customer to store information about their customers.
(E.g. Forename, Surname and EmailAddress).
Variables are changeable values. Variable declaration is creating a
variable for the first time, giving it a name and sometimes a data type.
This allocates a portion of the computer’s memory to the variable.
Constants are unchangeable values. Using a named constant improves
readability, maintainability, error reduction, and consistency. Constant
declaration is the same as variable declaration, but when creating a
constant.
Assignment is giving a constant or variable a value.
Iteration is repeating an instruction. For = definite while= in
Selection is comparing values and choosing an action based on those
values.
Subroutine is a set of instructions with a name. Will be defined, then
called later in program. The program flow will “jump” to the sub routine,
once it is done it returns to the flow. A procedure is a type which simply
preforms a task, whereas a function is a type that preforms and returns a
value using a return statement.
Library subroutines is predefined subroutine in the languages.
Imported at the start of the program.
Parameters/argument in parentheses are used to pass data to a
subroutine. Order is important. Arguments appear in subroutine
calls. Arguments vary from call-to-call parameters part of subroutine
definition.
If the variable is in scope the values can be accessed.
Iteration involves repeating a block of code.
Definite: number of looping is known (for).
Indefinite: number of looping is not known, executes until condition
is true (while). You can have the condition at the start which is the