5. Which of the following is a loop statement?
(a) While
(b) Do-while
(c) For
State True (T) or False (F).
1. Initialization means assigning some values to a variable using assignment operators.
2. A conditional statement cannot be placed anywhere in the program.
3. Loop is a process of executing a statement repeatedly until a condition is met.
4. The do-while loop is an entry controlled loop.
5. The while statement is a jump statement.
Answers
Answered by
4
Answer:
5(c)For
1.True
2.True
3.False
4.False
5.True
If my answers are right please mark as brainliest
Hope it helps you
Answered by
0
Ans5. All of them are loop statements.
"While", "Do-while", and "For" are the different types of loop.
- In the "while" loop the initialization of the loop is done before its declaration.
- In the "Do-while" loop a set of instructions are compiled before the checking of the condition in the "while" statement.
- In the "For" loop the initialization and end are defined at the time of declaration.
1. True, as initialization is,
2. False, as it can be placed anywhere.
3. True, as the loop runs till the given condition occurs.
4. True, as a set of instructions are executed before the condition check.
5. False, "while" statement is similar to the other loops.
Similar questions