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 |
Explain ruby class.
Tell me what is the difference between active support's “hashwithindifferent” and ruby's “hash” ?
Explain do while loop in ruby.
Tell me how do you remove nil values in array using ruby?
How do the following methods differ: @my_string.strip and @my_string.strip! ?
In how many ways items can be added in an array in Ruby?
How will you rename and delete a file in Ruby?
Which ruby interpreter option enables debugging?
Explain redo statement in Ruby?
Where does a scope change in a ruby program?
what is the difference between a single quote and double quote?
As you know ruby provides four types of variables. List them and provide a brief explanation for each?