QUESTION IMAGE
Question
in a for loop, the control variable cannot be initialized to a constant value and tested against a constant value.
true
false
In a for loop (e.g., in many programming languages like Python, Java, C++), the control variable can be initialized to a constant and tested against a constant. For example, in Python: for i in range(0, 5) (here i is initialized to 0 (a constant) and tested against 5 (a constant) to determine loop termination). So the statement "the control variable cannot be initialized to a constant value and tested against a constant value" is false.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
False