Filters
Question type

Study Flashcards

Recursive algorithms can be written with modules or _____________ with a return value.

Correct Answer

verifed

verified

When a recursive algorithm terminates its nth instance of the module call,it returns to the point in the __________ instance directly after the recursive module call.

Correct Answer

verifed

verified

If a recursive module calls itself ten times,after the tenth call it returns to the __________.


A) End of the module
B) ninth call
C) first call
D) End of the program
E) None of the above

Correct Answer

verifed

verified

When setting up a recursive module,the part of the problem that can be solved without recursion is known as the __________ case.

Correct Answer

verifed

verified

If a module has called itself six times,the depth of recursion was ____________.

Correct Answer

verifed

verified

A recursive algorithm is never required to solve a problem.

Correct Answer

verifed

verified

The recursive calls stop when the conditional expression becomes _________.

Correct Answer

verifed

verified

When creating a recursive algorithm it is optional to identify the base case and the recursive case of the algorithm.

Correct Answer

verifed

verified

In a recursive call,the computer actions of setting up memory for parameters and local variables and storing the address of the program location where control returns after the module terminates is called ______________.

Correct Answer

verifed

verified

Recursive algorithms are more efficient that iterative algorithms.

Correct Answer

verifed

verified

Comparing the recursive algorithm of a binary search with its counterpart,without recursion,it is much more elegant and easier to understand.

Correct Answer

verifed

verified

In a recursive algorithm,the computer completes the base case first and then works on the recursive cases.

Correct Answer

verifed

verified

The first step in setting up a recursive module is to ________________________________.


A) Identify at least one case in which the problem can be solved with recursion.
B) Identify at least one case in which the problem can be solved without recursion.
C) Identify the case with the repetitive block
D) Identify the case without the repetitive block
E) None of the above

Correct Answer

verifed

verified

Which of the following can be solved with recursion?


A) Finding the greatest common divisor
B) Binary search
C) The Fibonacci Series
D) None of the above
E) All of the above

Correct Answer

verifed

verified

The depth of recursion refers to the length and complexity of the recursive algorithm.

Correct Answer

verifed

verified

When the recursive module makes the last call to itself,the If-Then statement's condition expression is _________.


A) false
B) True
C) 1
D) 0
E) Unpredictable

Correct Answer

verifed

verified

One of the advantages of a recursive algorithm is that it does not matter how many recursive calls are made to a module; only one instance of the parameters are needed.

Correct Answer

verifed

verified

It is not necessary to have a conditional expression to terminate the recursive calls.

Correct Answer

verifed

verified

The choice between using recursion or a loop is primarily a __________ decision.


A) Design
B) Case
C) Group
D) Any of the above
E) None of the above

Correct Answer

verifed

verified

A problem can be solved with recursion if it can be broken down into ____________ that are identical to the overall problem.


A) Successive smaller problems
B) Successive smaller modules
C) Smaller problems
D) Smaller modules
E) None of the above

Correct Answer

verifed

verified

Showing 21 - 40 of 43

Related Exams

Show Answer