The case when the method calls itself

Unit 10 Test Review

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Michael Courtright
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
recursive method
call stack
base case
iterative statement
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The stack of calls to methods
recursive method
call stack
base case
iterative statement
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
use of the divide and conquer approach to arrange array elements
base case
merge sort
indirect recursion
void recursive method
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
code sequence that stops the recursion process
base case
merge sort
head recursion
tall recursion
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen when the following code is executed in a Java program?
void myMethod() {
myMethod(); }
int main() {
myMethod();
return 0; }
The code will run for some time and stop abruptly.
The code will show a compile-time error.
The code will display 0 on the screen.
The code will generate random output.
The code will execute, but no output will be generated.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which of the following do you divide the array into halves using a recursive technique?
I. searching a value in an array
II. finding the sum of natural numbers
III. arranging array elements
Practice
I only
II only
III only
I and II
I and III
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following give(s) a disadvantage of a recursive method compared with an iterative method?
I. extra memory space
II. small code size
III. more execution time
I only
II only
III only
I and II
I and III
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
MP1 Test 1 - Objects Classes and Methods

Quiz
•
9th - 12th Grade
15 questions
DSA 02c Recursion Quiz

Quiz
•
12th Grade
14 questions
Section 4A: Decompose the code using functions

Quiz
•
12th Grade
14 questions
Python User Defined Functions

Quiz
•
12th Grade
10 questions
Recursion Contest

Quiz
•
10th - 12th Grade
10 questions
IT English Essentials: Unit 13 - Quiz 1

Quiz
•
12th Grade
12 questions
Computer Application ISC

Quiz
•
12th Grade
7 questions
Java Basics #2

Quiz
•
10th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade