Sail E0 Webinar
Question

Which of the following operators can operate on a boolean variable?

 1. &&

 2. ==

 3. ?:

 4. +=

Options:
A .  3 & 2
B .  1 & 4
C .  1, 2 & 4
D .  1, 2 & 3
Answer: Option D


Operator Short circuit AND, &&, equal to, == , ternary if-then-else, ?:, are boolean logical operators. += is an arithmetic operator it can operate only on numeric values.



Was this answer helpful ?
Next Question

Submit Solution

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

More Questions on This Topic :

Latest Videos

Latest Test Papers