In a(n) ____ loop the condition is tested at the end of the repeating section of code.
A. pretest
B. posttest
C. fixed-count
D. condition-controlled
查看答案
total = total + num; is equivalent to ____.
A. total += num;
B. total =+ num;
C. total ++ num;
D. total +=+ num;
____ is an accumulating statement.
A. total += num;
B. total++;
C. ++total;
D. total *= num;
Generally, before accumulating values, the accumulator variable should be initialized to ____.
A. -1
B. 1
In computer programming, data values used to signal either the start or end of a data series are called ____.
A. input values
B. limits
C. sentinels
D. iterators