Well done!

You have completed Chained Decisions Quiz!

Quiz Question 1 of 5

In a given program, the variable rooms is initialized to 1. The following code is executed:

if attendees >= 100:
  rooms += 3
if attendees <= 200:
  rooms += 7
elif attendees <= 400:
  rooms += 14

If the number of attendees is 150, what is the final value of rooms, and what does this suggest about the logic of the code?

Choose the correct answer below:

Skip Quiz Review Instruction