bullshit Flashcards
Recursive advantage
Allows task to be divided among many threads( divide and conquer )
Iterative advantage
Lower overhead due to less function calls
properties of recursion
A function which contains a call to itself.
Should include at least one terminal case – a case that contains no further calls to the recursive subprogram so that it will not continue indefinitely.
recursion Stack
When a function is called, memory is set aside to store local variables and other information. This is known as a frame
When a recursive call is made within the function, a new frame is created and pushed onto the stack.
The execution of the code now takes place in this new frame
When the code within the procedure completes, the frame is popped from the stack
Execution of code returns to the previous frame
4 error types
Syntax errors
Semantic errors
Logic errors
Runtime errors
Data validation
Data validation is the process of ensuring the data satisfies a set criteria or conditions
how to data validation
6
Range Checks
Type Checks
Presence Checks
Length Checks
Format/Layout Check
Checkdigit
Data verification
Data verification is the process of checking that the data matches expected data.
verify data
Require data to be entered twice
test data
you prob know