Save
CS Section 6 - Design, Testing and IDEs
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
A
Visit profile
Cards (91)
What is the purpose of Defensive Design in programming?
To ensure programs
function properly
View source
Why do even the biggest software companies need to update their programs regularly?
Because programs can have
errors
that need fixing
View source
How can programmers protect their programs through Defensive Design?
By anticipating user
misuse
and preventing it
View source
What are the two main methods to prevent users from entering unwanted data?
Input sanitisation
and
input validation
View source
What is input sanitisation?
Removing
unwanted
characters before passing data through the
program
View source
What is input validation?
Checking if data meets certain criteria before passing it into the
program
View source
Give an example of input validation.
Checking that an
email address
contains an
@ symbol
View source
What are the types of input validation checks?
Range check
Presence check
Check digit (CD)
Formal check
Look-up table
Length check
View source
What does a range check do?
Checks the data is within a
specified
range
View source
What does a presence check do?
Checks the data has actually been
entered
View source
What does a check digit (CD) do?
Checks
numerical
data has been entered accurately
View source
What does a formal check do?
Checks the data has the correct
format
View source
What does a look-up table do?
Checks the data against a table of
acceptable
values
View source
What does a length check do?
Checks the data is the
correct
length
View source
What does the function formatName() do?
It removes unwanted
characters
from a
string
View source
Is the function formatName() an example of input sanitisation or input validation?
It is an example of
input sanitisation
View source
What are two validation checks Karen could use for a file name?
Presence check
and
length check
View source
Why is authentication important in programming?
It confirms the
identity
of a user before accessing data
View source
How do passwords typically work in authentication?
They are associated with a
username
to verify identity
View source
What is one way to increase password security?
Force
users
to use strong passwords
View source
What is a feature of well-maintained code?
It includes
comments
explaining
key features
View source
Why is indentation important in programming?
It helps to
separate
different
statements
for
clarity
View source
What should variable names in code refer to?
What they actually are to help
programmers
understand
View source
When should testing be conducted in the software development cycle?
Before the
program
is released
View source
What are the two types of programming errors?
Syntax errors
and
logic errors
View source
What is a syntax error?
When the
compiler
doesn't understand the code due to incorrect
grammar
View source
What is a logic error?
When the program runs but does something
unexpected
View source
How can syntax errors be diagnosed?
By
compilers
and
interpreters
that return error locations
View source
How are logic errors typically found?
Through general use of the
program
and
systematic
testing
View source
What is functionality testing?
Testing to see if the
program
meets initial
requirements
View source
Why shouldn't functionality testing be left until the end of the process?
Because it's better to spot errors early during
development
View source
What are the different types of testing in programming?
Performance Test
: Tests speed and resource impact
Usability Test
: Tests user-friendliness
Security Test
: Tests vulnerability and data security
Load/Stress Test
: Tests performance under extreme conditions
View source
What is the purpose of a flow diagram in software design?
To outline the
requirements
and design of the
program
View source
What are high-level programming languages?
Languages that are easy for
humans
to write
View source
What are low-level programming languages?
Languages that are easier for
computers
to run but
tricky
for humans
View source
What is machine code?
The
binary code
that
computers
can read and execute
View source
What is assembly language?
A low-level programming language that is easier for humans than
machine code
View source
Why are high-level languages popular with programmers?
Because they are easier for
humans
to write
View source
What is the purpose of testing in software development?
Testing ensures that the software meets its
requirements
and
functions
correctly.
View source
What are the two types of computer languages?
High-Level Languages
Low-Level Languages
View source
See all 91 cards