Home / Programming MCQs / Ruby MCQs / Question

V

Vinay Kumar • 8.45K 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

Explanation:

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.