3
4
5
8
Answer is Right!
Answer is Wrong!
The correct answer is C. 5.
The For
loop will iterate from 4 to 11, inclusive. The step value is 2, so the loop will iterate 5 times:
- 4
- 6
- 8
- 10
- 11
The MessageBox.Show
method will be called 5 times, once for each iteration of the loop.
Option A is incorrect because the loop will iterate 5 times, not 3 times.
Option B is incorrect because the loop will iterate 5 times, not 4 times.
Option D is incorrect because the loop will iterate 5 times, not 8 times.