Robotics & Artificial Intelligence
Using …………… loop, an infinite loop can be created.
- Fixed iterative loop
- while
- for
- all
Python Control Flow
2 Likes
Answer
while
Reason — An infinite loop can be created with the help of the while loop by giving an ever-true condition. Since the condition will never become false, the loop will keep on executing infinitely.
Answered By
3 Likes
Related Questions
The purpose of the range function in a for loop is to ……………
- create a list of numbers
- define the start and end of the loop
- generate a sequence of numbers
- specify the step size of the loop
To find the sum of whole numbers up to 10, a loop runs:
- once
- ten times
- eleven times
- any number of times
A loop statement is given as:
for i in range(10):For how many times will the given loop statement be executed?
- none
- 9 times
- 10 times
- infinite
When a code allows to use one loop inside another loop, known as ……………
- finite loop
- loop in loop
- nested loop
- infinite loop