What is defensive design?
Contingency planning using validation, maintainable code and testing
Contingency planning for protection against malware
Contingency planning for protection against hackers
What is the purpose of validation?
To ensure that data entered is sensible and possible
To ensure that data entered is correct
To ensure that the programmer has met all requirements
What does validation not do?
Ensure that data entered is of the right data type
Ensure that data is actually entered
Ensure that data entered is correct
Which of the following are validation techniques?
Presence check, length check, verification check
Presence check, format check, range check
Presence check, range check, verification check
Which of the following are part of maintainability?
Comments, sensible variable names and indentation
Comments, sensible variable names and verification
Comments, indentation and verification
What are the two types of programming error?
Syntax errors and logic errors
Syntax errors and validation errors
Logic errors and validation errors
What is the purpose of testing?
To ensure that a user becomes familiar with a program
To ensure that a program functions as intended
What are the three types of test data?
Valid, invalid and erroneous
Valid, invalid and extreme
Erroneous, extreme and invalid
Which of the following errors is an example of a logic error?
Incorrectly using Boolean operators
Using a variable before it has been declared
Missing brackets, eg opening a bracket but not closing it
What is the difference between a procedure and a function?
A function returns a result back to the main program, but a procedure does not
A procedure returns a result back to the main program, but a function does not
A function is a subprogram, but a procedure is not