What is a Binary Situation?
It is when something can only be one of two states.
What is a Boolean Operator?
It is a word like AND, OR, NOT.
What is the AND function?
The output is only True if both inputs are True.
What is the OR function?
The output is True if either of the inputs is True.
What is the NOT function?
If the input is True then the output is False.
If the input is False then the output is True.
What is a Truth Table?
It is a table showing possible combinations of inputs and their corresponding outputs.
What is Defensive Design?
it is a software development approach to create a robust and reliable program by planning potential errors or misuse.
What is Data Validation?
The process of checking data to ensure it is accurate, consistent and reliable by comparing it to a set of rule.
What are the types of Validation checks?
What is Range Check?
It is checking is a number or date is within a sensible range.
What is Type Check?
It is checking if the data is of the right type (Integer/String).
What is Length Check?
It is checking if the text entered is too long or too short.
What is Prescence Check?
It is checking if data has been entered.
What is Format Check?
It is checking the format is correct.
What is Verification?
It is when data is double-checked to be correct.
What is an Authentication routine?
It is a routine used to make sure someone is who they really are.
What is Anticipating misuse?
It is when a program limits the amount of entries to make it harder for hackers.
What are ways to make a program maintainable?
How does using Sub-programs help?
They can be used multiple times in a program so it reduces the amount of code.
How do good names help?
It makes the code easier to read and understand.
How does Indentation help?
It makes it possible to tell which lines are part of different structures.
How does Commenting help?
They help you understand your code when you look at it later.
What is a Syntax Error?
It is an error where code written doesn’t conform to the rules of the language.
What is a Logic Error?
It is a flaw in the program’s code that causes it to produce incorrect results.