What will the value of the i variable be when the following loop finishes its execution?

What will the value of the i variable be when the following loop finishes its execution?

A . 10
B . the variable becomes unavailable
C . 11
D . 9

Answer: D

Explanation:

Pass only means there are no statements to execute it does not means the variable is unavailable. Try a Print statement Print(i) after the For Loop and there is your result.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments