Computer Science : Recursion

Study concepts, example questions & explanations for Computer Science

varsity tutors app store varsity tutors android store

Example Questions

Example Question #1 : Recursion

The Fibonacci sequence is a classic example of: _________

Choose the best answer.

Possible Answers:

None of the above

Selection

Iteration

Recursion

Correct answer:

Recursion

Explanation:

The Fibonacci sequence is known as a recurrence relation in mathematical terms. In programming, we represent recurrence relations using recursive methods or simply recursion. The Fibonacci sequence is a great example of recursion. 

Learning Tools by Varsity Tutors