Home / Programming MCQs / Ruby MCQs / Question
T
Q. When Whitespace characters such as spaces and tabs can not ignored in Ruby code?
Whitespace characters such as spaces and tabs are generally ignored in Ruby code, except when they appear in strings.
You must be Logged in to update hint/solution
What is the output of the expression: "5" + "2" in Ruby?
What is the purpose of using snake_case for method and variable names in Ruby?
Which command is commonly used to run Test::Unit tests from the command line?
What will be the output of the following? array = [100, 200, 300, 400, 500] print "array[5]"
What is the output of the given code? a=5 b=15 while b>a puts a*(b-a) while a>b a+=1 b-=1 end end
Which assertion method is commonly used in MiniTest for testing equality of values?
What is the purpose of a step definition in Cucumber testing?
How do you find the number of seconds between two Time objects in Ruby?
Discusssion
Login to discuss.