Quiz 2.3: Producing Robust Programs
In a try - except block, where should the code that may raise an exception be placed?
Which type of error does not crash the program, but produces unexpected results?
A system stores a user's age (e.g. 14). Which data type should be used?
What is authentication?
Which type of input validation checks if the entered data is a valid date, email address, or phone number?
Which type of input validation should be used to check a National Insurance number?
Which type of error is caused by misspelling a variable name?
Which type of test data is outside the limits of valid data
In Python, what is the purpose of a Try - Except block?
When user input fails a validation check, what should be included in the failure message?