bullshit Flashcards

1
Q

Recursive advantage

A

Allows task to be divided among many threads( divide and conquer )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Iterative advantage

A

Lower overhead due to less function calls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

properties of recursion

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

recursion Stack

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

4 error types

A

Syntax errors
Semantic errors
Logic errors
Runtime errors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Data validation

A

Data validation is the process of ensuring the data satisfies a set criteria or conditions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

how to data validation

6

A

Range Checks

Type Checks

Presence Checks

Length Checks

Format/Layout Check

Checkdigit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Data verification

A

Data verification is the process of checking that the data matches expected data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

verify data

A

Require data to be entered twice

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

test data

A

you prob know

How well did you know this?
1
Not at all
2
3
4
5
Perfectly