Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

MIS 505 Final Exam Review Chapter 5: Looping | Chapter 5: Looping, Answered, latest Spring 2020.

Rating
-
Sold
-
Pages
8
Grade
A+
Uploaded on
13-01-2021
Written in
2020/2021

MIS 505 Final Exam Review 6 Chapter 5: Looping The loop control variable is initialized after entering the loop. In some cases, a loop control variable does not have to … initialized. An indefinite loop is a loop that never stops. You can either increment or decrement the loop control variable. When one loop appears inside another is is … an indented loop. Forgetting to initialize and alter the loop control variable is a common mistake that programmers sometimes make. Every high-level computer programming language contains a while statement. Both the while loop and the for loop are examples of pretest loops. The safest action is to assign the value 1 to accumulators before using them. It is the programmer’s responsibility to initialize all variables that must start with a specific value. The first step in a while loop is typically to ____. Once your logic enters the body of a structured loop, ____. The last step in a while loop is usually to ____. (n) ____ loop executes a predetermined number of times. Many loop control variable values are altered by ____, or adding to them. A(n) ____ is any numeric variable you use to count the number of times an event has occurred. A loop within another loop is known as a(n) ____ loop. When one loop appears inside another, the loop that contains the other loop is ____ loop. Usually, when you create nested loops, each loop has its own ____. A mistake programmers often make with loops is that they ____. A mistake programmers often make with loops is that they ____. A comparison is correct only when the correct ____ and operator are used. Programmers use the term ____ to describe programs that are well designed and easy to understand and maintain. You usually use the for loop with ____ loops. The ____ loop provides three actions in one compact statement. The amount by which a for loop control variable changes is often ____ value. In a ____, the loop body might never execute because the question controlling the loop might … false the first time it is asked. In a ____, the loop body executes at least one time because the loop control variable is not tested until after one iteration. The ____ loop is particularly useful when processing arrays. A(n) ____ is very similar to a counter that you use to count loop iterations, except that you usually add a value other than one to this type of variable. ____ is a technique with which you try to prepare for all possible errors before they occur. Business reports that list only totals, with no individual item details, are ____. Loops are frequently used to ____; that is, to make sure it is meaningful and useful. Programmers employ the acronym ____ to mean that if your input is incorrect, your output is worthless. ____ a data item means you override incorrect data by setting the variable to a specific value.

Show more Read less
Institution
Course

Content preview

Chapter 5: Looping


TRUE/FALSE

1. The loop control variable is initialized after entering the loop.

ANS: F PTS: 1 REF: 171

2. In some cases, a loop control variable does not have to be initialized.

ANS: F PTS: 1 REF: 171

3. An indefinite loop is a loop that never stops.

ANS: F PTS: 1 REF: 173

4. You can either increment or decrement the loop control variable.

ANS: T PTS: 1 REF: 173

5. When one loop appears inside another is is called an indented loop.

ANS: F PTS: 1 REF: 177

6. Forgetting to initialize and alter the loop control variable is a common mistake that programmers
sometimes make.

ANS: T PTS: 1 REF: 183

7. Every high-level computer programming language contains a while statement.

ANS: T PTS: 1 REF: 192

8. Both the while loop and the for loop are examples of pretest loops.

ANS: T PTS: 1 REF: 193

9. The safest action is to assign the value 1 to accumulators before using them.

ANS: F PTS: 1 REF: 197

10. It is the programmer’s responsibility to initialize all variables that must start with a specific value.

ANS: T PTS: 1 REF: 198


MULTIPLE CHOICE

1. The first step in a while loop is typically to ____.
a. compare the loop control variable to a constant value
b. initialize the loop control variable
c. increment the loop control variable
d. execute the body of the loop

, ANS: B PTS: 1 REF: 171

2. Once your logic enters the body of a structured loop, ____.
a. the entire loop must execute
b. the loop can be terminated with a break statement
c. the loop will execute indefinitely
d. a decision statement will be evaluated
ANS: A PTS: 1 REF: 171-172

3. The last step in a while loop is usually to ____.
a. compare the loop control variable to a constant value
b. initialize the loop control variable
c. increment the loop control variable
d. execute the body of the loop
ANS: C PTS: 1 REF: 172

4. A(n) ____ loop executes a predetermined number of times.
a. terminal c. indefinite
b. definite d. infinite
ANS: B PTS: 1 REF: 172

5. Many loop control variable values are altered by ____, or adding to them.
a. incrementing c. accumulating
b. decrementing d. deprecating
ANS: A PTS: 1 REF: 173

6. A(n) ____ is any numeric variable you use to count the number of times an event has occurred.
a. accumulator c. index
b. key d. counter
ANS: D PTS: 1 REF: 173

7. A loop within another loop is known as a(n) ____ loop.
a. indefinite c. nested
b. infinite d. hidden
ANS: C PTS: 1 REF: 177

8. When one loop appears inside another, the loop that contains the other loop is called the ____ loop.
a. indefinite c. inner
b. definite d. outer
ANS: D PTS: 1 REF: 177

9. Usually, when you create nested loops, each loop has its own ____.
a. sentinel value c. entrance condition
b. goto statement d. loop control variable
ANS: D PTS: 1 REF: 177

10. A mistake programmers often make with loops is that they ____.
a. initialize the loop control variable prior to entering the loop body

Written for

Institution
Course

Document information

Uploaded on
January 13, 2021
Number of pages
8
Written in
2020/2021
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$13.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
perfectgrade Walden University
Follow You need to be logged in order to follow users or courses
Sold
227
Member since
5 year
Number of followers
215
Documents
180
Last sold
2 year ago
BEST HOMEWORK HELP AND TUTORING ,ALL KIND OF QUIZ or EXAM WITH GUARANTEE OF A.

Ive specialised in Nursing it being my career and profession,able to help in any exam or problem in this particular course

3.8

17 reviews

5
8
4
4
3
1
2
1
1
3

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions