A) find the greatest common divisor of two integers (GCD) .
B) compute factorials.
C) program things that cannot be programmed without recursion.
D) All of the above
E) Both A and B, but not C
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) does not correctly handle its base case.
B) works for all non- negative values of k, but not for negative numbers.
C) returns the value 1 if it is passed a value of 0 for the parameter k.
D) computes the factorial on an integer k passed to it as parameter.
E) None of the above
Correct Answer
verified
Multiple Choice
A) quickly sort and search arrays.
B) sort lists stored in arrays.
C) perform binary search on arrays.
D) All of the above
E) None of the above
Correct Answer
verified
Multiple Choice
A) is 0.
B) is 1.
C) is depth / 2.
D) is 1 / (depth * 3.1415) .
E) depends on the problem being solved.
Correct Answer
verified
Multiple Choice
A) return FALSE and stop.
B) return 0 and stop.
C) cause an infinite chain of recursive calls.
D) reach the NULL terminator and stop.
E) None of the above
Correct Answer
verified
Multiple Choice
A) indirect recursion.
B) perfect recursion.
C) function call cycling.
D) direct recursion.
E) None of the above
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) dynamic
B) static
C) data validation
D) recursive
E) None of the above
Correct Answer
verified
Multiple Choice
A) a static function.
B) a dynamic function.
C) trapped in an infinite chain of recursive calls.
D) a prototyped function.
E) None of the above
Correct Answer
verified
Multiple Choice
A) cause an infinite chain of recursive calls.
B) return after a chain of 3 recursive calls.
C) return after a chain of 2 recursive calls.
D) return after a chain of 4 recursive calls.
E) None of the above
Correct Answer
verified
Multiple Choice
A) return statement.
B) base case.
C) last parameter.
D) closing curly brace.
E) None of the above
Correct Answer
verified
Multiple Choice
A) breadth
B) type
C) depth
D) level
E) None of the above
Correct Answer
verified
Multiple Choice
A) two pivots and a sublist.
B) three sublists.
C) three pivots.
D) two sublists and a pivot.
E) None of the above
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) binary sort
B) red/black sort
C) shell sort
D) quicksort
E) None of the above
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) Tony Gaddis.
B) C.A.R. Hoare.
C) Judy Walters.
D) Bjarne Stroustrup.
E) None of the above
Correct Answer
verified
Showing 1 - 20 of 20
Related Exams