Quiz: Recursion

To View Tricks: Login Required

Number of Questions: 10

Question: 1 -

Java uses ___ type of memory to implement Recursion.

Options:
  1. Register

  2. None of these

  3. Heap

  4. Stack


Question: 2 -

Uses are Recursion in Java are___.

Options:
  1. Traversing folders and files on a disk

  2. Traversing the nodes of a Binary Tree

  3. Evaluating Nth order equations and Factorials

  4. All the above


Question: 3 -

Java uses Stack type memory instead of Heap type memory in implementing Recursion because of ___ feature of STACK.

Options:
  1. Round Robin

  2. LIFO (Last In First Out)

  3. FIFO (First In First Out)

  4. None of these


Question: 4 -

Which is better in terms of memory utilization Recursion or Loops in Java?

Options:
  1. Flow control

  2. Loops

  3. Recursion

  4. Methods


Question: 5 -

Recursion in Java applies to ___.

Options:
  1. Constructors

  2. Blocks

  3. Variables

  4. Methods