C. 15
Consider this simple python:
apples = 7 # number of apples in the basket
oranges = 0 # init the oranges
# we loop through the 'basket' till one apple is left and then we break
for item in range(apples, 1, -1): # loop through the basket with apples, range(start, stop, step)
oranges += 2
oranges += 3 # add the last oranges for the last apple
print(oranges) # that should give 15
Nobody said anything about removing the apples, a "for each" cycle evaluates each object in sequence, you can point to each apple one by one without touching them.
They can all stay together in the basket without risk of confusion.
The answer is 15.
This section is not available anymore. Please use the main Exam Page.FC0-U61 Exam Questions
Log in to ExamTopics
Sign in:
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.
JassuSingh
Highly Voted 2 years, 11 months agoyanis88
Most Recent 9 months agoIdkhelpme
1 year, 2 months agoQuallie
2 years, 8 months ago[Removed]
2 years agoCyberChic
2 years, 11 months ago