exam questions

Exam FC0-U61 All Questions

View all questions & answers for the FC0-U61 exam

Exam FC0-U61 topic 1 question 303 discussion

Actual exam question from CompTIA's FC0-U61
Question #: 303
Topic #: 1
[All FC0-U61 Questions]

Given the following code:



Which of the following case choices would be executed?

  • A. Ten apples would be moved from inventory to the fruit display.
  • B. Ten pears would be moved from inventory to the fruit display.
  • C. Ten peaches would be moved from inventory to the fruit display.
  • D. Ten kiwi would be moved from inventory to the fruit display.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
_denw
8 months, 4 weeks ago
Selected Answer: B
B. Ten pears would be moved from inventory to the fruit display. The switch statement is set to execute the code block corresponding to the value of the variable f. Since f is equal to 2, the case for case 2 would be executed, which involves moving ten pears from inventory to the fruit display.
upvoted 1 times
...
UnitedAlmond
1 year ago
Selected Answer: B
The answer is B.
upvoted 1 times
...
PatrickH
1 year, 2 months ago
Its definatly B
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago