for i in range(-3), how many times this loop will run ?
1.0
2.1
3.Infinite
4.Error
for i in [1,2,3]:, how many times a loop run ?
1.0
2.1
3.2
4.3
for loop in python are work on
1.range
2.iteration
3.Both of the above
4.None of the above
For loop in python is
1.Entry control loop
2.Exit control loop
3.Simple loop
4.None of the above
How many times it will print the statement ?, for i in range(100): print(i)
1.101
2.99
3.100
4.0
In which of the following loop in python, we can check the condition ?
1.for loop
2.while loop
3.do while loop
4.None of the above
It is possible to create a loop using goto statement in python ?
1.Yes
2.No
3.Sometimes
4.None of the above
l=[],for i in l: print(l), what is the output ?
1.[]
2.list
3.print()
4.None of the above
To break the infinite loop , which keyword we use ?
1.continue
2.break
3.exit
4.None of the above
What is the final value of the i after this, for i in range(3): pass
1.1
2.2
3.3
4.0
What is the value of i after the for loop ?, for i in range(4):break
1.1
2.2
3.3
4.0
What we put at the last of the loop ?
1.semicolon
2.colon
3.comma
4.None of the above
which of the following is consider as a infinite loop ?
1.while(infinte):
2.while(1):
3.for(1):
4.None of the above
Which of the following is Exit control loop in python ?
1.for loop
2.while loop
3.do while loop
4.None of the above
Which of the following is the loop in python ?
1.for
2.while
3.do while
4.1 and 2
Which of the following loop is not supported by the python programming language ?
1.for loop
2.while loop
3.do while loop
4.None of the above
Which of the following loop is work on the particular range in python ?
1.for loop
2.while loop
3.do while loop
4.recursion
While(0), how many times a loop run ?
1.0
2.1
3.3
4.infinite
while(1): print(2), How many times a loops run ?
1.1
2.2
3.3
4.None of the above
while(1==3):, how many times a loop run ?
1.0
2.1
3.3
4.infinite