πŸ“Š 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: (A) TRUE

Explanation: Boolean operator || evaluates to false only when both the values are false.

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

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