[amp_mcq option1=”3″ option2=”4″ option3=”5″ option4=”8″ correct=”option3″]
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.