A

Admin • 833K Points
Coach

Q. What will the following expression evaluate to?

Code:
true || false
  • (A) TRUE
  • (B) FALSE
  • (C) Syntax Error
  • (D) None of the above
  • Correct Answer - Option(A)
  • Views: 19
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.