Back to marketplace

Unit 8 Logic and Languages (2.3 Producing Robust Programs)

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

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

Card preview (15)

#1
Front (Question)

What is defensive design?

Back (Answer)

Creating programs that can handle unexpected or erroneous data and/or inputs by anticipating misuse.

#2
Front (Question)

How is defensive design put into place by programers?

Back (Answer)

they will try to: * use input validation & authentication * anticipate how users might misuse their program, then attempt to prevent this * ensure their code is well maintained * reduce the number of errors in the code throught testing

#3
Front (Question)

What is anticipating misuse?

Back (Answer)

designing a system, predicting how users can act in an unintended or malicious way and minimising this

#4
Front (Question)

What is authentication?

Back (Answer)

the process of determining the identity of a user

#5
Front (Question)

What is input validation?

Back (Answer)

the process of checking that the data entered by a user is appropriate for its use, so that it can be correctly processed without any errors

#6
Front (Question)

What are the (3) types of input validation?

Back (Answer)

• presence check • range check • length check

#7
Front (Question)

What is a presence check?

Back (Answer)

checks that data has been entered and not blank.

#8
Front (Question)

What is a range check?

Back (Answer)

checks that an input falls within the required range.

#9
Front (Question)

What is a length check?

Back (Answer)

checks a specified number of characters have been entered.

#10
Front (Question)

Give a python example of presence check

Back (Answer)

name = input(“Enter your name”) if name == “”: print(“Invalid”)

#11
Front (Question)

Give a python example of range check

Back (Answer)

num = int(input(“Enter a number less than 10”)) if num >= 10: print(“Too large!”)

#12
Front (Question)

Give a python example of length check

Back (Answer)

password = input(“Enter a password, minimum 8 characters.”) if len(password) < 8: print(“Password too short!”)

#13
Front (Question)

What is maintaining programs?

Back (Answer)

#14
Front (Question)

What are the (4) ways of maintaining programs?

Back (Answer)

• sub programs • naming conventions • indentation • commenting

#15
Front (Question)

Back (Answer)