Back to marketplace

2.3

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

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

Card preview (17)

#1
Front (Question)

What types of checks can you do to data input?

Back (Answer)

• Type check: data type • Range check: within range • Presence check: something has been entered • Format check: correct format • Length check: min/max

#2
Front (Question)

Why are input validation techniques important?

Back (Answer)

• More robust • More user-friendly • Prevent further errors from occurring later • Ensures that data entered meets the specific rules

#3
Front (Question)

What is defensive design?

Back (Answer)

• Thinking ahead about the problems that may occur • Nullifying them before they happen

#4
Front (Question)

What are examples of defensive design?

Back (Answer)

Considering: - Division by zero: would crash because computer cannot compute - Communication error: unable to establish connection, server overloaded, should allow cancel/report - Printer and peripheral errors: running out of paper/ink, allow reprint - Disk errors: programs that need files (read/write) must consider the file not being found/out of storage space/corrupt data/end of file reached, and must be checked before further processing

#5
Front (Question)

How can data used by systems be secure?

Back (Answer)

• Username and password (forms of authentication) • Recover password using email • Encryption • reCAPTCHA software • Awareness of SQL injection and other methods

#6
Front (Question)

Why do programs need to be tested?

Back (Answer)

• No bugs • Has an acceptable performance • Ensure no unauthorised access • Check it meets the requirements

#7
Front (Question)

What does iterative testing mean?

Back (Answer)

• Each function was individually tested as written • Ensures that it can handle incorrect data • Checking it does not introduce new errors in code

#8
Front (Question)

What does terminal testing mean?

Back (Answer)

• Meets all requirements • Testing that all functions work together • Able to produce results with any data

#9
Front (Question)

What is a normal input?

Back (Answer)

• Accepted without errors

#10
Front (Question)

What is a boundary input?

Back (Answer)

• Correct data type which is on the edge of accepted validation boundaries

#11
Front (Question)

What is an invalid input?

Back (Answer)

• Correct data type but outside accepted validation checks

#12
Front (Question)

What is an erroneous input?

Back (Answer)

• Incorrect data type: rejected

#13
Front (Question)

How do you handle inputs to make the program more robust?

Back (Answer)

• Anticipate a range of possible outputs • Descriptive and helpful prompts

#14
Front (Question)

How do you deal with erroneous data?

Back (Answer)

• Try int(input()) • Except wrong data type displays error message

#15
Front (Question)

Describe three ways in which a programmer can make their code maintainable

Back (Answer)

• Use sub programs to separate chunks of code • Use comments to explain sections of code • Use variables to allow different programmers to easily understand the code • Used indentations to see where structures begin and end

#16
Front (Question)

State what is meant by ‘input validation’

Back (Answer)

• Checking that the input has the correct data type and format before using it in the rest of the program

#17
Front (Question)

State a feature that shows that something is a function and not a procedure

Back (Answer)

It returns a value