19.7k views
10 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

2 Answers

10 votes

Answer:

B: False false false

Step-by-step explanation:

User Neowinston
by
4.4k points
8 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 Solick
by
5.2k points