Save
gcse ocr computing
2.3 robust programs
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
abigail
Visit profile
Cards (40)
What is authentication in programming?
A
method
to verify user identity
View source
What does authentication allow a program to do?
Access
the
program
for
verified users
View source
What do users typically provide for authentication?
Username
and
password
View source
What are the three main authentication factors?
Knowledge
, possession, and
biometrics
View source
What is an example of something you know in authentication?
Password
or
secret answer
View source
What is an example of something you have in authentication?
Smart card
or
mobile phone app
View source
What is an example of something you are in authentication?
Face
recognition
or fingerprint
View source
What is two-factor authentication?
Using two
different
authentication factors
View source
What is a logic error in programming?
An error in program
operation
View source
What can cause a logic error?
Incorrect use of
operators
View source
Can a program run with logic errors?
Yes
, but it
won't
function
correctly
View source
What is a syntax error?
A mistake in
code
writing rules
View source
What can cause a syntax error?
Misspelling or missing
brackets
View source
Will a program run if there are syntax errors?
No
, it will
not
run
View source
What is input validation?
Checking user inputs for
correctness
View source
Why is input validation important?
To prevent
program crashes
from incorrect data
View source
What is a range check in input validation?
Ensuring input is
within
a
specified
range
View source
What is a length check in input validation?
Ensuring input is not too long or short
View source
What is a presence check in input validation?
Ensuring
input
is
provided
View source
What is a format check in input validation?
Ensuring
data
is in a
specific format
View source
What is a type check in input validation?
Ensuring data is of a
specific
type
View source
Will validation catch all errors?
No, users may still make
typos
View source
What does verification require from the user?
Entering key twice for
accuracy
View source
What is good practice in programming?
Use meaningful
variable names
Check user inputs for
validity
Implement access control based on
roles
View source
What is bad practice in programming?
Using vague
variable names
Allowing unrestricted access based on
username
only
Not validating
user inputs
View source
What does a test plan provide?
Structure to
testing
and records results
View source
What types of data should be used in testing?
Normal
,
boundary
,
invalid
, and erroneous data
View source
What is normal data in testing?
Correct data typically inputted by
users
View source
What is boundary data in testing?
Correct data at the
outermost
limits
View source
What is invalid data in testing?
Data that is too
large
or
small
View source
What is erroneous data in testing?
Completely
incorrect
data
View source
What is the purpose of indentation in code?
To group code within
functions
or
procedures
View source
How does indentation help in programming?
Makes code easier to
read
and
understand
View source
What are comments in code?
Lines that do not
execute
and explain code
View source
What do comments help with in programming?
Explain
functionality
and prevent accidental
deletion
View source
What is the purpose of testing in programming?
To locate and remove
errors
in code
View source
When does testing take place?
While the
program
is being written
View source
What happens if an error is found during testing?
It
is
fixed
and
retested
View source
What is smaller testing?
A final check after
code
completion
View source
Why is smaller testing harder?
Due to the amount of
code
View source