7 algorithm design and problem solving Flashcards
what are components of PDLC
analysis, design, coding, testing
what are tasks needed at analysis stage of PDLC
abstraction, decomposition of problem, identification of problem and requirements
what are tasks needed at design stage of PDLC
decomposition, structure diagrams, flowcharts, pseudocode
what are tasks needed at coding stage of PDLC
writing program code, iterative testing
tasks needed at testing stage of PDLC
test program code using test data
how can problem be decomposed to component parts
inputs, processes, outputs, storage
how to linear search
how to bubble sort
what is the need for validation checks
helps programmer ensure any input is possible and sensible
what are the types of validation checks
range, length, presence, format, check digit, type
explain a type check
checks if input is of correct data type
explain range check
checks if input is in correct range
explain presence check
checks is all required data has been entered, eg rejecting blank inputs
explain format check
checks if input is in right format, eg dates, postcodes
explain length check
checks if input has correct/min/max number of characters
explain check digits
check digit: last digit included in a code or other identification. calculated from all other digits in code
what is the need for verification checks
make sure input is correct
what are the types of verification checks
visual, double entry
explain double entry check
data must be entered twice, system compares both entries to check if they are same before accepting data
explain visual check
manual check performed by user who is entering data
what are types of test data
normal, abnormal, extreme, boundary
what is abnormal data
data that should be rejected by the program
what is normal data
data that should be accepted without causing errors
what is extreme data
data that is the largest/smallest acceptable value
what is boundary data
data that is the largest/smallest acceptable value as well as corresponding largest/smallest rejected value