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.

Latest PCAP-31-03 Practice Questions with 109 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments