Java Programming Blooms Unit-1
Java Programming Blooms Unit-1
Institute of Technology
UNIT -I
KNOWLEDGE / REMEMBERING
Q. Define Recursion?
Ans:
There are two approaches to write repetitive algorithms: one approach uses loops and the
other one uses recursion
Recursion is a repetitive process, in which a function can call itself.
Recursive functions are useful in evaluating certain types of mathematical functions.
Recursion is also a useful way of creating and accessing dynamic data structures such as linked
lists or binary trees
UNDERSTANDING
Q. Differentiate Recursion and Iteration?
Answer:
ITERATION
RECURSION
APPLYING
Output:
Found 45 at 1 index
Found 999 at 7 index
Found 876 at 4 index
-