Solved

Which of the Following Is a Loop Invariant at the Point

Question 31

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
Repeat:
X = X + 2
Until (X > 5)


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

Correct Answer:

verifed

Verified

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

Related Questions