asked 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:

answered
User Neowinston
by
7.9k 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.

answered
User Solick
by
9.0k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.

Categories