Search Header Logo

Unit 10 Test Review

Authored by Michael Courtright

Computers

9th - 12th Grade

Used 1+ times

Unit 10 Test Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?