Zusammenfassung der Ressource
Frage 1
Frage
A loop inside another loop is called a nested loop.
Frage 2
Frage
While statement iterates over a range of values or a sequence.
Frage 3
Frage
If the condition of the while loop is initially false, the body is executed once.
Frage 4
Frage
To break the infinite loop , which keyword we use ?
Antworten
-
continue
-
break
-
exit
-
None of the above
Frage 5
Frage
For loop in python is……..
Antworten
-
Entry control loop
-
Exit control loop
-
Simple loop
-
None of the above
Frage 6
Frage
When does the else statement written after loop executes?.
Antworten
-
When break statement is executed in the loop
-
When loop condition becomes false
-
Else statement is always executed
-
None of the above
Frage 7
Frage
do while loop is used in python.
Frage 8
Frage
We can go back to the start of the loop by using break.
Frage 9
Frage
A loop that never ends is called a finite loop.
Frage 10
Frage
Which of the following is a valid for loop in Python?.
Antworten
-
for(i=0; i < n; i++)
-
for i in range(0,5):
-
for i in range(0,5)
-
for i in range(5)