Unit 10 Test Review

Unit 10 Test Review

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Recursive Functions in Python

Recursive Functions in Python

12th Grade

10 Qs

C++ Recursion

C++ Recursion

8th - 12th Grade

12 Qs

NOCTI Computer Programming Quiz: Algorithms and Logic

NOCTI Computer Programming Quiz: Algorithms and Logic

10th Grade

10 Qs

CS Python Fundamentals Test 12 PRACTICE

CS Python Fundamentals Test 12 PRACTICE

9th - 12th Grade

10 Qs

Project Stem Python

Project Stem Python

9th - 12th Grade

10 Qs

Coding Pre Test

Coding Pre Test

9th - 12th Grade

15 Qs

Recursion in Java

Recursion in Java

11th - 12th Grade

15 Qs

Enumeration and Recursion

Enumeration and Recursion

11th Grade - University

12 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?