MCQOPTIONS
Saved Bookmarks
| 1. |
How will you complete the foreach loop in the C#.NET code snippet given below such that it correctly prints all elements of the array a? |
| A. | foreach (int j = 1; j < a(0).GetUpperBound; j++) |
| B. | foreach (int j = 1; j < a.GetUpperBound (0); j++) |
| C. | foreach (int j in a.Length) |
| D. | foreach (int j in i) |
| Answer» E. | |