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

%3Cp%3E%3Cimg%20class%3D%22user-upload%22%20src%3D%0A%22http%3A%2F%2Fmedia.chegg

ID: 3554081 • Letter: #

Question

%3Cp%3E%3Cimg%20class%3D%22user-upload%22%20src%3D%0A%22http%3A%2F%2Fmedia.cheggcdn.com%2Fmedia%252Fa72%252Fa72c64d8-0703-4dc3-815d-ae7a77734c71%252FphpXwhckm.png%22%0Aheight%3D%22894%22%20width%3D%221500%22%20%2F%3E%3C%2Fp%3E%0A%3Cp%3Ea%20structure%20that%20allows%20repeated%20execution%20of%20a%20block%20of%0Astatements%3C%2Fp%3E%0A%3Cp%3E%3Cimg%20class%3D%22user-upload%22%20src%3D%0A%22http%3A%2F%2Fmedia.cheggcdn.com%2Fmedia%252F527%252F527b8b36-ff01-44b0-b29b-40b430140bae%252FphpyS6cCi.png%22%0Aheight%3D%22911%22%20width%3D%221914%22%20%2F%3E%3C%2Fp%3E%0A

Explanation / Answer

Dear,


5th chapter:

1) Loop is a structure that allows repeated execution of a block of statements.
2) Body of while loop can have a single / multiple statements.c. either a or b .
3) Infinite loop
4) a. It is reset to its initial value befor loop ends.
5) Empty loop has no staments.
6) infinite loop.
7) d. Loop control variable is initialized, tested and alteres all in one place.
8) a. two semicolons
9) initialization takes place only once in loop.
10) a. initializing, testing and incrementing.
11) a.do loop As it executes body once and checks condition.
12) b. do loop
13)b. pretest
14) b. pretest
15) c.nested
16)No output d. nothing
17) c.4
18) c. 5 4 3 2 1
19) b. 0 1 2
20) c. 0 1 2