FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of these is a loop
A
move forward until cave
B
move forward to cave
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -Loops are control structures used to repeat a given section of code a certain number of times or until a particular condition is met. Visual Basic has three main types of loops: for.. next loops, do loops and while loops.

Detailed explanation-2: -Two major types of loops are FOR LOOPS and WHILE LOOPS. A For loop will run a preset number of times whereas a While loop will run a variable number of times. For loops are used when you know how many times you want to run an algorithm before stopping.

There is 1 question to complete.