Exam 15: Recursion
Exam 1: An Overview of Computers and Programming Languages40 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Inputoutput40 Questions
Exam 4: Control Structures I Selection40 Questions
Exam 5: Control Structures Ii Repetition40 Questions
Exam 6: User-Defined Function41 Questions
Exam 7: Namespaces, the Class String, and User-Defined Simple Data Types40 Questions
Exam 8: Arrays40 Questions
Exam 9: Records Structs40 Questions
Exam 10: Classes and Data Abstraction43 Questions
Exam 11: Inheritance and Composition41 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes44 Questions
Exam 13: Operator Overloading and Templates41 Questions
Exam 14: Exception Handling43 Questions
Exam 15: Recursion43 Questions
Exam 16: Linked Lists40 Questions
Exam 17: Stacks and Queue43 Questions
Exam 18: Searching and Sorting Algorithms40 Questions
Exam 19: Binary Trees43 Questions
Exam 20: Graph Algorithms48 Questions
Exam 21: Standard Template Library41 Questions
Select questions type
You can use a recursive algorithm to find the largest element in an array.
(True/False)
4.8/5
(38)
Suppose that function A calls function B, function B calls function C, function C calls function D, and function D calls function A.Function A is then ____________________ recursive.
(Short Answer)
4.8/5
(41)
-Consider the accompanying definition of a recursive function.Which of the statements represent the general case?

(Multiple Choice)
5.0/5
(40)
-Consider the accompanying definition of a recursive function.What is the output of the following statement? cout << puzzle(3, 7) << endl;

(Multiple Choice)
4.9/5
(30)
A recursive function in which the last statement executed is the recursive call is called a(n) ____ recursive function.
(Multiple Choice)
4.8/5
(36)
-Consider the accompanying definition of a recursive function.Which of the statements represent the base case?

(Multiple Choice)
5.0/5
(47)
-Consider the accompanying definition of the recursive function mystery.Given the declaration:int alpha[5] = {1, 4, 5, 8, 9}; what is the output of the following statement?
Cout << mystery(alpha, 0, 4) << endl;
![-Consider the accompanying definition of the recursive function mystery.Given the declaration:int alpha[5] = {1, 4, 5, 8, 9}; what is the output of the following statement? Cout << mystery(alpha, 0, 4) << endl;](https://storage.examlex.com/TB4785/11ecdff4_c6e0_374b_9115_e99fe0e7e14a_TB4785_00.jpg)
(Multiple Choice)
4.8/5
(37)
Consider the following definition of the recursive function mystery. What is the output of the following statement?
Cout << mystery(5) << endl;


(Multiple Choice)
4.9/5
(36)
To design a recursive function, you must determine the limiting conditions.
(True/False)
4.8/5
(35)
-Consider the accompanying definition of a recursive function.What is the output of the following statement? cout << puzzle(5, 10) << endl;

(Multiple Choice)
4.8/5
(41)
A definition in which something is defined in terms of a smaller version of itself is called a(n) ____ definition.
(Multiple Choice)
4.9/5
(37)
-Consider the accompanying definition of a recursive function.What is the output of the following statement? cout << recFunc(8) << endl;

(Multiple Choice)
4.9/5
(44)
The ____ case is the case for which the solution to an equation is obtained directly.
(Multiple Choice)
4.9/5
(51)
If a function A calls a function B and function B calls function A, then function A is ____________________ recursive.
(Short Answer)
4.8/5
(34)
Which of the following solutions is easier to construct for the Tower of Hanoi problem?
(Multiple Choice)
4.7/5
(38)
Which of the following solution methods would be the best choice for a mission control system?
(Multiple Choice)
4.8/5
(38)
Showing 21 - 40 of 43
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)