A script contains the statement "while loop != 999:" Which value terminates the loop?
A script contains the statement "while loop != 999:" Which value terminates the loop?
The statement 'while loop != 999:' creates a loop that continues executing as long as the value of the variable 'loop' is not equal to 999. Therefore, the loop will terminate when the value of 'loop' becomes equal to 999.
tricky question :) , pls be careful from all chatbots : The statement “while loop != 999:” creates a loop that continues executing as long as the value of the variable “loop” is not equal to 999. In other words, the loop will terminate when the value of “loop” becomes equal to 999. Therefore, the correct answer is C. A value equal to 999. When the value of “loop” reaches 999, the loop condition becomes false, and the loop stops executing.
A while continues as far the condition is true. The true condition is "Loop" variable to be different from 999. When the "Loop" variable is equal to 999 the condition is false then the while finish.
not equal to
Answer is C. My bad Which value terminates the loop...
C is correct