CompTIA
FC0-U61 · Question #450
FC0-U61 Question #450: Real Exam Question with Answer & Explanation
Sign in or unlock FC0-U61 to reveal the answer and full explanation for question #450. The question stem and answer options stay visible for context.
Question
A developer is troubleshooting code in an application. The code is supposed to return the word "vegetables" if the category id is only 2. However, the code is returning vegetables for all values except category id 1. Which of the following code statements would BEST correct the issue?
Options
- AIf category id = 1 then 'Fruit'
- BIf category id = 1 then 'Fruit'
- CIf category id <> 1 then 'Vegetables'
- DIf category id = 1 then 'Fruit'
Unlock FC0-U61 to see the answer
You've previewed enough free FC0-U61 questions. Unlock FC0-U61 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.