MCQs
The negation of the given array is not possible hence the result is false.
Output:
False
a[3]=4 and b[2]=4 hence it will print equal according to the given if condition.
Output:
Equal
We can't directly multiply elements of array, it will show an error
Output:
can't convert Array into Integer
The array is a string array and the index is 3 so 'o' will be the output and then the boolean_array will get printed.
Output:
o
True
False
Array's index start from 0 so array[4] will give 500.
Output:
500
Array's index start from 0 so array[5] will give nothing.
Output:
Nil
The array is a string array and the index is 3 so 'o' will be the output and then the boolean_array will get printed.
Output:
o
True
False
Elements of both the array are same and in same sequence hence they are equal.
Output:
Equal
The array is a string array and the index is 3 so 'o' will be the output and then the boolean_array[1] = false will get printed.
Output:
o
False
Two arrays are said to be equal if each and every element of both the arrays are equal.
Output:
Not equal