1. A program can be made of only one type of control structure. You cannot combine structures.
2. A single alternative decision structure tests a condition and then takes one path if the condition is true, or another path if the condition is false.
3. A decision structure can be nested inside another decision structure.
4. A compound Boolean expression created with the AND operator is true only when both sub-expressions are true.
5. A controlled loop uses a true/false condition to control the number of times that it repeats.
6. A controlled loop repeats a specific number of times.
7. Each repetition of a loop is known as a(n)
8. The While loop is a ...view middle of the document...
This value cannot be mistaken as an item from the list.
15. This is a prewritten function that is built into a programming language.
16. This term describes any mechanism that accepts input, performs some operation that cannot be seen on the input, and produces output.
17. This part of a function definition specifies the data type of the value that the function returns.
18. This part of a function definition is comprised of one or more statements that are executed when the function is called.
postest accumulator sentinel
repetitions is a predetermined value.
27. counter A numeric variable you use to count the number of times an event has occurred.
28. decrementing To change a variable by decreasing it by a constant value, frequently 1. Contrast with incrementing.
29. definite loop A loop for which the number of repetitions is a predetermined value.
30. for statement A statement that can be used to code definite loops. It contains a loop control variable that it automatically initializes, evaluates, and increments. Also called a for loop.
31. incrementing To change a variable by adding a constant value to it, frequently 1. Contrast with decrementing.
32. indefinite loop A loop for which you cannot predetermine the number of executions.
33. Infinite loop
34. Do while loop
35. Do until loop
a infinite loop continues to repeat until the program is interrupted. In most circumstances you should avoid writing infinite loops.
a posttest loop. This means it performs an iteration before testing its condition. The do- while loop always performs at least one iteration, even if its condition is false to begin with.
a loop that iterates as long as a condition is false, and then stops when the condition becomes true.
49. How many times will the following loop iterate?
Set k = 1
While k > 5
50. True/False: The While loop gets its name from the way it works: While a condition is false, do some task.
51. In a count-controlled loop, the counter performs action(s).
36. inner loop A loop that contains a nested, outer loop.
37. loop A structure that repeats actions while a condition continues also known as a repetition structure.
52. The conditions that control a loop repetition are Boolean expressions.
53. A posttest loop does not perform any iteration if the Boolean expression is false
38. Two board
categories of loops
39. count control loop
40. condition control loop
41. loop control variable
42. nested loop
condition-controlled loops and count-controlled.
repeats a specific number of time
use true/false condition to control the number of times that it repeats.
A variable that determines whether a loop will continue. The loop control variable...