V
Q. What will be the output of the given code?
i=1 for i in 6..10 puts i**2 end
The output for the following code is 36 49 64 81 100.
You must be Logged in to update hint/solution
Q. Ruby arrays are ____________
Q. What is the difference between && and & operators?
Q. Reserved word can not be used as?
Q. What is the purpose of a let! block in RSpec?
Q. What is the purpose of the __dir__ method in Ruby?
Q. What is the output of the expression: "5".to_i + 2 in Ruby?
Q. What does the unless keyword do in Ruby?
Q. Which operator is used for modulo in Ruby?
Q. Which of the following features does the 2.0 version of ruby supports?
Q. Which command is used to build a Ruby gem from a gemspec file?
Discusssion
Login to discuss.