What is the purpose of defensive design?
- To ensure that a program runs correctly and continues to run no matter what actions a user takes.
- To ensure that a program runs quickly and efficiently.
- To ensure that a program runs on any platform or device.
- To ensure that a program runs without any errors or bugs.
Which type of error is present in the Python code below?
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.
A system asks a user to enter a number between 1 and 100. Which of the following entries is erroneous?
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 type of input validation should be used to check a National Insurance number?
- Range check
- Length check
- Format check
- Presence check
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
In Python, what is the purpose of a Try - Except block?
- To try all variations of input values
- To run code except for specified commands
- To prevent the program from crashing if an error occurs
- To allow division by zero
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
What is another name for final testing?
- Terminal testing
- Active testing
- Boolean testing
- Iterative testing