Ask Question
16 July, 16:44

Which answer choice is equivalent to the following decision?

if a > 12 then

if b > 8 then

output "Yes"

endif

endif

a. if a > 12 OR b > 8 then output "Yes"

b. if a > b then output "Yes"

c. if a > 12 AND a > b then output "Yes"

d. if a > 12 AND b > 8 then output "Yes"

+1
Answers (1)
  1. 16 July, 17:21
    0
    D. if a > 12 AND b > 8 then output "Yes"

    D is the only one that correctly combines those two logic gates. The and statement requires both conditions to be met just as the lengthy piece of code above does.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Which answer choice is equivalent to the following decision? if a > 12 then if b > 8 then output "Yes" endif endif a. if a > 12 OR b > 8 ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers