Multiple choice technology programming languages

0.upto(10) { |i| puts I} Output will be=> 1 2 3 4 5 6 7 8 9 10

  1. True

  2. False

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

The code has a critical error: it declares the block parameter as lowercase |i| but tries to use uppercase I in the puts statement. In Ruby, this would either raise an error for an undefined variable or print nothing useful. Additionally, 0.upto(10) includes 0, so even with correct syntax the output would start with 0, not 1. The claimed output is incorrect.