πŸ“Š Ruby
Q. What is the output of the given code?
Code:
array1 = [[1,2,3,4,5],[0,0,0,0]]
print !array1
  • (A) Error
  • (B) [[1, 2, 3, 4, 5], [0, 0, 0, 0]].
  • (C) TRUE
  • (D) FALSE
πŸ’¬ Discuss
βœ… Correct Answer: (D) FALSE

Explanation: The negation of the given array is not possible hence the result is false.

Explanation by: Yami Thakur
The negation of the given array is not possible hence the result is false.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
197
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Yami Thakur
Publisher
πŸ“ˆ
99%
Success Rate