COMPUTER SOFTWARE
PROGRAMMING LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
repeat
|
|
end
|
|
Either A or B
|
|
None of the above
|
Detailed explanation-1: -The REPEAT (or RPT) command causes the next command to be processed the specified number of times if that command is one of the following: ALIGN, BLANK, CENTER, JUSTIFY, OVERLAY, and SHIFT. The operands of the RPT command are the same as those shown for the REPEAT command below.
Detailed explanation-2: -Answer. The DO REPEAT-END REPEAT command repeats set of commands a specified number of times.
Detailed explanation-3: -The REPEAT command enables you to loop through a block of code. REPEAT defines the beginning of the block, and ENDREPEAT defines the end. You control the loop by specifying the number of loop iterations, and/or the conditions under which the loop terminates.
Detailed explanation-4: -In programming, using a command to repeat a set of instructions is called a ‘loop’; all programming languages include ways to do this.