IT 117: Intermediate Scripting
Class 24 Ungraded Quiz

What do you call a function that calls itself?

What must a recursive algorithm have in order to work?

What do call the situation where a function calls itself directly?

What do you call the situation where a function calls another function,
which then calls the original function?

Can you rewrite any recursive function using a loop instead
of recursion?

Which is more efficient, a recursive algorithm or a nonrecursive algorithm
that does the same thing?

Write a recursive function that counts down from some number. In other
words, this function prints it's argument, than all numbers down to 1.

Write a recursive function that calculates the factorial of a number.