Shannon Anderson-Rush
Quiz by , created more than 1 year ago

Quiz on Recursion, created by Shannon Anderson-Rush on 24/10/2018.

556
0
0
Shannon Anderson-Rush
Created by Shannon Anderson-Rush almost 6 years ago
Close

Recursion

Question 1 of 4

1

A recursive method is a method that calls itself.

Select one of the following:

  • True
  • False

Explanation

Question 2 of 4

1

Recursion is not the same as nested for loops or while loops.

Select one of the following:

  • True
  • False

Explanation

Question 3 of 4

1

A recursive method must have a base case that tells the method to stop calling itself.

Select one of the following:

  • True
  • False

Explanation

Question 4 of 4

1

The base case of a recursive call is a comparison between a parameter of the method and some specific predefined value chosen by the programmer.

Select one of the following:

  • True
  • False

Explanation