Describe the difference between a ‘Variable’ and a ‘Constant’.
A variable’s value can change while a program is running, whereas a constant’s value cannot be changed once the program has started.
Define the term ‘Casting’.
The process of converting one data type into another, such as converting an integer to a string.
Identify the purpose of the arithmetic operators ‘MOD’ and ‘DIV’.
MOD returns the remainder after division, while DIV returns the integer part of the division with no remainder.
Describe one difference between a ‘Function’ and a ‘Procedure’.
A function returns a value, whereas a procedure does not return a value.
List three benefits of using sub programs (subroutines).
They modularise programs making them easier to design and test; allow code reuse; and make programs easier to debug and maintain.
State the SQL wildcard used to return all fields from a table.
The asterisk (*).