a while loop is called a pretest loop because the condition is tested after the loop has had one interation
Added by Michelle A.
Step 1
A while loop is a control flow statement that allows code to be executed repeatedly based on a given Boolean condition. The loop can be thought of as a repeating if statement. Show more…
Show all steps
Your feedback will help us improve your experience
Rashmi Prakash and 98 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
A loop within another loop is known as a(n) ____ loop.
Rashmi P.
A(n) _______________ loop usually occurs when the programmer forgets to write code inside the loop that makes the test condition false.
Joy D.
'When does a WHILE loop evaluate the condition that determines whether the looping action continues? Answers: a, at the beginning of the loop b somewhere inside the loop c at the end of the loop d. all of the above'
Paul G.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD