#126 Practice Recursion Problem

Interactive Video
•
Computers
•
9th - 12th Grade
•
Easy
Myra Deister
Used 3+ 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
Preguntas sobre Alan Turing y su legado

Interactive video
•
9th - 12th Grade
7 questions
Operation Regenbogen and the Enigma Machine

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

Interactive video
•
9th - 12th Grade
8 questions
Gejowe życie bohatera

Interactive video
•
9th - 12th Grade
11 questions
Cold War Espionage and Operations

Interactive video
•
9th - 12th Grade
8 questions
Yamashita's Gold and Marcos Legacy

Interactive video
•
9th - 12th Grade
6 questions
Law Enforcement Seized Guns In Club Q Suspect’s 2021 Criminal Case

Interactive video
•
9th - 12th Grade
11 questions
Encryption and Code-Breaking Concepts

Interactive video
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade