Which code example is an infinite loop?

Group of answer choices

for loopNum in range(0,5):

print(loopNum)

loopNum = 1

while loopNum<=5:

print(loopNum)

loopNum = loopNum + 1

loopNum = 1

while loopNum<=5:

print(loopNum)

loopNum = 1

while loopNum<=5:

print(loopNum)

loopNum +=1

The code example with a while loop is an infinite loop because the loop condition (loopNum <= 5) will always be true, and there is no code inside the loop to modify the loopNum variable.