GPYC practice question 6 of 15

What will be the value of the i variable when the while loop finishes its execution0 i = 0 while i != 0: 1 = 1-1 else: i = i + 1

Choose your answer, then check it against the explanation.

What will be the value of the i variable when the while loop finishes its execution0 i = 0 while i != 0: 1 = 1-1 else: i = i + 1
Answer options
Question 6 of 15

Keep practicing

Take the free GPYC practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other GPYC practice questions

Scroll to Top