Select from following answers:- 0
- 1

- 2
- 3
- All Above
The loop will continue for 1 time since the initial collection value is 1. Though we have modified the collection count to 2 inside the loop but since already the initial collection has been exhausted and foreach loop if a forward only loop , so the loop will run only once and then the control will come out of that.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator