Home / MCQ Bank / Computer
Computer Control Structures In Ruby Difficulty: Medium

What is the output of the given code? m=0 loop do print "ruby" m+=1 break if m==5 end

Select the correct option to test your answer:

More Computer Questions

The necessary globals of a node are defined under which namespace? Which of the following property of splay tree is correct? What will be the output of the following C++ code? #include <iostream> using namespace std; int main() { char name[30]; cout << "Enter name: "; gets(name); cout << "Name: "; puts(name); return 0; } What is the purpose of the method_defined? method in Ruby's Module class? Which event handler is triggered when the user's mouse moves away from a link?