The instruction in the loop body is referred to as…………..
a) Priming read
b) After read
c) Before read
d) Update read
Explanation: The instruction in the loop body is referred to as the update read, because it allows the user to update the value of the input item (in this case, the sales amount) that controls the loop’s condition. The update read is often an exact copy of the priming read. Keep in mind that if you don’t include the update read in the loop body, there will be no way to enter a value that will stop the loop after it has been processed the first time. This is because the priming read is processed only once.
The…….. allows you to abbreviate an assignment statement.
a) Arithmetic assignment operator
b) Shorthand operator
c) Long operator
d) Predefined operator
A…….. loop is a loop whose processing is controlled by a counter.
a) Counter-controlled
b) Entry-controlled
c) Exit-controlled
d) Accumulator-controlled
Explanation: A counter-controlled loop is just what its name implies is a loop whose processing is controlled by a counter. You use a counter-controlled loop when you want the computer to process the loop instructions a precise number of times.
…………..is a counter-controlled loop.
a) For..next loop
b) Do..while loop
c) While loop
d) If statement
Explanation: For . . . Next statement to code a specific type of pretest loop, called a counter-controlled loop. You also can use the Do . . . Loop statement to code a counter-controlled loop, the For . . . Next statement provides a more compact and convenient way of writing that type of loop.
……..is the process of adding a number to the value stored in a value.
a) Counting
b) Updating
c) Accumulating
d) Decrementing
Explanation: Updating is the process of adding a number to the value stored in a counter or
accumulator variable. It is also called incrementing. We increment the value in the loop. In the for loop statement, we can increment the variable as required.
……..in flowchart is used to represent a for clause.
a) Circle
b) Rectangle
c) Parallelogram
d) Hexagon
Explanation: Many programmers use a hexagon to represent the For clause.Inside
the hexagon, you record the counter variable’s name and its startValue, stepValue, and endValue.