Question
c++
Which of the following is NOT required for counter-controlled iteration? a. Check for any logical errors. b. An initial value c. A condition that tests for the final value d. An increment or decrement by which the control variable is modifies each time through the loop. Float and double variables should be used: a. To store true false value b. To perform monetary calculations c. To approximate representations of decimal numbers d. To act as counters Which of the following is NOT a basic element at counter-controlled iteration? a. the control variable's initial value b. the control variable's increment that's applied during each iteration of the loop c. Determine if the loop will be definite or indefinite d. The loop-continuation condition that determines if looping should continue. The operator the logical negation, also called logical NOT or logical complement operator, reverses the meaning of the condition. a True b. False This statement, when executed in an iteration statement skips the remaining statements in the loop body and proceeds with the next iteration of the loop. a. switch b. break c. continues d. none of the above Switch can be used to test a. int constants b. float constants c. string constants d. all types of constants These structures are the only three forms of control necessary to solve programming problems a. switch, if, else b. sequence, selection, iteration c. break, continue, if ..else d. for, while, do ..while
Explanation / Answer
24. a. Check for any logical errors
Above all are required for count-controlled repetition except logical errors
25. To approximate representation of decimal numbers
26. c. Determine if the loop will be definite or indefinite.
27. True
28. Switch
29. a. int constants
30. d. For, while, do...while