Ruby - Basics and Runtime
What is the output of this Ruby code?
print "Hi" puts " There" p "!"
print "Hi" puts " There" p "!"
print "Hi" outputs "Hi" without newline, then puts " There" outputs " There" with newline, so combined output is "Hi There\n".p "!" outputs the string with quotes and newline: "\"!\"\n".15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions