Back to marketplace

Defensive Programming and Testing (yr 11)

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

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

Card preview (6)

#1
Front (Question)

What is defensive programming?

Back (Answer)

Defensive programming is a practice of writing code that anticipates and handles misuse, errors, and unexpected inputs to make programs more reliable and secure.

#2
Front (Question)

Name three defensive design techniques.

Back (Answer)

• Input Validation: Ensures inputs are in the expected format. • Authentication: Verifies user identity (e.g. login systems). • Maintainable Code: Using comments, indentation, and meaningful variable names to improve readability.

#3
Front (Question)

What is iterative testing?

Back (Answer)

Testing carried out during development to ensure each part of the program works as it is built.

#4
Front (Question)

What is final/terminal testing?

Back (Answer)

Testing performed once development is complete to check the whole system meets requirements.

#5
Front (Question)

What is a trace table?

Back (Answer)

A table used to manually track the values of variables and outputs at each step in an algorithm to detect logic errors.

#6
Front (Question)

What is the difference between normal, boundary, and erroneous data?

Back (Answer)

• Normal data: Inputs that are expected and valid. • Boundary data: Values at the edge of acceptable ranges. • Erroneous data: Invalid inputs used to test error handling.