Unit 10 Test Review

Unit 10 Test Review

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Python Objects and Recursion

Python Objects and Recursion

10th Grade

14 Qs

Class 12 Recursion

Class 12 Recursion

12th Grade - University

10 Qs

A Level Computing 1.2.4a Programming Paradigms

A Level Computing 1.2.4a Programming Paradigms

12th Grade

15 Qs

AP Computer Science A Recursive

AP Computer Science A Recursive

9th - 12th Grade

10 Qs

AP CSA Unit 10 Recursion

AP CSA Unit 10 Recursion

9th - 12th Grade

10 Qs

Practice for 10th AP Java quiz (old)

Practice for 10th AP Java quiz (old)

10th - 12th Grade

11 Qs

002_Java Methods

002_Java Methods

12th Grade - University

15 Qs

Python Functions

Python Functions

12th Grade

15 Qs

Unit 10 Test Review

Unit 10 Test Review

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Michael Courtright

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The case when the method calls itself

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?