87,742 views
26 votes
26 votes
Consider the following code segment.

What is displayed as a result of executing the code segment?

A. True true true.

B. False false false.

C. True false true.

D. False false true.

Consider the following code segment. What is displayed as a result of executing the-example-1
User Jjclarkson
by
2.9k points

2 Answers

24 votes
24 votes

Answer:

B: False false false

Step-by-step explanation:

User Adam Wadsworth
by
3.5k points
29 votes
29 votes

Answer:

B. false false false

Step-by-step explanation:

a OR b = true, so NOT a OR b = false

false AND c is false, so a gets assigned false.

b is false and stays that way

c gets assigned c AND a, and since a is now false, c also becomes false.

User Ccalvert
by
2.9k points