#126 Practice Recursion Problem

Interactive Video
•
Computers
•
9th - 12th Grade
•
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
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Applications of Bayesian Theory and Statistics

Interactive video
•
9th - 12th Grade
11 questions
Understanding the Enigma Machine

Interactive video
•
9th - 12th Grade
11 questions
Enigma Machine Components and Functions

Interactive video
•
9th - 12th Grade
5 questions
Cryptography: Crash Course Computer Science

Interactive video
•
9th - 12th Grade
11 questions
Allied Strategies and D-Day Outcomes

Interactive video
•
9th - 12th Grade
11 questions
Turing's Contributions and Reaction-Diffusion

Interactive video
•
9th - 12th Grade
11 questions
3D Coordinate System Concepts

Interactive video
•
9th - 12th Grade
11 questions
Algorithm Behavior and Search Techniques

Interactive video
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade