Exam 13: Recursion

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The base case is a case in which the problem can be solved without _____.

(Multiple Choice)
4.9/5
(42)

The base case does not require _______________, so it stops the chain of recursive calls.

(Short Answer)
4.8/5
(40)

Recursion is required to solve some type of problems.

(True/False)
4.8/5
(37)

A recursion in which a function directly calls itself is known as _______________ recursion.

(Short Answer)
4.8/5
(32)

A problem can be solved with recursion if it can be broken into smaller problems that are identical in structure to the overall problem.

(True/False)
4.8/5
(45)

A recursive function must have some way to control the number of times it repeats.

(True/False)
4.9/5
(40)

If the problem can be solved immediately without recursion, then the recursive function _____.

(Multiple Choice)
4.9/5
(34)

The process of calling a function requires _____.

(Multiple Choice)
4.8/5
(37)

A solution using a(n) _______________ is usually more evident than a recursive solution.

(Short Answer)
4.8/5
(33)

Some problems are _______________ solved with recursion than with a loop.

(Short Answer)
4.9/5
(48)

function A calls function B, which calls function C, which calls function A. This is called _____ recursion.

(Multiple Choice)
4.8/5
(42)

All the cases of the recursive solution other than the base case are called the _______________ case.

(Short Answer)
4.9/5
(36)

Recursion is _____.

(Multiple Choice)
4.8/5
(39)

What defines the depth of recursion?

(Multiple Choice)
4.8/5
(37)

What is the first step that needs to be taken in order to apply a recursive approach?

(Multiple Choice)
4.9/5
(39)
Showing 21 - 35 of 35
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)