Producing Robust Programs Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is Defensive Design?

A

A design approach to ensure programs function properly, preventing errors and program breaks.

It emphasizes anticipating user behavior to create robust applications.

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

What does Anticipating Misuse involve?

A

Thinking ahead about how users might misuse the program and designing measures to prevent this misuse.

This is crucial for creating user-friendly and error-resistant software.

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

What is Authentication in programming?

A

The process of confirming the identity of a user before granting access to specific data or programs.

This is vital for maintaining security in software applications.

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

What is Input Validation?

A

Checking that the data meets certain criteria before it is processed by the program, such as verifying an email address contains an ‘@’ symbol.

This helps prevent errors and security issues.

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

What does Maintainability in programming refer to?

A

The ease with which other programmers can understand and work with your code.

This includes practices like using subprograms, comments, indents, and clear naming.

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

What is a Syntax Error?

A

When the compiler or interpreter does not understand something you have typed because it does not follow the rules or grammar of the programming language.

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

What is a Logic Error?

A

When the compiler or interpreter is able to run the program but the program does something unexpected.

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

What is Iterative Testing?

A

The program is tested while it is being developed. Often a programmer will test a module, fix any errors and then test it again.

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

What is Final Testing?

A

The program is tested at the end of the development process. The whole program is tested at the same time to check it is all working.

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

What is a Test Plan?

A

The Test Plan will outline exactly what you are going to test and how you are going to test it. A good test plan will anticipate all potential issues with the program.

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

What is NORMAL DATA?

A

Data that the user is likely to input into the program.

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

What is BOUNDARY (EXTREME) DATA?

A

Values at the limit of what the program should be able to handle.

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

What is INVALID DATA?

A

Inputs with the correct data type that should be rejected by the program.

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

What is ERRONEOUS DATA?

A

Inputs with an incorrect data type that should be rejected by the program.

Example: 123@455

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