| preferred AP College board partner for AP classes
medium Solved by 17 students
Compound Boolean Expression Evaluation
< Prev
Next >

Given boolean variables x and y initialized with unspecified truth values, what is the result of evaluating the following expression?

Given boolean variables x and y initialized with unspecified truth values, what is the result of evaluating the following expression?

(!x || y) && (x || !y)
A

The expression always evaluates to the same value as x.

B

The expression evaluates to true only if x and y are both true or both false.

C

The expression always evaluates to the same value as y.

D

The expression always evaluates to true.

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Time
Score
#1bommasam00046 3m 52s 148
#2kazvin.tjakradinata23 0m 52s 138
#3sgarv251311 0m 00s 100
#4riyakothakota11 0m 00s 100
#5hitrishabhatia12 0m 00s 90
#6y.seong202711 0m 19s 81
#7namansoin00011 0m 40s 60
#8suhanakochhar00611 1m 01s 39
#9busemagngr01 0m 38s -48
#10psak1211 3m 05s -85
Items per page:
10
1 – 10 of 11

AI Tutor

How can I help?

APFIVE © 2020.
Email: [email protected]|Privacy Policy