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
14 questions
Python User Defined Functions

Quiz
•
12th Grade
15 questions
Unit 8 - Searching and Sorting

Quiz
•
9th - 12th Grade
10 questions
AP CSA 4.2 (For Loops)

Quiz
•
10th - 12th Grade
9 questions
Unit 10 quiz topic 2

Quiz
•
9th - 12th Grade
10 questions
Recursion Contest

Quiz
•
10th - 12th Grade
15 questions
Recursive Algorithms

Quiz
•
12th Grade
14 questions
Python Objects and Recursion

Quiz
•
10th Grade
7 questions
Recursion Computer Science Quiz

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University