#126 Practice Recursion Problem
Interactive Video
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Myra Deister
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the two parameters of the enigma method?
x and y
a and b
a and z
x and z
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the base case?
When a is greater than z
When a is less than z
When a equals z
When a plus z equal 0
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is returned in the first recursive case when a > z?
a + z
a + Enigma(a-2, z)
z + Enigma(a, z-1)
a - z
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the case where a < z, what does the method return?
z + Enigma(a, z-1)
a + Enigma(a-2, z)
a + z
z - Enigma(a, z-1)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the initial values passed to enigma in the example?
6 and 3
8 and 3
3 and 8
4 and 3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the next recursive call made after enigma(8, 3)?
Enigma(6, 3)
Enigma(5, 3)
Enigma(8, 1)
Enigma(10, 3)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
At what point is the base case reached in the example?
When Enigma(8, 3) is called
When Enigma(4, 3) is called
When Enigma(2, 3) is called
When Enigma(2, 2) is called
Access all questions and much more by creating a free account
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
Already have an account?
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade