214k views
2 votes
Given year is positive, which expressions for XXX, YYY, and ZZZ will output the correct range? Choices are in the form XXX / YYY / ZZZ.

If XXX: Output "1-100"
Else If YYY: Output "101-200"
Else If ZZZ: Output "201-300"
Else: Output "Other"
a. year > 0 / year > 99 / year > 199
b. year > 0 / year > 100 / year > 200
c. year < 100 / year < 200 / year < 300
d. year < 101 / year < 201 / year < 301

1 Answer

2 votes

Final answer:

Option b. year > 0 / year > 100 / year > 200 will output the correct range.

Step-by-step explanation:

Option b. year > 0 / year > 100 / year > 200 will output the correct range.

Since the given year is positive, option b satisfies the condition year > 0. The next condition, year > 100, will be true for any year after the base year of 100, ensuring the output range of 101-200. Lastly, year > 200 will only be true for years after 200, resulting in the correct range of 201-300.

Therefore, option b correctly outputs the range based on the given conditions.

User KDV
by
8.1k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.