Exam 11: Recursion

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

The stack is a ________________ data structure.

(Multiple Choice)
4.8/5
(37)

What are the criteria you must consider when formulating a recursive solution?

(Essay)
4.7/5
(29)

The order of magnitude of the binary search algorithm is:

(Multiple Choice)
4.8/5
(35)

What are two factors that contribute to the inefficiency of some recursive solutions?

(Essay)
4.7/5
(43)

A stack is a last-in/first-out memory structure.

(True/False)
4.8/5
(35)

What is a base case?

(Essay)
4.9/5
(33)

Recursion is:

(Multiple Choice)
4.8/5
(38)

To keep track of recursion most computer systems us a structure called a queue.

(True/False)
5.0/5
(39)

Infinite recursion:

(Multiple Choice)
4.8/5
(25)

All recursive methods must have a/an:

(Multiple Choice)
4.8/5
(32)

Explain the concept of divide and conquer.

(Essay)
4.8/5
(44)

A base case must include a recursive call.

(True/False)
4.8/5
(40)

The binary search algorithm has worst-case running time that is logarithmic.

(True/False)
4.9/5
(36)

Write an iterative method to print a string backwards.

(Essay)
4.9/5
(38)

Explain how the binary search works.

(Essay)
4.8/5
(39)

A method definition that includes a call to itself is said to be recursive.

(True/False)
4.8/5
(41)

During recursion,if the stack attempts to grow beyond its limit,a _____________ occurs.

(Multiple Choice)
4.8/5
(32)

When a recursive call is encountered,computation is temporarily suspended;all of the information needed to continue the computation is saved and the recursive call is evaluated.

(True/False)
4.8/5
(44)

When defining recursive void methods you should:

(Multiple Choice)
4.9/5
(40)

Regarding recursion,if a base case is never reached the result is:

(Multiple Choice)
4.8/5
(40)
Showing 21 - 40 of 44
close modal

Filters

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