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