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
Starting Out with Python Study Set 2
Quiz 12: Recursion
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
Short Answer
A recursion in which a function directly calls itself is known as ___________ recursion.
Question 22
Short Answer
Recursive function calls are __________ efficient than loops.
Question 23
Short Answer
A function is called from the main function and then it calls itself five times. The depth of recursion is __________.
Question 24
Short Answer
The majority of repetitive programming tasks are best done with ___________.
Question 25
Multiple Choice
A function is called from the main function for the first time and then calls itself seven times. What is the depth of recursion?
Question 26
Multiple Choice
A recursive function includes __________ which are not necessary in a loop structure.
Question 27
Multiple Choice
Recursive functions are __________ iterative algorithms.
Question 28
Short Answer
Some problems are more __________ solved with recursion than with a loop.
Question 29
Multiple Choice
What defines the depth of recursion?
Question 30
Short Answer
All the cases of a recursive solution other than the base case are called the __________ case.
Question 31
Short Answer
A solution using a(n)__________ is usually more evident than a recursive solution.
Question 32
Short Answer
Usually a problem solved by recursion is reduced by making the value of one or more parameters __________ with each recursive call.
Question 33
Multiple Choice
Which would be the base case in a recursive solution to the problem of finding the factorial of a number. Recall that the factorial of a non-negative whole number is defined as n! where: If n = 0,then n! = 1 If n > 0,then n! = 1 x 2 x 3 x ... X n