Multiple choice technology programming languages

for ss in 1...10 print ss, " Hello\n";end => Find output? 1 Hello 2 Hello 3 Hello 4 Hello 5 Hello 6 Hello 7 Hello 8 Hello 9 Hello

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The range 1...10 uses three dots, which in Ruby means an exclusive range (excludes the end value). So the loop iterates from 1 to 9, printing each number followed by ' Hello'. The output 1 Hello 2 Hello ... 9 Hello is exactly correct. This tests understanding of Ruby's two range operators.