Solved

Which of the Following Is a Loop Invariant at the Point

Question 4

Multiple Choice

Which of the following is a loop invariant at the point at which the test for termination is performed in the following loop structure? X = 3
While (X < 5) :
X = X + 2


A) X > 5
B) X < 5
C) X ≥ 5
D) X ≤ 5

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions