Which of the following is not good practice for code maintainability?
- Adding descriptive comments
- Using meaningful filenames
- Indenting code within subprograms
- Using abbreviated variable names
What term describes the process of checking input data to ensure it falls within acceptable ranges or formats?
- Output verification
- Input validation
- Data encryption
- Program compilation
Which type of program testing takes place during development?
- Terminal testing
- Active testing
- Boolean testing
- Iterative testing
Which type of test data is at the extreme ends of a range of acceptable data?
- Normal data
- Boundary data
- Invalid data
- Erroneous data
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
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
A system processes postcodes. What type of validation should be used?
- Range check
- Length check
- Format check
- Presence check
What is the purpose of range validation?
- Checking the input is within specific boundaries
- Verifying the format of the input
- Ensuring the input is not empty
- Encrypting the input data
A user enters their age as "potato". What type of data has been entered?
- Normal data
- Boundary data
- Invalid data
- Erroneous data
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.