Save Time & improve Grades
- Questions Asked
- Experts
- Total Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!
MIS 505 Programming-Final-Exam-Review PART 11 1. The loop control variable is initialized after entering the loop. A) True B) False Points Earned: 1.0/1.0 2. In some cases, a loop control variable does not have to be initialized. A) True B) False Points Earned: 1.0/1.0 3. An indefinite loop is a loop that never stops. A) True B) False Points Earned: 0.0/1.0 4. You can either increment or decrement the loop control variable. A) True B) False Points Earned: 1.0/1.0 5. When one loop appears inside another is is called an indented loop. A) True B) False Points Earned: 1.0/1.0 6. Forgetting to initialize and alter the loop control variable is a common mistake that programmers sometimes make. A) True B) False Points Earned: 1.0/1.0 7. Every high-level computer programming language contains a while statement. A) True B) False Points Earned: 1.0/1.0 8. Both the while loop and the for loop are examples of pretest loops. A) True B) False Points Earned: 1.0/1.0 9. The safest action is to assign the value 1 to accumulators before using them. A) True B) False Points Earned: 1.0/1.0 10. It is the programmer- responsibility to initialize all variables that must start with a specific value. A) True B) False Points Earned: 1.0/1.0 11. 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 Points Earned: 1.0/1.0 12. 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 Points Earned: 1.0/1.0 13. 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 Points Earned: 1.0/1.0 14. A(n) ____ loop executes a predetermined number of times. A) terminal B) definite C) indefinite D) infinite Points Earned: 1.0/1.0 15. Many loop control variable values are altered by ____, or adding to them. A) incrementing B) decrementing C) accumulating D) deprecating Points Earned: 1.0/1.0 16. A(n) ____ is any numeric variable you use to count the number of times an event has occurred. A) accumulator B) key C) index D) counter Points Earned: 1.0/1.0 17. A loop within another loop is known as a(n) ____ loop. A) indefinite B) infinite C) nested D) hidden Points Earned: 1.0/1.0 18. When one loop appears inside another, the loop that contains the other loop is called the ____ loop. A) indefinite B) definite C) inner D) outer Points Earned: 1.0/1.0 19. Usually, when you create nested loops, each loop has its own ____. A) sentinel value B) goto statement C) entrance condition D) loop control variable Points Earned: 1.0/1.0 20. A mistake programmers often make with loops is that they ____. A) initialize the loop control variable prior to entering the loop body B) increment the loop control variable inside of the loop body C) include statements inside the loop that belong outside the loop D) enclose the inner loop entirely within the outer loop in a nested loop Points Earned: 1.0/1.0
Ask a question
Experts are online
Answers (1)
MIS505 MIS/505 MIS 505 Programming-Final-Exam-Review PART 11
Answer Attachments
1 attachments —