Unit 10: Recursion Flashcards

1
Q

recursive call

A

the line(s) in the method that call itself

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

base case

A

the method returning an answer without a recursive call (what stops the method, all finite ones have one)

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

call stack

A

java keeping track of all the method calls after the main method executes

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

stack

A

a way of organizing data that adds and removes items only from the top of the stack (like cups)

how java knows which method to go back to when moving around method executions

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