COMPUTER FUNDAMENTALS

COMPUTER SOFTWARE

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
When you get to a computer program and repeat a command, you can give it an exact number of times to
A
repeat
B
end
C
Either A or B
D
None of the above
Explanation: 

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.

There is 1 question to complete.