M
Q. What will be output for the following code?
val1 = ""This is variable one"" puts ""val1""
val1 is the correct output for the following code.
You must be Logged in to update hint/solution
Q. What is the purpose of the File.readlines() method in Ruby?
Q. Array of arrays are called multidimensional arrays.
Q. What is the output of the given code? counter = 1 while counter < 11 puts counter counter+=1 end
Q. Which method is used to write content in the file ?
Q. What does the super keyword do in Ruby?
Q. In Ruby, which keyword is used to call a method?
Q. What is the output of given code? string="I'am Learning RUBY Language".downcase string.upcase
Q. Which method is used to convert a hash into an array of key-value pairs in Ruby?
Q. Which command is used to update all installed gems to their latest versions in Ruby?
Discusssion
Login to discuss.