Which type of test data is outside the limits of valid data
- Normal data
- Boundary data
- Invalid data
- Erroneous data
Which of the following is the primary purpose of input validation in computer programming?
- Enhancing program performance
- Ensuring data integrity
- Reducing code complexity
- Improving user interface
Which type of input validation should be used to check a National Insurance number?
- Range check
- Length check
- Format check
- Presence check
What type of input validation is used to ensure that a numerical input falls within a specific minimum and maximum value?
- Range check
- Length check
- Format check
- Presence check
Which type of test data is of the wrong data type?
- Normal data
- Boundary data
- Invalid data
- Erroneous data
What is meant by code maintainability?
- The speed at which code is executed
- The ease with which code can be understood, modified, and extended
- The size of the source code files
- The security measures implemented in the code
Which programming practice contributes to improved code maintainability?
- Writing overly complex and lengthy functions
- Avoiding the use of comments in the code
- Following a consistent coding style and naming conventions
- Ignoring code documentation
What is an exception?
- An error that occurs when a program runs out of resources or time.
- An error that occurs when a program encounters an invalid input or operation.
- An error that occurs when a program fails to meet its specifications or requirements.
- An error that occurs when a program behaves unexpectedly or unpredictably.
Which type of input validation should be used to check that an email address contains an @ symbol?
- Range check
- Length check
- Format check
- Presence check
When user input fails a validation check, what should be included in the failure message?
- Detailed technical information
- Error codes relating to source code line numbers
- Simple instructions to help the user re-try
- Nothing