The instruction in the loop body is referred to as ______________

The instruction in the loop body is referred to as ______________
A. Priming read
B. After read
C. Before read
D. Update read
 
Answer: D
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.
 

Tìm kiếm

Back
Top