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
Which of the following is not essential in a recursive algorithm?
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Treasure Hunt
Quiz
•
12th Grade
10 questions
Initial Assessment - Cybersecurity Awareness
Quiz
•
9th Grade - Professio...
20 questions
Database&Relation
Quiz
•
12th Grade
20 questions
Data structure test1
Quiz
•
12th Grade
20 questions
Latihan Soal Administrasi Infrastruktur Jaringan XII TKJ
Quiz
•
10th - 12th Grade
10 questions
Berfikir Komputesional
Quiz
•
9th - 12th Grade
15 questions
User Interface Design - Topic 1
Quiz
•
12th Grade
20 questions
TEST1.PY
Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Computers
8 questions
Veterans Day Quiz
Quiz
•
12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
19 questions
Explore Triangle Congruence and Proofs
Quiz
•
9th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
DNA Replication Concepts and Mechanisms
Interactive video
•
7th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
15 questions
Identify Triangle Congruence Criteria
Quiz
•
9th - 12th Grade
23 questions
Similar Figures
Quiz
•
9th - 12th Grade
