Search Header Logo

Recursive structures

Authored by ALANIS, B.

Information Technology (IT)

University

Used 4+ times

Recursive structures
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

FILL IN THE BLANKS QUESTION

30 sec • 1 pt

The Process of breaking a large problem into smaller subproblems is called?

(a)  

2.

FILL IN THE BLANKS QUESTION

30 sec • 1 pt

The recursive function used to calculate the factorial of a number is written as factorial(n) = (a)   .

3.

FILL IN THE BLANKS QUESTION

30 sec • 1 pt

The (a)   is the simplest instance of a problem that stops the recursion.

4.

FILL IN THE BLANKS QUESTION

30 sec • 1 pt

A recursive function repeatedly calls (a)   until the base case is reached.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A recursive structure is defined in terms of itself.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Recursion can never cause a program to crash, even without a base case.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In recursion, a function must always have a base case to avoid infinite looping.

True

False

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?