FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

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: -Repeat command is used for executing the same set of commands a specified number of time.

Detailed explanation-3: -Programmers use for loops to repeat a set of instructions a specific number of times.

Detailed explanation-4: -Looping a set number of times This allows you to repeat a sequence of commands a particular number of times; you set the number of times the loop will repeat at the top of the block. In programming, this type of loop is called a ‘count-controlled’ loop.

There is 1 question to complete.