Ruby - Basics and Runtime
Which of the following is the correct syntax to print the string "Hello" without a newline in Ruby?
print prints without adding a newline.print "Hello" is correct syntax; puts adds newline, p prints inspect form, and puts(Hello) is invalid because Hello is not a string.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions