2.3 Producing Robust Programs Flashcards

1
Q

Defensive Design Considerations

A

Considerations made by programmers when creating solutions to problems, such as ensuring data is valid and secure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Input Sanitisation

A

The process of cleaning up input data by removing unwanted characters and symbols, preventing issues like SQL injection.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Validation

A

Ensuring that the data entered fits within a specified range or type, to prevent errors and unexpected outcomes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Authentication

A

The process of verifying the identity of users by using usernames and passwords to secure access to data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Maintainable Code

A

Code that is written in a way that other programmers can easily understand and modify, especially when dealing with large projects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Comments in Code

A

Annotations added to code to explain what it does, making it easier for others to understand.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Indentation

A

Properly spacing code to make it easier to follow the structure of the program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Meaningful Identifier Names

A

Using descriptive names for variables, constants, and functions to avoid confusion and clarify the program’s intent.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Use of Sub-programs

A

Dividing code into smaller, reusable sections to improve structure and readability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Iterative Testing

A

Testing individual sections of code during development to ensure they work as expected.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Final/Terminal Testing

A

Carrying out testing after the entire program has been developed to ensure the program works as a whole.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Test Data

A

Data chosen to test how a program performs, ensuring the program handles various cases appropriately.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Normal Test Data

A

Valid data within the expected range, used to test whether the program can accept and process it correctly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Invalid/Erroneous Test Data

A

Data that is not accepted by the program, such as entering an incorrect value like ‘s’ when a number is expected.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Boundary Test Data

A

Data that lies at the edge of acceptable input ranges, used to check if the program can handle values like 0, 1, 10, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Test Data Types

A

The different categories of test data, including normal, invalid, and boundary data, to ensure the program functions properly in all situations.

17
Q

Building Robust Programs

A

The process of ensuring a program can handle various inputs and operate as expected under different conditions.

18
Q

Designing Robust Programs

A

The planning and structuring of code in a way that ensures the program is reliable, secure, and user-friendly.

19
Q

Testing Robust Programs

A

The process of evaluating a program by using various test cases to ensure it meets the desired specifications.

20
Q

Iterative Testing (Further Detail)

A

Testing the sections of a program while it is being developed to ensure errors are caught early in the process.

21
Q

Final/Terminal Testing (Further Detail)

A

The final round of testing after the program is completed, ensuring that it works as a whole and meets all requirements.

22
Q

Authentication Process

A

Ensuring that only authorized users are allowed to access certain resources by requiring usernames and passwords.

23
Q

Maintainable Code Practices

A

Using proper documentation, indentation, and meaningful naming conventions to write code that is easier for others to understand and modify.

24
Q

Testing Methods

A

Including normal, invalid, and boundary test data to make sure the program handles a variety of situations.

25
Q

Sub-program Usage

A

Sub-programs allow the program to be broken down into smaller parts, improving readability and maintainability of the code.