A

Admin • 828.03K Points
Coach

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: 12
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin
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.