Key Definitions - 2.2 Flashcards
Variable -
Used within a computer program to store a single piece of data. The contents can be changed
Constant
Used within a computer program to store a single piece of data. The data does not change within the program (it remains constant)
Operator
Used within a program to represent an action e.g + which represents addition
Input
Data entered into a computer program
Output
Data sent out by the computer program
Assignment
When a value is set/given to a variable
Sequence -
When the code/instructions are all in order so that one piece of code executes followed by the next etc
Selection -
- when a choice/decision is used within a program, allowing for multiple outcomes dependent on the data that is inputted.
E.g if, else
Iteration
- When a section of code is repeated
Condition Controlled Iteration
This is a type of iteration, where the code is repeated until a certain condition is met. This means the code could execute any number of times, as it relies on the condition being met before stopping.
Count Controlled Iteration
This is a type of iteration, where the code is repeated a specific number of times. This means the code will only execute this number of times before stopping.
String
A data type which is used when storing alphanumeric characters and symbols. E.g. letters, numbers, #?!- etc.
String Manipulation
Refers to when a string is altered or edited to suit the means of the program.
String Concentation
Refers to when strings are brought together and combined.
String Splitting
Refers to when a string is split at specific points,
separating the single string into multiple strings.
Text File
Used to store data whilst the program is running.
Database -
Used to store large amounts of data beyond whilst the program is running. Offers a more secure way of storing data.