
Understanding Recursion Concepts
Interactive Video
•
Computers
•
11th Grade
•
Practice Problem
•
Easy
Dana Paz
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a recursive method?
A method that returns a value
A methods that calls itself
A method that takes no arguments
A method that uses iteration
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Recursion can be a substitute for...
addition
subtraction
iteration
multiplication
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is one disadvantage of recursion?
It is difficult to read.
It is always slower than iteration.
It sometimes uses more memory.
It cannot be used with sorting algorithms.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is try about a recursive method?
It must have a return type of void.
It calls itself directly or indirectly.
It cannot have any parameters.
It must be defined within a separate class.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the most important part of a recursive method in Java?
The method signature
The recursive call
The base call
The access modifier
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if a recursive method in Java does not have a base case, or if the base case is never reached?
The program will crash.
The method will return null.
The program may throw a StackOverflowError.
The program will enter an infinite loop, but will not crash.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the Java code snippet:
What does this method calculate?
The factorial of n
The sum of numbers 1 to n
n raised to the power of 2
The sum of even numbers from 0 to n
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
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade