What is the output of the following code, when executed at the Ruby command prompt?
print <<EOF
This is a sample text
EOF
print <<"EOF";
This is a sample text too
EOF
Correct Answer:
This is a sample text
This is a sample text too
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Ruby MCQ Questions