Visual C# Chapter 5
What is a structure that allows repeated execution of a block of statements?
A loop
________ totals are computed by adding values one at a time in a loop.
Accumulated
Within a looping structure, a _________ expression is evaluated.
Boolean
Within a looping structure, a ___(1)___ expression is evaluated. If it is true, a block of statements called the _____(2)______ executes and the ___(1)___ expression is evaluated again. (2 answers)
Boolean, loop body
________ a variable means subtracting a value from it.
Decrementing
A loop for which the number of iterations is predetermined is called a _________
Definite loop
To improve loop performance, consider the order of _______ for short-circuit operations
Evaluation
True or False: The inner loop in a nested loop does not have to be entirely contained within the outer loop; loops can overlap
False, loops can not overlap
With a ________ loop you can indicate the starting value for the loop control variable, the test condition that controls loop entry, and the expression that alters the loop control variable, all in one convenient place.
For
To improve loop performance, employ loop ________.
Fusion
________a variable means adding a value to it.
Incrementing
A ________ loop is one in which the number of iterations is not predetermined
Indefinite
An ________ loop is the loop in a pair of nested loops that is entirely contained within another loop.
Inner
One execution of any loop is called an __________.
Iteration
A _________ is the block of statements executed in a loop.
Loop Body
Is a switch structure a loop?
No
To improve loop performance, make sure the loop avoids unnecessary _________.
Operations
An _______ loop is the loop in a pair of nested loops that contains another loop
Outer
A ______ loop is one in which the loop control variable is tested after the loop body executes.
Posttest
A ______ loop is one in which the loop control variable is tested before the loop body executes.
Pretest
A _______ value is one that a user must supply to stop a loop
Sentinel
True or False: The Do While loop is the only one that requires curly braces.
True
True or False: To improve loop performance, use prefix incrementing rather than postfix incrementing.
True
True or False: Using a loop within a method in a GUI application is no different from using one in a console application; you can use while, for, and do statements in the same ways in both types of programs.
True
True or False: If you ever find yourself in the midst of an infinite loop in a console application, you can break out by holding down the Ctrl key and pressing the C key or the Break (pause) key. in a GUI program, you can simply close the frame that is hosting the application
True
(Wasn't sure how to make a notecard out of this, but make sure you understand the block of text at the top of page 212 that has the paperclip by it. This is probably going to be a test question. If you get this notecard just type "yes" to get the question right)
Yes