Back to marketplace

Defensive Design + Errors and Testing

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

What can Data Validation routines do?

Back (Answer)

Ensure that data entered is of the right type.

#2
Front (Question)

What can Validation not do?

Back (Answer)

Ensure that the user has not made a spelling error or entered the wrong value.

#3
Front (Question)

What can Validation ensure?

Back (Answer)

Validation can only check that the data entered is reasonable.

#4
Front (Question)

What does Data Verification do?

Back (Answer)

Verification is used to double check that the data has been typed in correctly.

#5
Front (Question)

What is double entry verification?

Back (Answer)

A good example of double entry verification is when two passwords don’t match their password will be needed to be rentered.

#6
Front (Question)

What is Authentication?

Back (Answer)

Confirm that the person is who they are.

#7
Front (Question)

What are some common examples of Authentication?

Back (Answer)

Commonly, you are asked to enter a username and password. You may also be asked to confirm these details on a separate device (2FA).

#8
Front (Question)

Why do Programs need to be maintained?

Back (Answer)

This will be to improve the code, fix bugs or add new features.

#9
Front (Question)

What are some examples of things that appear in maintainable programs?

Back (Answer)

Use of subprograms (functions + procedures) Using appropriate naming conventions Indentation Commenting

#10
Front (Question)

What do subprograms include?

Back (Answer)

Functions and Procedures.

#11
Front (Question)

Will Subprograms take inputs?

Back (Answer)

Yes, well written subroutines will take inputs through parameters and if necessary return a value.

#12
Front (Question)

What makes a well written subprogram?

Back (Answer)

They should be written so they can be reused multiple times in the program.

#13
Front (Question)

Can you have the same function and variable name?

Back (Answer)

NO, this is inappropriate naming conventions.

#14
Front (Question)

Can you have the same function and variable name?

Back (Answer)

NO, this is inappropriate naming conventions.

#15
Front (Question)

Why does indentation improve code?

Back (Answer)

Indentation makes it possible to easily see which lines of code are part of different structures.

#16
Front (Question)

Why are comments usually written?

Back (Answer)

Parts of the program that are difficult to understand. At start of function or procedure to explain what it does/.

#17
Front (Question)

What is a syntax error?

Back (Answer)

An error where the code written does not conform to the rules of the language,

#18
Front (Question)

Can interpreters and compilers execute the code if there is a syntax error?

Back (Answer)

No, they will not know how to translate the flawed program into machine code so it will give the programmer a syntax error.

#19
Front (Question)

What is a logic error?

Back (Answer)

Produces an unexpected output, the IDE will not detect the error.

#20
Front (Question)

Can interpreters and compilers run with logic errors?

Back (Answer)

Yes, the code will still run fine but it will produce an unexpected output.

#21
Front (Question)

What are the three types of testing?

Back (Answer)

Normal Boundary Erroneous

#22
Front (Question)

When is iterative testing carried out?

Back (Answer)

During the development of the program.

#23
Front (Question)

When is final testing carried out?

Back (Answer)

After the program is complete.

#24
Front (Question)

When is final testing carried out?

Back (Answer)

After the program is complete.