Comparing Boolean Expressions
AP Computer Science A · Flashcards · Recall
AP COMPUTER SCIENCE A · FLASHCARDS
Card 1
of 6
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
What does the '!' operator do in a Boolean expression?
QUESTION
Which expression is equivalent to !(a && b)?
QUESTION
Which expression is equivalent to !(a || b)?
Tap to flip before you grade
ANSWER
!a && !b. De Morgan's Law: negate OR, flip to AND, negate operands.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card