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

What is output of the given code? counter=-3 if counter<=5 puts (counter) counter=counter+1 puts (counter) elsif counter>5 puts (counter) counter=2*counter puts(counter) end

Select the correct option to test your answer:

More Computer Questions

Output justification such as decimal point, numerical sign, trailing zeros or octal are specified. What is the time complexity of inserting an element into a set in C++ STL? Which of the following is an application of the minimum cut problem? The hub of a MySQL installation is . . . . . . . . The common field linking the two datasheets is the _______________ key field in the main datasheet and the _______________ key field in the linked datasheet.