πŸ“Š Ruby
Q. What will the following expression evaluate to?
Code:
!true && !false
  • (A) TRUE
  • (B) FALSE
  • (C) Syntax Error
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) FALSE

Explanation: Boolean operator && evaluates to true only when both the values are true.

Explanation by: Vinay Kumar
Boolean operator && evaluates to true only when both the values are true.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
248
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Vinay Kumar
Publisher
πŸ“ˆ
96%
Success Rate