Important Notice:
Conditional & Iterative Statement (Chapter-5)
1 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
x = ['ab', 'cd']for i in x: i.upper()print(x)
2 / 89
What will be the output of the following Python code snippet?निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?string = "my name is x"for i in ' '.join(string.split()): print (i, end=", ")
3 / 89
What will be the output of the following Python code snippet?निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?a = [0, 1, 2, 3]i = -2for i not in a: print(i) i += 1
4 / 89
What will be the output of the following Python code snippet?निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?a = [0, 1, 2, 3]for a[0] in a: print(a[0])
5 / 89
What will be the output of the following Python code snippet?निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?a = [0, 1, 2, 3]for a[-1] in a: print(a[-1])
6 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?string = "my name is x"for i in string.split(): print (i, end=", ")
7 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?string = "my name is x"for i in string: print (i, end=", ")
8 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?x = (i for i in range(3))for i in x: print(i)for i in x: print(i)
9 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?x = (i for i in range(3))for i in x: print(i)
10 / 89
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")
11 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?for i in range(10): if i == 5: break else: print(i)else: print("Here")
12 / 89
What will be the output of the following Python code snippet?निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?x = 2for i in range(x): x -= 2 print (x)
13 / 89
What will be the output of the following Python code snippet?निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?x = 2for i in range(x): x += 1 print (x)
14 / 89
What will be the output of the following Python code snippet?निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?for i in '': print (i)
15 / 89
What will be the output of the following Python code snippet?निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?for i in 'abcd'[::-1]: print (i)
16 / 89
What will be the output of the following Python code snippet?निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?for i in ''.join(reversed(list('abcd'))): print (i)
17 / 89
What will be the output of the following Python code snippet?निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?for i in [1, 2, 3, 4][::-1]: print (i)
18 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?for i in range(int(float('inf'))): print (i)
19 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?for i in range(float('inf')): print (i)
20 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?for i in range(int(2.0)): print(i)
21 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?for i in range(2.0): print(i)
22 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?for i in range(0): print(i)
23 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?d = {0, 1, 2}for x in d: print(d.add(x))
24 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?d = {0, 1, 2}for x in d: print(x)
25 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?d = {0, 1, 2}for x in d.values(): print(x)
26 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?d = {0: 'a', 1: 'b', 2: 'c'}for x in d.values(): print(d[x])
27 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?d = {0: 'a', 1: 'b', 2: 'c'}for x in d.values(): print(x)
28 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?d = {0: 'a', 1: 'b', 2: 'c'}for x in d.keys(): print(d[x])
29 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?d = {0: 'a', 1: 'b', 2: 'c'}for x, y in d.items(): print(x, y)
30 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?d = {0: 'a', 1: 'b', 2: 'c'}for x, y in d: print(x, y)
31 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?d = {0: 'a', 1: 'b', 2: 'c'}for i in d: print(i)
32 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?x = 123for i in x: print(i)
33 / 89
What will be the output of the following code?निम्नलिखित कोड का आउटपुट क्या होगा?for i in range(1, 6): if i == 3: break print(i)else: print("Loop completed.")
34 / 89
What will be the output of the following Python code snippet?निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?x = 'abcd'for i in range(len(x)): print(x) x = 'a'
35 / 89
What will be the output of the following code?निम्नलिखित कोड का आउटपुट क्या होगा?x = 5while x > 0: print(x) x -= 1else: print("Done")
36 / 89
What will be the output of the following Python code snippet?निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?x = 'abcd'for i in range(len(x)): x = 'a' print(x)
37 / 89
What is the output of the following code?निम्नलिखित कोड का परिणाम क्या है?for i in range(1, 6): if i % 2 == 0: print(i) continue print("*")
38 / 89
What will be the output of the following Python code snippet?निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?x = 'abcd'for i in range(len(x)): i[x].upper()print (x)
39 / 89
What is the output of the following code?निम्नलिखित कोड का परिणाम क्या है?x = 10if x > 5: print("Hello")elif x > 8: print("Hi")else: print("Hey")
40 / 89
What will be the output of the following Python code snippet?निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?x = 'abcd'for i in range(len(x)): x[i].upper()print (x)
41 / 89
What will the following code snippet print?निम्नलिखित कोड स्निपेट क्या प्रिंट करेगा?for i in range(3): passprint(i)
42 / 89
What will be the output of the following Python code snippet?निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?x = 'abcd'for i in range(len(x)): i.upper()print (x)
43 / 89
What will be the output of the following code?निम्नलिखित कोड का आउटपुट क्या होगा?num = 10while num > 0: print(num) num -= 3else: print("Loop completed.")
44 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?x = 'abcd'for i in range(len(x)): print(i.upper())
45 / 89
What is the output of the following code?निम्नलिखित कोड का परिणाम क्या है?num = 0while num < 5: print(num) num += 1else: print("Loop completed.")
46 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?x = 'abcd'for i in range(len(x)): print(i)
47 / 89
What is the output of the following code?निम्नलिखित कोड का परिणाम क्या है?for i in range(5): if i == 2: continue print(i, end=" ")
48 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?x = 'abcd'for i in range(x): print(i)
49 / 89
What will be the output of the following code?निम्नलिखित कोड का आउटपुट क्या होगा?x = 5while x > 0: print(x, end=" ") x -= 2 if x == 1: breakelse: print("Done")
50 / 89
What is the output of the following code?निम्नलिखित कोड का परिणाम क्या है?x = 10if x > 5: print("A")elif x > 7: print("B")else: print("C")
51 / 89
What will be printed by the following code?निम्नलिखित कोड से क्या प्रिंट होगा?num = 5while num > 0: print(num) num -= 1 if num == 3: breakelse: print("Done")
52 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?x = 'abcd'for i in x: print(i.upper())
53 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?x = 'abcd'for i in x: print(i) x.upper()
54 / 89
What will be the output of the following code?निम्नलिखित कोड का आउटपुट क्या होगा?for i in range(1, 6): if i == 3: continue print(i)
55 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?x = "abcdef"i = "a"while i in x[1:]: print(i, end = " ")
56 / 89
What will the following code snippet print?निम्नलिखित कोड स्निपेट क्या प्रिंट करेगा?for i in range(3): print(i)
57 / 89
What will be the output of the following Python code? निम्नलिखित पायथन कोड का आउटपुट क्या होगा?x = "abcdef"i = "a"while i in x: x = x[1:] print(i, end = " ")
58 / 89
What is the purpose of the range() function in Python?पायथन में रेंज() फ़ंक्शन का उद्देश्य क्या है?
59 / 89
How can you skip the current iteration of a loop and continue with the next iteration?आप किसी लूप की वर्तमान पुनरावृत्ति को कैसे छोड़ सकते हैं और अगली पुनरावृत्ति को कैसे जारी रख सकते हैं?
60 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?x = "abcdef"i = "a"while i in x[:-1]: print(i, end = " ")
61 / 89
What will the following code snippet print?निम्नलिखित कोड स्निपेट क्या प्रिंट करेगा?fruits = ["apple", "banana", "cherry"]for fruit in fruits: print(fruit)
62 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?x = "abcdef"i = "a"while i in x: x = x[:-1] print(i, end = " ")
63 / 89
What is the purpose of the for loop in Python?पायथन में फॉर लूप का उद्देश्य क्या है?
64 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?x = "abcdef"i = "a"while i in x: print('i', end = " ")
65 / 89
How can you exit a loop prematurely in Python?आप पायथन में किसी लूप से समय से पहले कैसे बाहर निकल सकते हैं?
66 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?x = "abcdef"i = "a"while i in x: print(i, end = " ")
67 / 89
What is the purpose of the while loop in Python?पायथन में while लूप का उद्देश्य क्या है?
68 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?x = "abcdef"i = "i"while i in x: print(i, end=" ")
69 / 89
What will be the output of the following code snippet?निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?x = 5if x < 3: print("x is less than 3")elif x == 3: print("x is equal to 3")else: print("x is greater than 3")
70 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?x = "abcdef"while i in x: print(i, end=" ")
71 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?i = 0while i < 3: print(i) i += 1else: print(0)
72 / 89
Which keyword is used to execute a block of code if the condition in the if statement is false?यदि if स्टेटमेंट में शर्त गलत है तो कोड के ब्लॉक को निष्पादित करने के लिए किस कीवर्ड का उपयोग किया जाता है?
73 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?i = 0while i < 5: print(i) i += 1 if i == 3: breakelse: print(0)
74 / 89
What will be the output of the following code snippet?निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?x = 10if x > 5: print("x is greater than 5")
75 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?True = Falsewhile True: print(True) break
76 / 89
What is the primary purpose of the if statement in Python?पायथन में if स्टेटमेंट का प्राथमिक उद्देश्य क्या है?
77 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?i = 1while False: if i%2 == 0: break print(i) i += 2
78 / 89
What does the following code print?निम्नलिखित कोड क्या प्रिंट करता है?output = ""x = -5while x < 0: x = x + 1 output = output + str(x) + " "print(output)
79 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?i = 2while True: if i%3 == 0: break print(i) i += 2
80 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?i = 1while True: if i%2 == 0: break print(i) i += 2
81 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?i = 5while True: if i%0O9 == 0: break print(i) i += 1
82 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?i = 5while True: if i%0O11 == 0: break print(i) i += 1
83 / 89
What is the last thing printed when the following code is run?जब निम्नलिखित कोड चलाया जाता है तो आखिरी चीज़ क्या प्रिंट होगी?number = 0while number <= 10: print("Number: ", number) number = number + 1
84 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?i = 1while True: if i%0O7 == 0: break print(i) i += 1
85 / 89
What will be printed by the following code when it executes?निम्नलिखित कोड निष्पादित होने पर क्या प्रिंट होगा?sum = 0values = [1,3,5,7]for number in values: sum = sum + numberprint(sum)
86 / 89
What will the following code print?निम्नलिखित कोड क्या प्रिंट करेगा?counter = 1sum = 0while counter <= 6: sum = sum + counter counter = counter + 2print(sum)
87 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?i = 1while True: if i%3 == 0: break print(i) i + = 1
88 / 89
What will be the output of the following Python code?निम्नलिखित पायथन कोड का आउटपुट क्या होगा?x = ['ab', 'cd']for i in x: x.append(i.upper())print(x)
89 / 89
What is the result of executing the following code?निम्नलिखित कोड को क्रियान्वित करने का परिणाम क्या है?number = 5while number <= 5: if number < 5: number = number + 1 print(number)
Your score is
The average score is 37%
Restart quiz