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


What are the looping structures available in ruby?



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

Post New Answer

More Ruby Interview Questions

Explain ruby class.

1 Answers  


Tell me what is the difference between active support's “hashwithindifferent” and ruby's “hash” ?

1 Answers  


Explain do while loop in ruby.

1 Answers  


Tell me how do you remove nil values in array using ruby?

1 Answers  


How do the following methods differ: @my_string.strip and @my_string.strip! ?

1 Answers  


In how many ways items can be added in an array in Ruby?

1 Answers  


How will you rename and delete a file in Ruby?

1 Answers  


Which ruby interpreter option enables debugging?

1 Answers  


Explain redo statement in Ruby?

1 Answers  


Where does a scope change in a ruby program?

1 Answers  


what is the difference between a single quote and double quote?

1 Answers  


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

1 Answers  


Categories