Implementing and Operating Cisco Enterprise Network Core Technologies (ENCOR) — Question 808
A script contains the statement "while loop != 999:" Which value terminates the loop?
Answer options
- A. A value not equal to 999.
- B. A value less than or equal to 999.
- C. A value equal to 999.
- D. A value greater than or equal to 999.
Correct answer: C
Explanation
The loop will continue to execute as long as the value of 'loop' is not equal to 999. Therefore, when 'loop' is exactly 999, the condition becomes false, and the loop terminates. The other options do not satisfy the condition required to end the loop.