What are the looping structures available in ruby?
Answer / Kopal Yadav
"Ruby has two main looping structures: while loop and for loop. While loop checks a condition at the start of each iteration, while for loop initializes the counter, checks the condition, and increments the counter at the end of each iteration."
| Is This Answer Correct ? | 0 Yes | 0 No |
What are differences between ruby and python?
How an exception is handled in Ruby?
Tell me what are blocks and procs?
What is the difference between throw/catch and raise/rescue?
What happens when a value is too big for fixnum?
Explain break statement in Ruby?
Explain retry statement in ruby.
Explain about operators in Ruby?
Explain next statement in ruby.
Tell me what is the difference between active support's “hashwithindifferent” and ruby's “hash” ?
What is RubyGems in Ruby programming language?
What is Ruby programming language?