64.7k views
4 votes
The way to test whether d1 = d2 = d3 using Boolean and logical operators is:

A. (d1 = d2) and (d1 = d3)

B. (d1 = d2) xor (d1 = d3)

C. d1 = d2 = d3

D. (d1 = d2) or (d1 = d3)

User Fscore
by
7.7k points

1 Answer

1 vote

Answer:The correct way to test whether d1 = d2 = d3 using Boolean and logical operators is:

C. d1 = d2 = d3

In this expression, the equality operator (=) is used to compare d1, d2, and d3, and the result of the comparison is then compared again using the equality operator. This expression will return true if and only if d1, d2, and d3 are all equal to each other.

Step-by-step explanation:

User Brad Solomon
by
7.6k points