Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please Help! Thanks! Using Relational and Logical Operators to Evaluate Logical

ID: 3697289 • Letter: P

Question

Please Help! Thanks!

Using Relational and Logical Operators to Evaluate Logical (Boolean) Expressions Evaluate the logical (Boolean) expression in the Expression column, and state all possible answers in the Result column. For char and string types, use the ASCII collating sequence.

Expression Result 1. ! (false || false) || true 1. 2. false && true && false 2. 3. ! false || (false || ! true) 3. 4. false || (true && (false || false) ) 4. 5. 1 || ! true && false 5. 6. ! (false || false) || false 6. 7. true && false && false 7. 8. ! false || (false || ! true) 8. 9. false || (false && (false || true) ) 9. 10. 0 || ! false && false 10.

Explanation / Answer

the following are the results for the above expressions

results

1. true

2. false

3. true.

4. false.

5. true.

6. true.

7. false.

8. true.

9. false.

10. false.