Consider the expression T & F | T. What is the number of ways in which the expression can be parenthesized so that the output is T (true)?
0
1
2
3
Answer and explanation
The expression can be parenthesized as T & (F | T) and (T & F) | T so that the output is T.
