Home / MCQ Bank / Computer
Computer Control Structures In Ruby

What is the output of the given code? i = 0 while i < 5 puts i i=(i+1)**2 end

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • 0 1 4

Related Computer Questions

Recently used application file list appears in the Windows operating system In Ruby, which keyword is used to define a class method? Which of this package is used for invoking a method remotely? The Client-Side Databases are stored in the Which of these events will be notified if scroll bar is manipulated?