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

What is the output of the given code? length=gets.chomp case length.reverse.length when length=4 print "length is 4" when length=5 print "length is 5" end

Select the correct option to test your answer:

More Computer Questions

Which will legally declare, construct, and initialize an array? What will be the output of the following C++ code? #include <iostream> #include <string> using namespace std; namespace A{ int var = 10; } namespace B{ int cout = 5; } int main() { using namespace B; cout<<A::var; } Which key is used for find in excel? Which of the following value sits to the left of the block of text? We can switch from Accounting Voucher to Inventory Voucher pressing