9781111969752_TB_ch05 - Chapter 5: Looping TRUE/FALSE 1....

This preview shows page 1 - 3 out of 8 pages.

Chapter 5: LoopingTRUE/FALSE1.The loop control variable is initialized after entering the loop.PTS:1REF:171
2.In some cases, a loop control variable does not have to be initialized.PTS:1REF:171
3.An indefinite loop is a loop that never stops.PTS:1REF:173
4.You can either increment or decrement the loop control variable.PTS:1REF:173
5.When one loop appears inside another is is called an indented loop.PTS:1REF:177
6.Forgetting to initialize and alter the loop control variable is a common mistake that programmerssometimes make.PTS:1REF:183
7.Every high-level computer programming language contains awhilestatement.PTS:1REF:192
8.Both thewhileloop and theforloop are examples of pretest loops.PTS:1REF:193
9.The safest action is to assign the value 1 to accumulators before using them.PTS:1REF:197
10.It is the programmer’s responsibility to initialize all variables that must start with a specific value.PTS:1REF:198
MULTIPLE CHOICE1.The first step in awhileloop is typically to ____.
We have textbook solutions for you!
/Programming-Logic-and-Design-Introductory-9th-Edition-9781337109635-772/
The document you are viewing contains questions related to this textbook.
Chapter 5 / Exercise 19
Programming Logic and Design, Introductory
Farrell
Expert Verified
PTS:1REF:171
2.Once your logic enters the body of a structured loop, ____.PTS:1REF:171-172
3.The last step in awhileloop is usually to ____.a.compare the loop control variable to a constant valueb.initialize the loop control variablec.increment the loop control variabled.execute the body of the loopANS: CPTS:1REF:172
4.A(n) ____ loop executes a predetermined number of times.PTS:1REF:172
5.Many loop control variable values are altered by ____, or adding to them.PTS:1REF:173
6.A(n) ____ is any numeric variable you use to count the number of times an event has occurred.PTS:1REF:173

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 8 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
loop, loop control, c posttest loop, c Nested loop
We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
Programming Logic and Design, Introductory
The document you are viewing contains questions related to this textbook.
Chapter 5 / Exercise 19
Programming Logic and Design, Introductory
Farrell
Expert Verified

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture