Which type of test data should be accepted by the program?
- Normal data
- Boundary data
- Invalid data
- Erroneous data
A system stores UK telephone numbers (e.g. 07321 123456). Which data type should be used?
- Float
- Integer
- String
- Boolean
Which type of error is caused by misspelling a variable name?
- Logic error
- Syntax error
- Type error
- Iterative error
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
Which type of input validation checks if the entered data is a valid date, email address, or phone number?
- Range validation
- Format validation
- Length validation
- Presence validation
A system stores a user's age (e.g. 14). Which data type should be used?
- Float
- Integer
- String
- Boolean
What is authentication?
- Verifying the role of a user using permissions, roles, or groups.
- Verifying the location of a user using GPS, IP address, or cookies.
- Verifying the time of a user using clocks, timers, or timestamps.
- Verifying the identity of a user using passwords, tokens, or biometrics.
Which type of input validation is commonly used to verify the length of a password or username?
- Range check
- Format check
- Length check
- Presence check
What is the primary purpose of the try - except block in Python?
- To define a function
- To handle exceptions
- To create a loop structure
- To declare variables
Which type of error does not crash the program, but produces unexpected results?
- Logic error
- Syntax error
- Type error
- Iterative error