Multiple choice technology programming languages

ss = 5 while ss > 0 puts ss ss -= 2 if ss == 1 ss += 5 end end Output=> 5 3 6 4 2

  1. True

  2. False

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

Starting with ss = 5, the while loop runs while ss > 0. Each iteration subtracts 2: 5→3→1. When ss becomes 1, the condition if ss == 1 adds 5, making it 6. Then 6→4→2→0 (exits). The sequence printed is 5, 3, 6, 4, 2. This is correct.