Y
Q. What will be the output of the given ruby code?
arr = [[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]] print arr
Array inside array is declared and then printed.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. What is the purpose of the extend keyword in Ruby?
Q. What is the purpose of the attr_reader method in Ruby classes?
Q. What is the purpose of the call method in Ruby procs and lambdas?
Q. What does the notataion \b stands for?
Q. What is the keyword used to define a class in Ruby?
Q. What is the purpose of a matcher in RSpec?
Q. Which method in Ruby is used to check if a key exists in a hash?
Discusssion
Login to discuss.