

MCQOPTIONS
Saved Bookmarks
1. |
Correct Output for the given set of programming code is :
class Program { static void Main(string[] args) { int i ; for ( i = 0; i < 5; i++) { int j = 0; j += i; Console. WriteLine(j); } Console. WriteLine(i); Console. ReadLine(); } } |
A. | 0, 1, 2, 3, 4, 5, 6 |
B. | 0, 1, 2, 3, 4, 5 |
C. | 0, 1, 2, 3, 4 |
D. | 0, 1, 2, 3 |
Answer» C. 0, 1, 2, 3, 4 | |