Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain redo statement in Ruby?



Explain redo statement in Ruby?..

Answer / Chandan Kumar Jaiswal

The redo statement in Ruby causes the current iteration of a loop (such as while, until, or for) to repeat immediately. It does not continue with the next iteration but restarts the current one.n```rubynfor i in 1..5n if i == 3n redo # repeats this iterationn endnnputs i # this line will be executed twice for i=3 because we redid the loop

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

What does irb stand for?

1 Answers  


Tell me what is the command to create a migration?

1 Answers  


Difference between render and redirect?

1 Answers  


what is the syntax for Ruby collect Iterator?

1 Answers  


What are some built-in ruby class exceptions.

1 Answers  


What is a struct in ruby?

1 Answers  


Please explain each of the following operators and how and when they should be used: ==, ===, eql?, Equal?

1 Answers  


Explain some differences between ruby and python.

1 Answers  


Explain me what the difference is between false and nil in ruby?

1 Answers  


Explain about normal method class?

1 Answers  


What is the difference between a statement and an expression in ruby?

1 Answers  


how many ways you can create a concatenating string?

1 Answers  


Categories