aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Ruby and Perl Programming Fundamentals
  • ss = 5 while ss > 0 puts ss ss -= 2 if ss == 1 ss += 5...
Multiple choice technology programming languages

ss = 5 while ss > 0 puts ss ss -= 2 if ss == 1 ss += 5 end end The output will be 5 3 6 4 2 7

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer

Keep practicing — related questions

  • i = 0 10.times do i += 1 puts i End The output will be => 1 2 3 4 5 6 7 8 9 10
  • 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...
  • 0.upto(10) { |i| puts i} Output will be=> 0 1 2 3 4 5 6 7 8 9 10
  • 0.upto(10) { |i| puts I} Output will be=> 1 2 3 4 5 6 7 8 9 10
  • Which of the following will result in '0' output?
  • The output of the above code is 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
  • What is the output? X=10 while X; X=X+1 if X%2 !=0:continue Print X
  • Below expression is valid While(int x==2)
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy