Java Programming - Looping Statements
Questions No: 1/41

What is the output of the following code?

for i in range(3):
print(i,end=" ")

Questions No: 2/41

Which loop is used for definite iteration?
निश्चित पुनरावृति के लिए किस लूप का उपयोग किया जाता है?

Questions No: 3/41

What will be the output of the following Python code snippet?

x = 'abcd'
for i in range(len(x)):
    i.upper()
print (x)

Questions No: 4/41

What will be the output of the following Python code?

i = 2
while True:
    if i%3 == 0:
        break
    print(i)
    i += 2

Questions No: 5/41

The for loop in Python is an ____ .
पॉयथन में फॉर लूप...... है ।

Questions No: 6/41

What will be the output of the following Python code?

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

Questions No: 7/41

What will be the output of the following Python code?

x = ['ab', 'cd']  
for i in x:      
    x.append(i.upper())  
print(x)

Questions No: 8/41

What will be the output of the following code?

for i in range(1,5):
    if i == 3:
        break
    print(i, end=" ")

Questions No: 9/41

Which loop is preferred when number of iterations is known?
जब iterations की संख्या पहले से ज्ञात हो तो कौन-सा loop preferred है?

Questions No: 10/41

What value does the following expression evaluate to ?

x = 5
while x < 10:
 print(x, end='')

Questions No: 11/41

What will be the output of the following Python code?

x = "abcdef"
i = "a"
while i in x:
    print(i, end = " ")

Questions No: 12/41

What will be the output of the following Python code?

 x = "abcdef"
i = "a"
while i in x:
    print('i', end = " ")

Questions No: 13/41

If the else statement is used with a while loop, the else statement is executed when the condition becomes _____ .
यदि else स्टेटमेंट का प्रयोग 'व्हाइल' लूप के साथ किया जाता है, तो else स्टेटमेंट तब निष्पादित होता है जब कंडीशन हो जाती है।

Questions No: 14/41

What is the output of the following code?

count=0
while count<3:
print(count,end=" ")
count+=1

Questions No: 15/41

What will be the output of the following Python code snippet?

x = 2
for i in range(x):
    x += 1
    print (x)

Questions No: 16/41

Operations to be repeated a certain number of times are done by
संक्रियाओं को एक निश्चित संख्या में बार-बार दोहराए जाने के द्वारा किया जाता है

Questions No: 17/41

What will be the output after the following statements?

for i in range(1,6):
    print(i, end='')
    if i == 3:
        break

Questions No: 18/41

What will be the output of the following Python code?

i = 1
while False:
    if i%2 == 0:
        break
    print(i)
    i += 2

Questions No: 19/41

What is the output of the following program:

i = 0
while i < 3:
    print (i)
    i=i+1
    print (i+1)

Questions No: 20/41

What will be the output of the following Python code?

x = 'abcd'
for i in range(len(x)):
    print(i)

Questions No: 21/41

What will be the output of the following Python code?

for i in range(5):
    if i == 5:
        break
    else:
        print(i)
else:
    print("Here")

Questions No: 22/41

Which loop condition is used in the algorithm to find the GCD of two numbers using Euclid's method?
Euclid's method से GCD निकालने वाले algorithm में कौन-सी loop condition उपयोग होती है?

Questions No: 23/41

What will be printed?

i = 0

while i < 3:
    i += 1
    if i == 2:
        continue
    print(i, end=" ")
else:
    print("END")

Questions No: 24/41

Which is the most comfortable loop?
सबसे सरल लूप कौन सा है?

Questions No: 25/41

What will be the output of the following Python code snippet?

 x = 'abcd'
for i in range(len(x)):
    x = 'a'
    print(x)

Questions No: 26/41

A loop block in python starts with a.. -
पायथन में एक लूप ब्लॉक एक... से शुरू होता है

Questions No: 27/41

___ in Python is a counter-controlled loop.
पायथन में काउन्टर कन्ट्रोल्ड लूप है ।

Questions No: 28/41

What will be the output of the following Python code?

x = 'abcd'
for i in range(x):
    print(i)

Questions No: 29/41

What will be the output of the following Python code?

i = 1
while True:
    if i%7 == 0:
        break
    print(i)
    i += 1

Questions No: 30/41

What will be the output of the following Python code snippet?

x = 'abcd'
for i in range(len(x)):
    print(x)
    x = 'a'

Questions No: 31/41

What will be the output of the following Python code?

x = 'abcd'
for i in range(len(x)):
    print(i.upper())

Questions No: 32/41

What will be the output of the following Python code?

x = "abcdef"
i = "i"
while i in x:
    print(i, end=" ")

Questions No: 33/41

The contents inside the "for loop" are separated by?
लूप के अंदर की सामग्री को _____ द्वारा अलग किया जाती है?

Questions No: 34/41

What will be the output of the following Python code?

for i in range(0):
    print(i)

Questions No: 35/41

What will be the output of the following Python code?

i = 0
while i < 3:
    print(i)
    i += 1
else:
    print(0)

Questions No: 36/41

What will be the output of the following Python code?

x = "abcdef"
while i in x:
    print(i, end=" ")

Questions No: 37/41

What will be the output of the following Python code?

i = 1
while True:
    if i%2 == 0:
        break
    print(i)
    i += 2

Questions No: 38/41

What is printed?

i = 1
while i < 4:
    print(i, end=" ")
    i += 1
else:
    print("Done")

Questions No: 39/41

How many times will loop run? for a in "56247839"
लूप कितनी बार चलेगा? for a in "56247839"

Questions No: 40/41

What will be the output after the following statements?

a = 0
b = 3
while a + b < 8:
       a += 1
       print(a, end='')

Questions No: 41/41

What will be the output of the following Python code?

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