
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
Edition 7ISBN: 1285225562
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
Edition 7ISBN: 1285225562 Exercise 30
Typically, the value added to an accumulator variable is __________ .
a. 0
b. 1
c. the same for each iteration
d. different in each iteration
Step-by-step solution
Step 1 of 2
Accumulator
The accumulator is a variable that is used to gather or accumulate the values. So the value of an accumulator gets increased, iteration by iteration.
Hence the correct option is (d) different in each iteration .
Step 2 of 2
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
Why don’t you like this exercise?
Other Minimum 8 character and maximum 255 character
Character 255