
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
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th 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
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
20 questions
christmas songs
Quiz
•
KG - University