What is the output of the following code. when executed at the Ruby command prompt?
puts "This is sentence 1."
BEGIN {
puts "This is sentence 2."
}
Correct Answer:
This is sentence 2.
This is sentence 1.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Ruby MCQ Questions