Home / MCQ Bank / Computer
Computer Arrays, Hashes And Strings In Ruby Difficulty: Medium

What is the output of the given code? array1 = [[1,2,3,4,5],[0,0,0,0]] array2 = [[1,2,3],[0,0,0]] print !array1

Select the correct option to test your answer:

More Computer Questions

Which statement is correct among the mentioned statements? i. The for loop works faster than a while loop ii. for( ; ; )implements an infinite loop What is the first argument in command line arguments? A trial balance is prepared What is the result of 'not True' ? Which method is used to convert a collection into an enumerator in Ruby?