nerdexam
Microsoft

98-361 · Question #336

You are writing a C# program and need to select an appropriate repetition structure for your requirement. You need to make sure that the test for the termination condition is performed at the bottom…

The correct answer is D. The do-while statement. See the full explanation below for the reasoning.

Question

You are writing a C# program and need to select an appropriate repetition structure for your requirement. You need to make sure that the test for the termination condition is performed at the bottom of the loop rather than at the top. Which repletion structure should you use?

Options

  • AThe while statement
  • BThe for statement
  • CThe foreach statement
  • DThe do-while statement

How the community answered

(27 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    7% (2)
  • D
    85% (23)

Community Discussion

No community discussion yet for this question.

Full 98-361 Practice