Ruby - Basics and Runtime
What will be the output of the following Ruby code?
puts "Hi" print "There" p "!"
puts "Hi" print "There" p "!"
puts "Hi"print "There"p "!"p prints the inspect form of the string, which includes quotes, and adds a newline. So it prints "!" with quotes and a newline.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions