Boolean Expressions
AP Computer Science Principles · Flashcards
AP COMPUTER SCIENCE PRINCIPLES · FLASHCARDS
Card 1
of 40
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
What is the result of the expression:
NOT
(
t
r
u
e
OR
f
a
l
s
e
)
\text{NOT } (true \text{ OR } false)
NOT
(
t
r
u
e
OR
f
a
l
se
)
?
QUESTION
Identify the result:
NOT
(
f
a
l
s
e
AND
t
r
u
e
)
\text{NOT } (false \text{ AND } true)
NOT
(
f
a
l
se
AND
t
r
u
e
)
QUESTION
What is the result of the Boolean expression:
NOT
(
t
r
u
e
AND
t
r
u
e
)
\text{NOT } (true \text{ AND } true)
NOT
(
t
r
u
e
AND
t
r
u
e
)
?
Tap to flip before you grade
ANSWER
false. Parentheses evaluate first:
(
t
r
u
e
AND
t
r
u
e
)
=
t
r
u
e
(true \text{ AND } true) = true
(
t
r
u
e
AND
t
r
u
e
)
=
t
r
u
e
, then
NOT
t
r
u
e
=
f
a
l
s
e
\text{NOT } true = false
NOT
t
r
u
e
=
f
a
l
se
.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card