V

Vinay Kumar • 8.55K Points
Tutor III

Q. What is the use of break statement?

  • (A) Terminates the most External loop.
  • (B) Terminates all loop.
  • (C) Terminates the program.
  • (D) Terminates the most internal loop.
  • Correct Answer - Option(D)
  • Views: 103
  • Filed under category Ruby

Explanation by: Vinay Kumar
Terminates the most internal loop. Terminates a method with an associated block if called within the block (with the method returning nil).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics