πŸ“Š Ruby
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.
πŸ’¬ Discuss
βœ… Correct Answer: (D) Terminates the most internal loop.

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

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).

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
138
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Vinay Kumar
Publisher
πŸ“ˆ
89%
Success Rate