Which loop executes one or more statement for a specified number of times?
a) while loop
b) do while loop
c) for loop
d) none of these
How many parameters are in for loop?
a) one
b) two
c) three
d) four
Explanation: initialization, condition, increment/decrement
Which the correct syntax is of do while loop?
a) (condition)do{}
b) do {} while(condition)
c) {}do while(condition)
d) {} (condition) do while
Which keywords indicate the beginning of the loop?
a) while
b) condition
c) do
d) none of these
The statement or group of statements in {} is called………
a) while
b) condition
c) do
d) body of the loop
Which loops execute once body of loop must when
the condition is false for first time?
a) while loop
b) do while loop
c) for loop
d) none of these