Save
...
Paper 2
Producing Robust Programs
Defensive Design
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Caylin Hindle
Visit profile
Cards (33)
What is the focus of Key Stage 3 and GCSE in this document?
Fundamentals of
IT
and
programming
View source
What is the purpose of defensive design in programming?
To create
secure
and robust programs
View source
What is one consideration in defensive design?
Anticipating
misuse
View source
How does anticipating misuse help in programming?
It prevents
potential
misuse of the app
View source
What is input sanitisation?
Cleaning up
input data
View source
Why is input sanitisation important?
It prevents
SQL injection
attacks
View source
What does validation check in programming?
Whether
input
data
meets
criteria
View source
What is an example of validation?
A
length check
on a password
View source
What is
verification
in
programming
?
Checking if entered data is correct
View source
What is an example of verification?
Double entry
of data
View source
What is authentication in programming?
Ensuring
authorized
user access
View source
What is an example of authentication?
Usernames
and strong
passwords
View source
What is maintainable code?
Code that is easy to
read
and understand
View source
Why is maintainable code important?
It allows easy understanding by
others
View source
What are the key aspects of input validation?
Range Check
: Data within a range
Type Check: Data of a certain type
Format Check: Data in a specific format
Presence Check: Data not left blank
Lookup Table
: Acceptable entries list
Length Check
: Input length within limits
View source
What is a range check?
Checks if
data
is within a range
View source
What is a type check?
Checks
if
data
is
a
certain
type
View source
What is a
format
check
?
Checks data is entered in a certain way
View source
What is an example of a format check?
Date of Birth (
DD/MM/YYYY
)
View source
What is a presence check?
Checks that data has been
entered
View source
What is an example of a presence check?
Password
: fluffythecat123
View source
What is a lookup table?
A table of
acceptable
entries
View source
What is an example of a lookup table?
A list of
acceptable
entries
View source
What is a length check?
Checks the length of the
input
View source
What is an example of a length check?
Telephone Number
:
08323877319
View source
What are the methods to improve program maintainability?
Use
subprograms
for code reuse
Appropriate
variable naming conventions
Indentation
for readability
Comments for understanding
code purpose
Use
constants
for consistency
View source
What is modularisation in programming?
Using
subprograms
to reuse code
View source
Why is using appropriate variable names important?
It ensures the
purpose
is understood
View source
What is the purpose of indentation in code?
To improve
readability
of code
View source
Why are comments crucial in programming?
They
help
understand
code
purpose
View source
What is the benefit of using constants in programming?
Improves code
consistency
View source
How does using constants help in debugging?
It makes
code
easier to read
View source
What are the exam questions related to defensive design?
Describe considerations for defensive design.
Describe each
validation check
with examples.
Explain ways a program can be maintained.
View source