Multiple choice technology programming languages

If you want your conditional to depend on two conditions BOTH being true, what is the proper notation to put between the two Boolean statements ?

  1. &

  2. &&

  3. ||

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The && symbol represents the logical AND operator in most programming languages, requiring both conditions to evaluate to true. The single & is a bitwise AND, while the || and | symbols represent OR operations.