Sail E0 Webinar
Question
What will the following expression evaluate to?
true || false
Options:
A .  True
B .  False
C .  Error
D .  None of the mentioned
Answer: Option A


Boolean operator || evaluates to true only when both the values are true or one is true and other is false.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers