How many times will the control enter the while loop?

You are developing a C# program. You write the following code:

How many times will the control enter the while loop?
A. 5
B. 4
C. 3
D. 2

microsoft-exams

2 thoughts on “How many times will the control enter the while loop?

  1. Answer is incorrect, it should be A.

    Count = 0 – 1st entry.
    Count = 1 – 2nd entry.
    Count = 2 – 3rd entry.
    Count = 3 – 4th entry.
    Count = 4 – 5th entry.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.