Question
Which of the following logic components is being used and how much is the interest if the amount is 5,000? (Select two.)
IF amount < 5,000 THEN interest = 7%, ELSE interest = 8%.
answer
Looping
Branching
8%
Query
7%
IF amount < 5,000 THEN interest = 7%, ELSE interest = 8%.
answer
Looping
Branching
8%
Query
7%
Answers
GPT-4o mini
The logic component being used in the provided statement is **Branching**, as the logic flows in different paths based on a condition (if the amount is less than 5,000).
Based on the given amount of 5,000, the applicable interest rate would be **8%**, since the condition "amount < 5,000" is false.
So, the two correct selections are:
1. **Branching**
2. **8%**
Based on the given amount of 5,000, the applicable interest rate would be **8%**, since the condition "amount < 5,000" is false.
So, the two correct selections are:
1. **Branching**
2. **8%**