Which of the following is not essential in a recursive algorithm?
Recursive Algorithms

Quiz
•
Computers
•
12th Grade
•
Medium
R Woodruff
Used 69+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Base Case
Recursive Case
Contains a stack
Stop after a finite number of calls
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The sub routine calls itself within the algorithm
Base Case
Recursive Case
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The sub routine has a stopping condition that causes it to unwind
Base Case
Recursive Case
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A recursive algorithm must always contain a base case
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
RuntimeError: maximum recursion depth exceeded
: what does this mean
The program has crashed because it is taking too long
The program has crashed because it has run out of memory
The program has crashed because the user entered the wrong value
The program has crashed because a variable had the wrong variable name
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the base case?
n
n - 1
n = n + calcSum (n-1)
if n > 0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the best definition of a recursive method?
A method that iterates itself exactly 5 times.
A method that calls itself by name within the method.
A method that will never iterate infinitely.
A method that cannot be called more than once.
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Recursive Functions in Python

Quiz
•
12th Grade
12 questions
Enumeration and Recursion

Quiz
•
11th Grade - University
14 questions
Section 4A: Decompose the code using functions

Quiz
•
12th Grade
12 questions
Computer Application ISC

Quiz
•
12th Grade
20 questions
Computer Science Holiday Assignment

Quiz
•
12th Grade
20 questions
TN +2 -LESSON1 FUNCTIONS

Quiz
•
12th Grade
20 questions
Recursion

Quiz
•
12th Grade
15 questions
Recursion in Java

Quiz
•
11th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University