53.1k views
1 vote
If you want two tests to both be true, which logical operator should you use?

User Xenonite
by
7.6k points

1 Answer

6 votes

Final answer:

The logical operator you should use if you want two tests to both be true is AND.

Step-by-step explanation:

The logical operator you should use if you want two tests to both be true is AND. The AND operator is represented by the symbol '&'. When using the AND operator, both conditions must be true in order for the overall statement to be true. For example, if you have two tests, Test 1 and Test 2, and you want to check if both of them are true, you would use the AND operator like this: Test 1 & Test 2.

User JeromeBu
by
8.0k points