Multiple choice technology databases

Which sign can be used to indicate a logical OR ?

  1. *

  2. #

  3. &

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

The pipe symbol (|) is used to indicate logical OR in most programming languages and mathematical notation. In many languages like C, Java, and JavaScript, || is the logical OR operator, while | is the bitwise OR operator. The asterisk (*) is multiplication, hash (#) is often used for comments or preprocessor directives, and ampersand (&) is logical AND.