Are you taking CLEP classes? Try clep.ai
| preferred AP College board partner for AP classes
medium Solved by 2 students

Boolean Expression and De Morgan's Law

< Prev
Next >

Suppose p and q are declared as boolean variables and have been initialized to unknown truth values. What does the following boolean expression evaluate to?

Suppose p and q are declared as boolean variables and have been initialized to unknown truth values. What does the following boolean expression evaluate to?

(!p && !q) || !(p || q)
A

The expression always evaluates to false.

B

The expression always evaluates to true.

C

The expression evaluates to true whenever p is false.

D

The expression evaluates to false whenever p and q have opposite truth values.

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question
Mark for review

Question Leaderboard

Not enough data yet to show leaderboard.

No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Privacy Policy|