V

Vinay Kumar • 8.55K Points
Tutor III

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(B)
  • Views: 77
  • Filed under category Ruby

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics