C is correct.
We should initialize the variable before the loop (Option C). Initializing a variable before the loop ensures that it starts with the correct initial value and can be used within the loop with the desired value from the beginning of the loop's execution.
This section is not available anymore. Please use the main Exam Page.PL-400 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.
Juan0414
1 month, 4 weeks agoAt09
7 months, 1 week agoMikeAWS
7 months, 4 weeks agojkaur
8 months, 2 weeks agoBarb123
8 months, 4 weeks agoRSoumya
10 months, 1 week agoDomki98
11 months, 2 weeks ago