1..5 means start from one and go till 4 and even include 5.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. Which of the following is used to access instance variables in Ruby?
Q. The given two expression means the same. counter=counter+1 and counter++
Q. Which command is commonly used to run MiniTest tests from the command line?
Q. What does the super keyword do in Ruby?
Q. What is the primary purpose of a constructor in a Ruby class?
Q. In Ruby, how do you convert a string to an array of characters?
Q. What is the output of the given code? m=0 loop do puts 101 m+=1 break if m==5 end
Q. Which method is used to subtract a number of days from a Date object in Ruby?
Q. What is the method used to access instance variables in Ruby?
Discusssion
Login to discuss.