Question 26 of 115 from exam FCO-U61: CompTIA IT Fundamentals

Question 26 of 115 from exam FCO-U61: CompTIA IT Fundamentals

Question

Given the following pseudocode:

program Breakfast
weekday = [“Monday”, “Tuesday”, “Wednesday”, “Thursday”, “Friday”]
weekend = [“Saturday”, “Sunday”]
if today == Wednesday
output “Bacon and eggs”
else if today == Firday
output “oatmeal”
else if today in weekend
output “Waffles”
else
output “Pancakes”
end

If the Breakfast program ran on Sunday, which of the following would be the output?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C.