Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Problem Solving with C++ Study Set 1
Quiz 14: Recursion
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Question 1
Short Answer
In a recursive power function that calculates some base to the exp power, what is the recursive call?
Question 2
Short Answer
A stack exhibits what behavior?
Question 3
Short Answer
A recursive function is a function that ______________.
Question 4
Short Answer
If the recursive function call does not lead towards a stopping case, you have ______________.
Question 5
True/False
Recursive functions must return a value.
Question 6
Short Answer
In a recursive power function that calculates some base to a positive exp power, at what value of exp do you stop? The function will continually multiply the base times the value returned by the power function with the base argument one smaller.
Question 7
Short Answer
What is the output of the following code fragment? int f1int base, int limit) { ifbase > limit) return -1; else ifbase == limit) return 1; else return base * f1base+2, limit); } int main) { cout << f12,4)<<endl; return 0; }