This textbook is available atAmazon.com Logo
Java Programming 9th Edition

Java Programming (9th Edition)

Book Edition9th Edition
Author(s)Farrell
ISBN9781337397070
PublisherCengage
SubjectComputer Science
Learning about the Loop Structure
TWO TRUTHS & A LIE
Creating while Loops
TWO TRUTHS & A LIE
Using Shortcut Arithmetic Operators
TWO TRUTHS & A LIE
Creating a for Loop
TWO TRUTHS & A LIE
Learning How and When to Use a do...while Loop
TWO TRUTHS & A LIE
Learning About Nested Loops
TWO TRUTHS & A LIE
Improving Loop Performance
TWO TRUTHS & A LIE
Chapter 6, Learning about the Loop Structure, TWO TRUTHS & A LIE, Exercise 01
Page 284

1. A loop is a structure that allows repeated execution of a block of statements as long as a tested expression is true.

 

2. If a loop's tested Boolean expression is true, a block of statements called the loop body executes before the Boolean expression is evaluated again.

 

3. When the Boolean evaluation tested in a loop becomes false, the loop body executes one last time.

Answer

  1. true
  2. true
  3. false
Did you like this example?
Subscribe for full access
Page 284