निम्नलिखित अभिव्यक्ति किस मूल्य का मूल्यांकन करती है?
What value does the following expression evaluate to ?
x = 5
while x < 10:
print(x, end='') A
Closed loop
B
One time loop
C
Infinite loop
D
Evergreen loop
Explanation
Sure!
Since x is always 5 and there's no change to x inside the loop, the condition x < 10 will always be true. This causes the loop to run infinitely.
So, the result is an infinite loop.
Answer: (C) Infinite loop.
Correct Answer: C) Infinite loop