Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

CS113-3 March, 29, 2018 Test 3 Names 1. The statement causes an exit from anywhe

ID: 3739726 • Letter: C

Question

CS113-3 March, 29, 2018 Test 3 Names 1. The statement causes an exit from anywhere in the body of a loop. a) Continue b) break c) elif d) pass 0.5 points 2. Thestatement causes the current iteration of the body of a loop to terminate and execution returns to the loop's header statement a) continue b) break c) pass d) elif 0.5 points 3. A(n) loop is one that never ends. a) unterminated b) boundless c) executing d) infinite 0.5 points 4. The loop is used to iterate through a sequence of values. a) for b) while c) iterative d) range 0.5 points

Explanation / Answer

1. B) break

A break statement leads to immediately exit from the loop when its executed

2. A)continue

A continue statement skips the rest of the loop after it and goes for next iteration

3. D)infinite

A infinite loop never ends,its basically a loop without exit condition

4. A)for

A for loop specifies the starting,increment value and end value for a loop