2.3,2.4,2.5 Flashcards
What is defensive design?
The practice of planning for contingencies in the design stage of a project.
What does anticipating misuse in defensive design involve?
Considering how an end user might accidentally or deliberately break a program and writing additional code to handle these situations.
What is authentication in the context of defensive design?
Verifying a user’s identity before they can use a system.
What is advised for strong passwords?
Passwords over a certain length with symbols and mixed-case letters.
What is input validation?
Ensuring data input by a user meets specific criteria before processing.
What are the types of input validation checks?
- Range check
- Type check
- Presence check
- Format check
What is maintainability in programming?
Techniques and methods that make code easier to debug, update and maintain.
What are naming conventions?
Defined naming conventions for variables, contents and procedures.
What is the camel case naming convention?
The first word of an identifier uses all lower case and all subsequent words start with a capital letter.
What does indentation in coding help with?
Makes it easier to see where structures begin and end.
What is the purpose of commenting in code?
Used to explain sections of code and ignored by the compiler.
What is testing in programming?
Assessing the performance and functionality of a program under various conditions.
What is iterative testing?
Each module of a program is tested as it is developed.
What is final/terminal testing?
Checking that all the modules of a program work together as expected.
What is a syntax error?
Rules of the language have been broken, so the program will not run.
What is a logical error?
The program runs but does not give the expected output.
What is test data?
Values used to test a program.
What are the types of test data?
- Normal
- Boundary
- Invalid
- Erroneous
What is normal test data?
Data supplied to a program that is expected.
What is boundary test data?
Data supplied to a program designed to test the boundaries of a problem.
What is invalid test data?
Data of the correct type but outside accepted validation limits.
What is erroneous test data?
Data of the incorrect type that should be rejected.
What is a logic diagram?
A method of expression Boolean logic in a diagram using a set of standard symbols.
What is a logic gate?
A symbol in a logic diagram that represents a single gate.