Which line can be used instead of the comment to cause the snippet to produce the following expected output? (Choose two.) Expected output: 1 2 3 Code:
All of them are wrong.
c, b, a = b, a, c gives 1 3 2
c, b, a = a, c, b gives 2 1 3
a, b, c = c, a, b gives 1 3 2
a, b, c = a, b, c gives 3 2 1
The correct answer should be something like this a, b, c = c, b, a which gives 1 2 3
A & C are correct. The variables on the right of '=' are the original values and the variables on the left are the new values.
upvoted 4 times
...
...
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.
Arulkumar
1 year, 7 months ago666_m
2 years, 6 months agomacxsz
2 years, 7 months agosmarty_arse
2 years, 10 months agozwakenberg
3 years agotechdawgs
2 years, 12 months ago