C-18-Q083mediumsingle_mcq
The output of the textbook program is:
The output of the textbook program is:
- a0, 1, 2, 3, 4, 5
- b0, 1, 2, 3, 4
- c5, 6, 7, 8, 9
- d1, 2, 3, 4, 5
ব্যাখ্যা
The loop iterates with range/a counter starting at 0 and uses if i == 5: break, so it prints 0 through 4 and exits the moment i reaches 5 before printing it. Thus 5 itself is never shown.