4.1 Recursion (Java)
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Easy
Valentina Hideg
Used 4+ times
FREE Resource
Student preview

12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
___________ is when the recursive method stops calling itself.
Base case
Worst Case
Best Case
Simple Case
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The program may run out of memory in a
non-recursive function call
recursive function call
condition when too many variables are declared
none of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following condition is true?
Recursion is always better than iteration.
Recursion uses more memory as compared to iteration.
Recursion uses less memory as compared to iteration.
Iteration is always better and simpler than recursion.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following problems can be solved using recursion?
Finding nth number of the Fibonacci sequence
Finding the factorial of a number
Finding the length of a string
All of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would happen if the base case is not defined in the recursive method?
Stack Overflow
Stack Underflow
Program Crashes
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the recursive call, the argument should grow/shrink towards the ________.
base case
end
next recursive call
none of the above
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What is returned as a result of the call mystery(4,6)?
2
3
4
1
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
Already have an account?
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd 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
Discover more resources for Computers
15 questions
Internet Vocabulary Notebook Check #2 - CTEA(2024)
Quiz
•
12th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
50 questions
Money Matters Fall 2025 Final Exam — Worksheet Questions
Quiz
•
12th Grade
47 questions
CSF Final Exam Practice
Quiz
•
9th - 12th Grade