Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

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

Beoordeling
-
Verkocht
-
Pagina's
8
Cijfer
A+
Geüpload op
06-01-2021
Geschreven 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.

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

MIS 505 Final Exam Review 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 ____.

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
6 januari 2021
Aantal pagina's
8
Geschreven in
2020/2021
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$12.99
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
perfectgrade Walden University
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
227
Lid sinds
5 jaar
Aantal volgers
215
Documenten
180
Laatst verkocht
2 jaar geleden
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 beoordelingen

5
8
4
4
3
1
2
1
1
3

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen