
Recursion vs iteration
Interactive Video
•
Computers
•
12th Grade
•
Practice Problem
•
Easy
Alexander Fraser
Used 1+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a base case in a recursive function?
To terminate recursion and provide a way of returning to the previous call
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens to a recursive function that calls itself indefinitely.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the benefit here of using recursion over iteration?
Reduced lines of code to perform the same task
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What do you notice about a difficulty with recursive algorithms from this example?
Recursive algorithms can be difficult to trace
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Recursive algorithms are good for when the program...
The result of the previous calculation can be fed into the next
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure is used to hold the contents of recursive calls?
Stack
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data structure lends itself nicely to be used in recursion?
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
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade
10 questions
Valentine's Day Trivia
Quiz
•
9th - 12th Grade