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

Match terminology to definitions. 1.body of the loop 2.definite loop 3.fencepost

ID: 3835851 • Letter: M

Question

Match terminology to definitions.

1.body of the loop

2.definite loop

3.fencepost loop

4.indefinite loop

5.infinite loop

6.priming

7.pseudorandom numbers

8.sentinel

Answer Choices:

A.a calculated sequence of numbers that look random

B,a special value that signals the end of input

C.the first or last value requires special processing

D.a loop whose test is always true

E.a loop that executes an unknown number of times

F.the controlled statement(s) of the loop

G.a loop that executes a known number of times

H.initializing variables so the loop test is true

2nd part of the question

What is the flow of control for a while loop?

Answer choices below

A.Execute the body of the while loop. B.Go to the evaluate test step. C. Execute the statement(s) after the while. D. If the test is true, go to the next step, else go to the last step. E. Evaluate the test of the while loop.

1.Step 1   

2.Step 2

3.Step 3

4.Step 4

5.Step 5

Explanation / Answer

First Part

1: F

2: G

3: C

4: E

5: D

6: H

7: A

8: B


Second Part

1: E

2: D

3: A

4: B

5: C

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote