Free Practice Quiz Question List

05 Induction and Recursion Online Quiz Questions

Use this free practice quiz with 20 questions to review 05 Induction and Recursion, test your knowledge, and prepare for your next test or exam.

20 questions
01
True or false
1 point

True or false: A well-formed recursive definition requires at least a base clause and a recursive clause.

  1. A

    True

  2. B

    False

02
Choose one
1 point

Which statement is the well-ordering principle as presented in the material?

  1. A

    Every nonempty set of real numbers has a least element.

  2. B

    Every nonempty subset of the nonnegative integers has a least element.

  3. C

    Every nonempty set of integers, including all integers, has a least element.

  4. D

    Every nonempty set of positive rational numbers has a least element.

03
Choose all
1 point

Select all situations for which the indicated proof method is an appropriate match.

  1. A

    Use ordinary induction when proving the next case depends naturally only on the immediately preceding case.

  2. B

    Use strong induction when the next case may depend on several earlier cases.

  3. C

    Use well-ordering whenever a recursively defined object has two constructors.

  4. D

    Use structural induction when proving a property of trees generated by construction rules.

04
Fill in the blank
1 point

Complete the recursive generation rules for balanced parentheses: the base object is ; one rule forms a new string by ; and another forms one by .

05
Fill in the blank
1 point

An induction proof has two essential stages: the establishes the starting proposition, and the proves that truth at an arbitrary index implies truth at the next index.

06
True or false
1 point

True or false: In a least-counterexample proof, choosing the smallest counterexample means that no facts about smaller integers can be used.

  1. A

    True

  2. B

    False

07
True or false
1 point

True or false: Structural induction requires an inductive case for each recursive construction rule in the definition of the objects.

  1. A

    True

  2. B

    False

08
Choose one
1 point

Which statement correctly describes the principle of ordinary mathematical induction for a proposition P(n) defined for integers n ≥ n₀?

  1. A

    Prove P(k+1) directly for one selected value of k.

  2. B

    Prove P(n₀), then prove P(k) implies P(k+1) for every k ≥ n₀.

  3. C

    Assume P(k+1) and use it to prove P(k).

  4. D

    Prove only that P(n₀) is true.

09
Choose one
1 point

In a recursive definition of a set, what is the purpose of the closure condition?

  1. A

    It supplies an additional arbitrary starting object.

  2. B

    It replaces every recursive clause with a direct formula.

  3. C

    It ensures that only objects generated by the stated rules belong to the collection.

  4. D

    It allows any object that resembles a generated object to be included.

10
Written response
1 point

Using the recursive definition 0! = 1 and (n+1)! = (n+1)n!, what is the value of 4!?

11
Written response
1 point

The induction formula 1+2+⋯+n=n(n+1)21+2+\cdots+n=\frac{n(n+1)}{2} holds for n ≥ 1. Using this formula, what is 1+2+⋯+61+2+\cdots+6?

12
Written response
1 point

Given the recursive definition F₀ = 0, F₁ = 1, and Fₙ = Fₙ₋₁ + Fₙ₋₂ for n ≥ 2, what is F₅?

13
Choose one
1 point

Which set is guaranteed by the well-ordering principle to have a least element whenever it is nonempty?

  1. A

    Every nonempty subset of the positive rational numbers.

  2. B

    Every nonempty subset of all integers.

  3. C

    Every nonempty subset of the nonnegative integers.

  4. D

    Every nonempty subset of the real numbers.

14
Choose one
1 point

Why is strong induction appropriate for proving that every integer greater than 1 has a prime factor?

  1. A

    The case k+1 can always be proved without any hypothesis.

  2. B

    Only the base case is available in strong induction.

  3. C

    All earlier cases can be used, including cases much smaller than k.

  4. D

    Strong induction applies only to recursive sets, not integers.

15
Choose one
1 point

A binary tree is formed by adding a root above two binary subtrees T₁ and T₂. In a structural-induction proof about all such trees, which inductive step is appropriate?

  1. A

    Assume the property only for the new root.

  2. B

    Assume the property for both immediate subtrees and prove it for the constructed tree.

  3. C

    Assume the property for every possible tree without proving a basis.

  4. D

    Assume the property only for trees with one leaf.

16
Choose one
1 point

The recursively defined set of balanced-parentheses strings is closed under concatenation. If (()) and ()() are balanced strings, which option is obtained by concatenating the first string with the second, in that order and with no separator?

  1. A

    (()())()

  2. B

    (())()()

  3. C

    ()(())()

  4. D

    (())(())

17
Choose one
1 point

A function is defined recursively by f(0)=4f(0)=4 and f(n+1)=f(n)+2f(n+1)=f(n)+2 for n≥0n\geq 0. Which equation correctly gives f(3)f(3)?

  1. A

    f(3)=4+2

  2. B

    f(3)=4+3

  3. C

    f(3)=4+2+2+2

  4. D

    f(3)=4\cdot 2^3

18
Choose all
1 point

Which statements accurately characterize the relationship between induction and recursion? Select all correct choices.

  1. A

    Induction can establish a property for all stages by combining an initial case with a propagation argument.

  2. B

    Recursion can define an object or value in terms of smaller instances of the same type.

  3. C

    A recursive rule by itself proves every property of the objects it generates.

  4. D

    An inductive proof must explicitly construct every object to which its conclusion applies.

19
Written response
1 point

A sequence is defined by a0=1a_0=1 and an+1=2an+1a_{n+1}=2a_n+1 for n≥0n\geq 0. What is a4a_4?

20
Open ended
1 point

Let a0=1a_0=1 and an+1=2an+1a_{n+1}=2a_n+1 for every n≥0n\geq 0. Derive a closed formula for ana_n, and prove that your formula is correct for every nonnegative integer nn.