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 some of the looping structures available in ruby?



Explain some of the looping structures available in ruby?..

Answer / Saleem Ahmad

Ruby offers several ways to iterate through collections. The `for`, `while`, and `until` loops are examples of traditional control flow structures, while the `each` method is specifically designed for arrays and enumerable objects. Ruby also features the `times` and `loop` methods for performing specific number of repetitions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

What is mvc? And how it works?

1 Answers  


What is the difference between nil and false in ruby?

1 Answers  


Explain retry statement in ruby.

1 Answers  


As you know ruby provides four types of variables. List them and provide a brief explanation for each?

1 Answers  


what the difference is between false and nil in Ruby?

1 Answers  


What is the use of interpolation in ruby?

1 Answers  


Overview of ruby programming language?

1 Answers  


How will you comment in ruby.

1 Answers  


What are the three levels of method access control for classes and what do they signify? What do they imply about the method?

1 Answers  


Explain for loop in Ruby?

1 Answers  


What are Ruby arrays and how they can be created?

1 Answers  


Explain the use of global variable $ in Ruby?

1 Answers  


Categories