Sail E0 Webinar
Question
What is the output of the given code?print "Hey"   puts "Everyone!"   print "We are learning Ruby"
Options:
A .  Error
B .  Hey everyone we are learning Ruby
C .  Hey everyone
D .  Hey Everyone
Answer: Option D


Print prints whatever is given and puts in addition to printing it inserts a new blank line.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers