A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/quizzes/python-loops/ below:

Quiz about Python Loops

The best command to repeat a control statement a fixed number of times?

What will be the output of the following Python code?

Python
for i in range(int(2.0)):
   print(i)

What will be the output of the following Python code?

Python
x = 'abcd'
for i in range(len(x)):  
    print(i, end= " ")

 What will be the output of the following code? 

x="GFG"

for i in range(x):

print(i)

What is the output of the following code?

Python
while True:
  
	print(Geeks!”)

Which type of loop continues to iterate until explicitly instructed to stop?

Which two statements are used to implement iteration?

The character that must be at the end of the line for if, while, for etc.

What is the output of the following code?

Python
i = 1
while True:
   if i%7 == 0:
   	 break    
   print(i, end=" ")
   i += 1

What is the output of the following code?

while True:

   print(“Geeks!”)

   break;

There are 19 questions to complete.

Take a part in the ongoing discussion


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4